| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74549 | 夏梓瑞 | 字符替换 | C++ | Accepted | 0 MS | 276 KB | 299 | 2024-05-25 15:28:04 |
# include<iostream> # include<cstring> # include<cmath> using namespace std; int main() { int l=0; char a[1001],n,q; cin>>a>>n>>q; while(a[l]!='\0'){ if(a[l]==n) a[l]=q; l++; } cout<<a; return 0; }