func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int n, k, i, j;     long long int flag = 0;     cin >> n >> k;     long long int m = n * n;     long long int p;     char a[1000][1000];     if (m % 2 == 0) {       p = m / 2;     } else {       p = (m + 1) / 2;     }     if (k > p) {       cout <<  NO  << endl;     } else {       cout <<  YES  << endl;       for (i = 1; i <= n; i++) {         for (j = 1; j <= n; j++) {           a[i][j] =  S ;         }       }       long long int c = 0;       for (i = 1; i <= n; i++) {         for (j = 1; j <= n; j++) {           if (c == k) {             flag = 1;             break;           }           if (i % 2 != 0 && j % 2 != 0) {             a[i][j] =  L ;             c++;           }           if (i % 2 == 0 && j % 2 == 0) {             a[i][j] =  L ;             c++;           }         }         if (flag == 1) {           break;         }       }       for (i = 1; i <= n; i++) {         for (j = 1; j <= n; j++) {           cout << a[i][j];         }         cout << endl;       }     }   }   