Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
124826 | 田子熙 | 字符替换 | C++ | Wrong Answer | 0 MS | 272 KB | 234 | 2025-07-12 16:14:03 |
#include<bits/stdc++.h>//<csterint> using namespace std; char ace[205]; int main(){ char A,B; cin>>ace; cin>>A>>B; for(int i=0;i<=strlen(ace);i++){ if(ace[i]==A){ ace[i]=B; } cout<<ace[i]; } return 0; }
------Input------
2222211111 2 1
------Answer-----
1111111111
------Your output-----
1111111111