Run ID:91599
提交时间:2024-09-22 11:04:14
#include<bits/stdc++.h> using namespace std; int main() { char s[200],A,B; int i=0; cin>>s>>A>>B; while(s[i]!='\0'){ if(s[i]==A) s[i]=B; cout<<s[i]; i++; } cout<<endl; return 0; }