#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
string password;
cin>>n;
while(n--)
{
int k=4;
while(k--)
{
string str;
cin>>str;
if(str[2]=='T')
password+=str[0]-'A'+'1';
}
}
cout<<password<<endl;
return 0;
}
1076. Wifi密码 (15)
最新推荐文章于 2021-12-14 08:36:52 发布
本文介绍了一种通过特定输入格式解析Wi-Fi密码的算法实现。该算法接收一系列字符串输入,并依据特定规则转换为对应的Wi-Fi密码字符。适用于竞赛编程及密码学爱好者。
616

被折叠的 条评论
为什么被折叠?



