mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1501_nitouryuu.cpp
This commit is contained in:
parent
f9b9d304dd
commit
62cd7d1068
32
QUSTOJ/1501_nitouryuu.cpp
Normal file
32
QUSTOJ/1501_nitouryuu.cpp
Normal 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
|
||||
****************************************************************/
|
Loading…
Reference in New Issue
Block a user