func_code_string: #include <bits/stdc++.h>   using namespace std;   const int N = 1e5 + 10;   char second[N];   long long x, y, xx, yy;   int n;   bool check(long long days) {     long long px = x, py = y;     for (int i = 0; i < n; i++) {       long long mult = days / n;       if (i < (days % n)) mult++;       if (second[i] ==  U ) py += mult;       if (second[i] ==  D ) py -= mult;       if (second[i] ==  L ) px -= mult;       if (second[i] ==  R ) px += mult;     }     long long d = abs(xx - px) + abs(yy - py);     return d <= days;   }   int main() {     scanf( %lld%lld%lld%lld , &x, &y, &xx, &yy);     scanf( %d , &n);     scanf( %s , second);     long long lo = 0, hi = 1e18, ans = -1;     if (!check(hi)) {       cout << -1 << endl;       return 0;     }     while (hi - lo > 1) {       long long mid = (lo + hi) / 2;       if (check(mid)) {         ans = mid;         hi = mid;       } else {         lo = mid;       }     }     cout << hi << endl;     return 0;   }   