func_code_string: #include <bits/stdc++.h>   using namespace std;   int a[1000005];   int main() {     string s;     int p = 1, q = 1, ans = 0, ansCount = 1;     a[0] = -1;     cin >> s;     for (int i = 0, sz = s.length(); i < sz; i++) {       if (s[i] ==  ( ) {         a[p] = i;         p++;       } else {         p--;         if (p == 0) {           a[0] = i;           p = 1, q = 1;         } else {           int dis = i - a[p - 1];           if (dis > ans) {             ans = dis, ansCount = 1;           } else if (dis == ans)             ansCount++;         }       }     }     cout << ans <<     << ansCount;     return 0;   }   