| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159656 | 张蔚林 | 字符串替换 | C++ | Accepted | 2 MS | 312 KB | 302 | 2026-09-06 09:55:34 |
#include<bits/stdc++.h> using namespace std; int main() { string s,t; getline(cin,s); getline(cin,t); int n=s.length(); for(int i=0;i<n;i++){ if(s[i]>='A'&&s[i]<='Z'){ s[i]=t[s[i]-'A']-32; } if(s[i]>='a'&&s[i]<='z'){ s[i]=t[s[i]-'a']; } } cout<<s; return 0; }