An easy problem
Total Submission(s): 22126 Accepted Submission(s): 14606
Give you a letter x and a number y , you should output the result of y+f(x).
#include <stdio.h>
int main()
{
int T, y;
char x;
scanf("%d%*c",&T);
while (T--)
{
scanf("%c%d%*c",&x,&y);
if (x>='A'&&x<='Z')
printf ("%d\n",y+x-'A'+1);
else
printf ("%d\n",y+'z'-26-x);
}
return 0;
}