您的位置:首页 > 其它

题目217 a letter and a number

2016-07-30 08:41 393 查看


     已AC代码:

#include<cstdio>
using namespace std;

int main()
{
int t;
scanf("%d", &t);
while(t--)
{
char x;
int y;
getchar();
scanf("%c%d", &x, &y);
if(x>64 && x<91)
printf("%d\n", x-64+y);
if(x>96 && x<123)
printf("%d\n", -(x-96)+y);
}
return 0;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  南阳理工OJ