func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int x, x0, y, y0;     cin >> x >> y >> x0 >> y0;     char s[100013];     cin >> s;     int a[513][513] = {};     int num = 0;     for (int i = 0; s[i] !=   0 ; i++) {       if (a[x0][y0] != 1) {         cout <<  1  ;         num++;       } else {         cout <<  0  ;       }       a[x0][y0] = 1;       if (s[i] ==  U  && x0 > 1) {         x0--;       }       if (s[i] ==  D  && x0 < x) {         x0++;       }       if (s[i] ==  L  && y0 > 1) {         y0--;       }       if (s[i] ==  R  && y0 < y) {         y0++;       }     }     cout << (x * y) - num;     return 0;   }   