首页 > 代码库 > 南阳217

南阳217

 1 #include<stdio.h>
 2 int main()
 3 {
 4     int n,m;
 5     char s;
 6     scanf("%d",&n);
 7     while(n--)
 8     {
 9         scanf("%s%d",&s,&m);
10         if(s<a)
11             s-=A-1;
12         else
13             s=a-1-s;
14         printf("%d\n",s+m);
15     }
16 }

 

南阳217