| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136438 | 李明秦 | 字符串替换 | C++ | Accepted | 2 MS | 304 KB | 472 | 2025-11-14 15:46:58 |
#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 S,s1; cin>>S>>s1; for(int i=0;i<S.length();i++){ if('A'<=S[i]&&S[i]<='Z')S[i]=s1[S[i]-'A']-32; else if('a'<=S[i]&&S[i]<='z')S[i]=s1[S[i]-'a']; } cout<<S; return 0; }