#include #include #include #include #include #include using namespace std; int main() { int n =0; cin>>n; int nums[n] ; int tmp=0; for(int i=0; i>tmp; nums[i] =tmp; } long long all_pattern = pow(2,n); bool judge =false; int ans=-1; for(int i=0; i>k)%2 ==1){ if(judge){ break; } judge = true; tmp += nums[k]; }else { judge =false; } } /*cout<<"tmp:"<