1 #include<cstdio> 2 #include<cstring> 3 using namespace std; 4 int k, cnt; 5 char G[2][6][5], ans[6]; 6 bool dfs(int col){ 7 if (col == 5){ 8 if (++cnt == k){ 9 ans[col] = '