HDU/2025/main.c
Saturneric 0525ffad24 Add.
2020-09-01 00:48:58 +08:00

21 lines
373 B
C

#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;
}