#include #include #define INF (1<<30) using namespace std; //yuki 183 //片っぽ○で真 int n,a[5000],dp[16385],ans; int main(){ dp[0]=1; cin>>n; for(int i=0;i>a[i]; } for(int i=0;i