#include <iostream> using namespace std; #include <algorithm> int main() { string str; cin>>str; auto it = find(str.begin(),str.end(),'5'); while(it!=str.end()) { *it = '*'; it = find(it+1,str.end(),'5'); } cout<<str; } // 64 位输出请用 printf("%lld")