| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 81833 | 杜奕辰 | 字符替换 | C++ | Accepted | 1 MS | 272 KB | 259 | 2024-07-12 15:40:23 |
#include<bits/stdc++.h> using namespace std; int main() { char s[201]; cin>>s; char a,b; int x=0; cin>>a>>b; while(s[x]!='\0') { if(s[x]==a) s[x]=b; x++; } cout<<s; return 0; }