Create 1776.c

pull/22/head
Kirigaya Kazuto 2016-06-28 14:40:01 +08:00 committed by GitHub
parent 21ec2d09cc
commit c89555922f
1 changed files with 18 additions and 0 deletions

18
QUSTOJ/1776.c Normal file
View 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;
}