mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
14 lines
218 B
C++
14 lines
218 B
C++
|
#include<iostream>
|
||
|
using namespace std;
|
||
|
int main(){
|
||
|
int n,y,res;
|
||
|
char x;
|
||
|
cin>>n;
|
||
|
while(n--){
|
||
|
cin>>x>>y;
|
||
|
y=(x>96)?96-x+y:x-64+y;
|
||
|
cout<<y<<endl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|