标签:style color io os ar for div sp 问题
6 R 1 P 2 G 3 r 1 p 2 g 3
19 18 10 -17 -14 -4
#include<stdio.h> int main() { int t,y; char ch; scanf("%d",&t); while(t--) { getchar(); //注意字符输入时可能出现的问题,否则ch可能会接收'\n'; scanf("%c%d",&ch,&y); if(ch>='a'&&ch<='z') printf("%d\n",y-(ch-'a'+1)); else printf("%d\n",y+(ch-'A'+1)); } return 0; }
标签:style color io os ar for div sp 问题
原文地址:http://blog.csdn.net/qq_18062811/article/details/39431925