Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
124834 | 罗锦墨 | 字符替换 | C++ | Wrong Answer | 1 MS | 272 KB | 225 | 2025-07-12 16:15:30 |
#include<bits/stdc++.h> using namespace std; char arr[250]; int main() { char A,B; cin>>arr; cin>>A>>B; for(int i=0;i<strlen(arr);i++){ if(arr[i]=A){ arr[i]=B; } cout<<arr[i]; } return 0; }
------Input------
aaccdef a 1
------Answer-----
11ccdef
------Your output-----
1111111