| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71757 | 刘宇轩 | 字符串替换 | C++ | Wrong Answer | 0 MS | 272 KB | 326 | 2024-04-27 16:19:17 |
#include<bits/stdc++.h> using namespace std; int main(){ string s,s1; getline(cin,s); getline(cin,s1); for(int i=0;i<s.size();i++){ if(s[i]>='a'&&s[i]<='z'){ cout<<s1[s[i]-'a']; } else if(s[i]>='A'&&s[i]<='Z'){ cout<<s1[s[i]-'A']-32; } } return 0; }
------Input------
AAABBBBCCCDDDabbc emtnohkgfsdajpircvqlxbuzwy
------Answer-----
EEEMMMMTTTNNNemmt
------Your output-----
69696977777777848484787878emmt