我的个人网站 Cheese的个人主页http://www.cheese.ren/
博客来源 PAT 乙级 1076 Wifi密码-Cheese的个人博客http://blog.cheese.ren/96
欢迎交换友链 :-)
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
char sum[n];
for (int i=0; i<n; i++) {
for (int l=0; l<4; l++) {
char str[3];
cin >> str;
if (str[2] == 'T') {
sum[i] = str[0] - 'A' + '0' + 1;
}
}
printf("%c", sum[i]);
}
printf("\n");
return 0;
}