Lang:G++
Edit12345678910111213141516171819202122232425262728293031#include<iostream>#include<fstream>#include<vector>#include<string>#include<queue>#include<map>#include<stack>#include<set>using namespace std;int temp[28][128][128];int res[128][128];int box[128][128];void dfs(int x,int y,int col,int k){if (col == k){temp[1][x][y] = 1;return;}if (((x&(1 << col)) ^ (y&(1 << col))) == (1<<col))dfs(x, y, col + 1, k);if (col + 2 <= k && ((x&(1 << col)) == (1 << col) && (x&(1 << (col + 1))) == (1 << (col+1))&& (y&(1 << col)) == (1 << col) && (y&(1 << (col + 1))) == (1 << (col+1))))dfs(x, y, col + 2, k);}int main(){//ifstream input("data.txt");int k, N;cin >> k >> N;int len = 1 << k;for (int i = 0; i != len; i++)