| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 134108 | 王丞杰 | 字符替换 | C++ | Wrong Answer | 2 MS | 264 KB | 225 | 2025-10-25 17:08:27 |
#include<bits/stdc++.h> using namespace std; char str1[200]; int main(){ cin.getline(str1,200); char a,b; cin>>a>>b; for(int i=0;i<=200;i++){ if(str1[i]==a){ str1[i]={b}; } cout<<str1[i]; } }
------Input------
2222211111 2 1
------Answer-----
1111111111
------Your output-----
1111111111