Run ID:146387

提交时间:2026-01-28 13:28:33

#include<bits/stdc++.h> using namespace std; int main(){ char a[201]={},z,x; cin>>a>>z>>x; while() for(int i=0;i<x;i++){ if(a[i]==z){ a[i]=x; } } cout<<a; return 0; } /**7777788888 cout<<a<<endl; 7 8 8 7 88888 7 8 8 7 88888 cin.getline(a,100000);**/