Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
159553 杜禹轩 字符替换 C++ Accepted 1 MS 272 KB 198 2026-09-05 14:46:03

Tests(5/5):


Code:

#include <bits/stdc++.h> using namespace std; char a[1005],b,c; int main() { cin>>a>>b>>c; for(int i=0;i<strlen(a);i++){ if(a[i]==b){ a[i]=c; } cout<<a[i]; } return 0; }