Merge pull request #5 from QuestionableE/master

QUST 1501 Added
This commit is contained in:
Kirigaya Kazuto 2016-04-27 22:40:10 +08:00
commit a853372a4f

32
QUSTOJ/1501_nitouryuu.cpp Normal file
View File

@ -0,0 +1,32 @@
#include <stdio.h>
#include <string.h>
int main(void)
{
char a[101],b='9';
while(gets(a))
{
for(int c=0;c<strlen(a);c++)
{
if(a[c]>b)
b=a[c];
}
for(int c=0;c<strlen(a);c++)
{
printf("%c",a[c]);
if(a[c]==b)
printf("(max)");
}
printf("\n");
}
return 0;
}
/**************************************************************
Problem: 1501
User: 1508080122
Language: C
Result:
Time:0 ms
Memory:768 kb
****************************************************************/