func_code_string: #include <bits/stdc++.h>   using namespace std;   int cnt[2][2];   string s;   int main() {     ios_base::sync_with_stdio(0);     cin >> s;     for (int i = 0; i < 2; i++) {       for (int j = 0; j < 2; j++) {         cnt[i][j] = 0;       }     }     for (int i = 0; i < s.length(); i++) {       cnt[i & 1][s[i] -  a ]++;     }     long long ans = 0;     for (int i = 0; i < 2; i++) {       ans += (long long)cnt[0][i] * cnt[1][i];     }     cout << ans <<    ;     ans = 0;     for (int i = 0; i < 2; i++) {       for (int j = 0; j < 2; j++) {         ans += (long long)cnt[i][j] * (cnt[i][j] + 1) / 2;       }     }     cout << ans;     return 0;   }   