import java.io.*;
public class pat1076 {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StreamTokenizer st = new StreamTokenizer(br);
st.nextToken();
int N = (int)st.nval;
String output = "";
for(int i=0;i<N*4;i++) {
st.nextToken();
String temp = st.sval;
if(temp.charAt(2)=='T') {
int out = temp.charAt(0) - 'A' + 1;
output += out;
}
}
System.out.println(output);
}
}
PAT乙级 1076 Wifi密码 (15 分) Java 实现
最新推荐文章于 2022-05-29 16:38:05 发布