标签:
6 R 1 P 2 G 3 r 1 p 2 g 3
19 18 10 -17 -14 -4
代码:
#include<iostream> using namespace std; int main() { int k,j; char i; cin>>k; while(k--) { cin>>i>>j; if(i<=‘Z‘&&i>=‘A‘) cout<<i+j-64<<endl; else if(i<=‘z‘&&i>=‘a‘) cout<<96-i+j<<endl; } }
标签:
原文地址:http://blog.csdn.net/u012701023/article/details/46041745