func_code_string: #include <bits/stdc++.h>   using namespace std;   int DEBUG = 0;   int main(int argc, char **argv) {     DEBUG = (argc >= 2) ? atoi(argv[1]) : 0;     int t;     cin >> t;     for (int c = 0; c < t; c++) {       char tmp;       int board[8][8];       int kx[2];       int ky[2];       int eger = 0;       for (int i = 0; i < 8; i++) {         for (int j = 0; j < 8; j++) {           cin >> tmp;           if (tmp ==  . ) {             board[i][j] = 1;           } else if (tmp ==  # ) {             board[i][j] = 0;           } else {             kx[eger] = i;             ky[eger] = j;             board[i][j] = 1;             eger++;           }         }       }       bool good = false;       if ((kx[0] - kx[1] + 12) % 4 == 0 && (ky[0] - ky[1] + 12) % 4 == 0) {         int v = (kx[0] + ky[0]) % 4;         for (int i = 0; i < 8; i++) {           for (int j = 0; j < 8; j++) {             if (board[i][j] == 1 && (i + j) % 4 == v) {               good = true;             }           }         }       }       if (good) {         cout <<  YES  << endl;       } else {         cout <<  NO  << endl;       }     }     return 0;   }   