| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 136968 | 王丞杰 | 字符串替换 | C++ | Wrong Answer | 1 MS | 280 KB | 244 | 2025-11-15 17:10:13 |
#include<bits/stdc++.h> using namespace std; int main(){ string s,s1; cin>>s>>s1; int a=s.size(); for(int i=0;i<=a;i++){ if(s[i]>='a' && s[i]<='z'){ cout<<s1[s[i]-'a']; } else{ cout<<char(s1[s[i]-'a']-32); } } }