Run ID:62213
提交时间:2023-12-18 21:50:39
#include<bits/stdc++.h> using namespace std; int main() { char s[201] , a; cin>> s; int n=strlen(s); char b; cin>> a >> b; for(int i = 0; i<n ; i++){ if(s[i] == a){ s[i] = b; } } cout<< s; return 0; }