Ps:尼玛这道题简直坑爹。。。就是直接比较ascii码....无脑题,想复杂了...
代码:#include "stdio.h"
#include "string.h"
#include "stdlib.h"
int main(){
int i,j,s,flag;
char a[110],max;
while(gets(a)){
s=strlen(a);
max=a[0];
for(i=1;i<s;i++){
if(max<a[i])
max=a[i];
}
for(i=0;i<s;i++){
if(a[i]==max)
printf("%c(max)",a[i]);
else
printf("%c",a[i]);
}
puts("");
}
return 0;
}