#include<cstdio>
#include<iostream>
using namespace std;
int main(){
int n;
// freopen("2.txt","r",stdin);
scanf("%d",&n);
getchar();
while(n--){
char t;
int t1;
int sum=0;
scanf("%c %d",&t,&t1);
getchar();
if(t<91){
sum=t+t1-64;
}
else{
sum=t1-t+96;
}
printf("%d\n",sum);
}
}
HDU-2055(水题)
最新推荐文章于 2019-02-22 22:23:22 发布