#include<stdio.h>
void main()
{
char ch[100]="0", max;
int i;
while (~scanf_s("%s", ch, sizeof(ch)))
{
max = '\0';
i = 0;
while (ch[i])
if (ch[i++] > max)max = ch[i-1];
i = 0;
while (ch[i])
{
if (ch[i] == max)printf("%c(max)", ch[i++]);
else printf("%c", ch[i++]);
}
printf("\n");
}
}
杭电oj 2025 C语言
最新推荐文章于 2024-11-14 19:06:32 发布