【PAT乙级】1076 Wifi密码

题目链接:1076 Wifi密码

#include <iostream>
using namespace std;

int main(){
    int N;
    string s1,s2;
    cin >> N;
    for(int i=0;i<N;i++){
        for(int j=0;j<4;j++){
            cin >> s2;
            if(s2[2]=='T') s1 += s2[0]-'A'+'1';
        }
    }
    cout << s1 <<endl;
    return 0;
}

猜你喜欢

转载自blog.csdn.net/wulingyu501/article/details/109045173
今日推荐