func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     string s;     cin >> s;     int a[n];     for (int i = 0; i < n; i++) cin >> a[i];     int m = 1e9;     for (int i = 0; i < n; i++)       if (s[i] ==  R  && s[i + 1] ==  L ) m = min(m, (a[i + 1] - a[i]) / 2);     if (m == 1e9)       cout << -1 << endl;     else       cout << m << endl;     return 0;   }   