#include <cstdio>
#include <iostream>
#include <string>
using namespace std;
int main(){
int n;
scanf("%d", &n);
for(int i=0; i<n; i++){
for(int j=0; j<4; j++){
string s;
cin >> s;
if(s[2] == 'T'){
printf("%d", s[0]-'A'+1);
}
}
}
return 0;
}
PAT B1076 Wifi密码 (15 分)
猜你喜欢
转载自blog.csdn.net/weixin_45964844/article/details/114184453
今日推荐
周排行