Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
124829 田子熙 字符替换 C++ Accepted 0 MS 268 KB 233 2025-07-12 16:14:51

Tests(5/5):


Code:

#include<bits/stdc++.h>//<csterint> using namespace std; char ace[205]; int main(){ char A,B; cin>>ace; cin>>A>>B; for(int i=0;i<strlen(ace);i++){ if(ace[i]==A){ ace[i]=B; } cout<<ace[i]; } return 0; }