Untitled

 avatar
user_5668965
c_cpp
12 days ago
225 B
3
Indexable
Never
#include <bits/stdc++.h>
using namespace std;
int main() {
    int t;
    cin >> t;
    while(t--){
        string s;
        cin >> s;
        cout << (int)s[0] + (int)(s[2]) -96  << endl;
    }
 
    return 0;
}
Leave a Comment