#include<iostream> #include<string> using namespace std; void main(){ string str; while(cin>>str){ char s=0; for(int i=0;str[i]!='\0';++i){ if(s<str[i]) { s=str[i]; } } for(int j=0;str[j]!='\0';++j){ if(str[j]!=s) cout<<str[j]; else cout<<str[j]<<"(max)"; } cout<<endl; } }
杭电ACM 第2025题
最新推荐文章于 2020-09-03 17:31:51 发布