标签:
#include<stdio.h>
int main()
{
char a[103];
while(scanf("%s",a)!=EOF)
{
char *p=a,ch=*p;
while(*(++p))
if(*p>ch) ch=*p;
p=a;
while(*p)
{
if(*p==ch) printf("%c(max)",*p);
else printf("%c",*p);
p++;
}
putchar(‘\n‘);
}
return 0;
}
标签:
原文地址:http://www.cnblogs.com/qinwenjie/p/5605384.html