mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
Create 1776.c
This commit is contained in:
parent
21ec2d09cc
commit
c89555922f
18
QUSTOJ/1776.c
Normal file
18
QUSTOJ/1776.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
char str[128];
|
||||
int main()
|
||||
{
|
||||
int t;
|
||||
scanf("%d",&t);
|
||||
int sc=0;
|
||||
int tmp;
|
||||
while(t--)
|
||||
{
|
||||
scanf("%d",&tmp);
|
||||
if(tmp>sc) scanf("%s",str),sc=tmp;
|
||||
else scanf("%*s");
|
||||
}
|
||||
return printf("%d %s\n",sc,str),0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user