Run ID:81841
提交时间:2024-07-12 15:41:13
#include<bits/stdc++.h> using namespace std; int main(){ char s[201]; char a,b; cin >> s; cin >> a >> b; for(int i = 0;i < strlen(s);i++){ if(s[i] == a){ s[i] = b; } } for(int j = 0;j < strlen(s);j++){ cout << s[j]; } return 0; }