Untitled
user_5668965
c_cpp
09/24/2024 5:44 AM
300 B
53
Indexable
#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;
}Editor is loading...
Leave a Comment