HDU/2025/main.c

21 lines
373 B
C
Raw Permalink Normal View History

2020-08-31 16:48:58 +00:00
#include <stdio.h>
#include <string.h>
int main(void){
char string[101];
while(scanf("%s",string) != EOF){
char max = '\0';
int i, numbers = strlen(string);
for(i = 0; i < numbers; i++)
if(string[i] > max) max = string[i];
for(i = 0; i < numbers; i++){
printf("%c",string[i]);
if(string[i] == max) printf("(max)");
}
printf("\n");
}
return 0;
}