#include #include typedef long long ll; using namespace std; const ll N = 26; const ll C = N/2; const ll R = N+1; ll STATE; ll D[R*C][(1<<(C+1))]={{1}}; ll row, col; ll bit; ll ans; int main(){ STATE = (1<<(C+1)); for(long long int i=0; i>1; if((row=C && row-C)){ D[i+1][bit] += D[i][j]; continue; } if(bit&1) D[i+1][bit] += D[i][j]; else{ if(col == C-1){ D[i+1][bit|1]+=D[i][j]; } if(!(bit&2) && col