func_code_string: #include <bits/stdc++.h>   using namespace std;   vector<int> v, vv, vv2;   int main() {     int t, n, a[1000], k, f = 0;     cin >> n;     if (n == 3) {       for (int i = 1; i <= n; i++) {         if (i % 2 != 0) {           for (int j = 1; j <= n; j++) {             if (j % 2 != 0) {               cout <<  W ;             } else               cout <<  B ;           }           cout << endl;         } else {           for (int k = 0; k < n; k++) {             cout <<  B ;           }           cout << endl;         }       }     } else {       for (int i = 1; i <= n; i++) {         if (i % 2 != 0) {           for (int j = 1; j <= n; j++) {             if (j % 2 != 0)               cout <<  W ;             else               cout <<  B ;           }           cout << endl;         } else {           for (int j = 1; j <= n; j++) {             if (j % 2 != 0)               cout <<  B ;             else               cout <<  W ;           }           cout << endl;         }       }     }     return 0;   }   