#include <iostream>
#include <string>
using namespace std;
const char a[26] = { 'z','a','b','c','d','e','f','g','h','i','j',
'k','l','m','n','o','p','q','r','s','t','u','v','w','x','y' };
int main()
{
int N,n;
string s;
cin >> N;
while (N > 0)
{
n = 0;
cin >> s;
for (int i = 0;i < s.length();i++)
if (islower(s[i]))
n++;
n = n % 26;
cout << a[n]<<endl;
N--;
}
}
NYOJ 273 字母小游戏
最新推荐文章于 2018-02-19 18:04:38 发布