func_code_string: #include <bits/stdc++.h>   using namespace std;   struct triple {     int x, y, z;   };   int n, x1, y11, x2, y22;   string s[9];   int main() {     cin >> n;     while (n--) {       for (__typeof(8) i = 1; i <= 8; i++) cin >> s[i], s[i] =  #  + s[i];       bool tmp = false;       for (__typeof(8) i = 1; i <= 8; i++) {         for (__typeof(8) j = 1; j <= 8; j++)           if (s[i][j] ==  K ) {             if (tmp == false) {               tmp = true;               x1 = i;               y11 = j;             } else {               x2 = i;               y22 = j;             }           }       }       tmp = false;       for (__typeof(8) i = 1; i <= 8; i++)         for (__typeof(8) j = 1; j <= 8; j++)           if (tmp == false && s[i][j] !=  # ) {             int tx1 = abs(i - x1), ty1 = abs(j - y11), tx2 = abs(i - x2),                 ty2 = abs(j - y22);             if (tx1 % 2 == 0 && ty1 % 2 == 0 && tx2 % 2 == 0 && ty2 % 2 == 0 &&                 (tx1 / 2 + ty1 / 2) % 2 == 0 && (tx2 / 2 + ty2 / 2) % 2 == 0 &&                 (max(tx1 / 2, ty1 / 2) + max(tx2 / 2, ty2 / 2)) % 2 == 0) {               cout <<  YES n ;               tmp = true;             }           }       if (tmp == false) cout <<  NO n ;     }   }   