func_code_string: #include <bits/stdc++.h>   using namespace std;   string s[100001];   int main() {     int n, m;     cin >> n >> m;     for (int i = 1; i <= n; i++) {       cin >> s[i];     }     long double x = 0;     long long ans = 0;     for (int i = n; i >= 1; i--) {       if (s[i] ==  halfplus ) {         x += 0.5;       }       ans += x * m;       x *= 2;     }     cout << ans;     return 0;   }   