func_code_string: #include <bits/stdc++.h>   using namespace std;   const int INF = 1000000000;   int n, k, m;   int a[1000000];   int main() {     ios_base::sync_with_stdio(0);     cin >> n >> k;     int d = 0;     if (n % 2 == 1) {       d = (n / 2 + 1) * (n / 2 + 1);       d += (n / 2) * (n / 2);     } else {       d = (n / 2) * (n / 2);       d *= 2;     }     if (d < k)       cout <<  NO ;     else {       cout <<  YES  << endl;       int cnt = 0;       for (int i = 1; i <= n; i++) {         for (int j = 1; j <= n; j++) {           if (cnt < k) {             if (i % 2 == 1) {               if (j % 2 == 1)                 cout <<  L , cnt++;               else                 cout <<  S ;             } else {               if (j % 2 == 0)                 cout <<  L , cnt++;               else                 cout <<  S ;             }           } else             cout <<  S ;         }         cout << endl;       }     }     return 0;   }   