| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 123425 | 罗子童 | 字符串替换 | C++ | Wrong Answer | 1 MS | 272 KB | 572 | 2025-06-29 19:35:59 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string a,b; getline(cin,a); getline(cin,a); for(int i=0;i<a.size();i++){ if('A'<=a[i]&&a[i]<='Z'){ a[i]=b[a[i]-'A']-32; } else if('a'<=a[i]&&a[i]<='z'){ a[i]=b[a[i]-'a']; } } cout<<a; return 0; }
------Input------
AAABBBBCCCDDDabbc emtnohkgfsdajpircvqlxbuzwy
------Answer-----
EEEMMMMTTTNNNemmt
------Your output-----