Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
111412 秦浩然 字符替换 C++ Wrong Answer 0 MS 292 KB 307 2025-03-01 19:58:34

Tests(0/5):


Code:

#include<bits/stdc++.h> using namespace std; int main() { char A[200]; cin>>A; char B,C; int i=0; cin>>B>>C; while(A[i]!='\0') { if(A[i]==B) { A[i]=C; } i++; } cout<<A; return 0; }


Run Info:

------Input------
2222211111 2 1
------Answer-----
1111111111
------Your output-----