From c89555922fac6ae5e69bea6107ff4fa670de3b82 Mon Sep 17 00:00:00 2001 From: Kirito <1362050620@qq.com> Date: Tue, 28 Jun 2016 14:40:01 +0800 Subject: [PATCH] Create 1776.c --- QUSTOJ/1776.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 QUSTOJ/1776.c diff --git a/QUSTOJ/1776.c b/QUSTOJ/1776.c new file mode 100644 index 0000000..dd1a705 --- /dev/null +++ b/QUSTOJ/1776.c @@ -0,0 +1,18 @@ +#include +#include + +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; +}