题目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 题目217 a letter and a number
- 南阳OJ-题目217:a letter and a number
- 南阳理工:a letter and a number
- NYOJ-217-a letter and a number-2013年10月18日17:07:11
- a letter and a number
- NYOJ 217 a letter and a number
- a letter and a number
- LeetCode Online Judge 题目C# 练习 - Letter Combinations of a Phone Number
- nyoj-217-a letter and a number
- nyoj 217 a letter and a number
- a letter and a number
- NYOJ-a letter and a number
- a letter and a number
- a letter and a number
- 南阳 OJ 217 a letter and a number (字符串处理)
- a letter and a number
- Middle-题目72:17. Letter Combinations of a Phone Number
- letter and number
- NYOJ 217 a letter and a number
- a letter and a number