#include "stdio.h" #include "string.h" int main(){ int i,n; char id[16],st[9],et[9]; char id1[16],st1[9],et1[9],name1[16],name2[16]; scanf("%d", &n); if(n != 0){ scanf("%s%s%s",id,st,et); strcpy(name1, id); strcpy(name2, id); strcpy(st1, st); strcpy(et1, et); for(i=1;i<n;i++){ scanf("%s%s%s", id, st, et); if(strcmp(st, st1)<0){ strcpy(st1, st); strcpy(name1, id); } if(strcmp(et, et1)>0){ strcpy(et1, et); strcpy(name2, id); } } printf("%s %s", name1, name2); } return 0; }
相关推荐
为了记录我在准备PAT甲级的练习,特开此页。 ... 但是由于代码风格的不同,我在学习他们的想法的同时也在努力形成自己的C++代码风格。...Sign In and Sign Out https://blog.csdn.net/weixin_42426496/article/detai
PAT OJ exercises in C language 浙江大学PAT纯C语言题解。
PAT OJ exercises in C language 纯C语言题解
1006 Sign In and Sign Out (25分) At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the ...
浙江大学PAT乙级测试训练题目
Neural Networks and Deep Learni - Pat Nakamoto.azw3
So I just add some logic to my .dcu files loader to generate .pat files in right format Supported Delphi versions: Delphi 2007 (v12) Delphi 2009 (v14) Delphi 2010 (v15) Delphi XE (v16) Delphi XE2 ...
directed learners.Pat Morin is an associate professor in the School of Computer Science at Carleton University as well as founder and managing editor of the open access Journal of Computational ...
[下载工具].Tonec.Inc.Internet.Download.Manager.v6.05.5.WinALL.Incl.Keygen.and.Patch-BRD.zip
CAD填充图案(三百多种)-.pat文件 部分如下(篇幅有限) 2x12木地板.pat 45度人字形砖面(1).pat 8x8无缝砖.pat Z形砖.pat 丁字砖面1.pat 丁字砖面2.pat 三联蜂窝.pat 三角形拼铺.pat 不能通行的沼泽地.pat 乱沙.pat...
浙大pat1002 C++代码
PAT甲级题目目录,按照一定规律分类,题目从新到...1082 Read Number in Chinese (25 分)【将数字转成中文】 1093 Count PAT's (25 分)【PAT计数】 1071 Speech Patterns (25 分)【如何将词取出并进行计数】
PAT历年真题参考代码PAT历年真题参考代码PAT历年真题参考代码
为PAT考试作宣传用,希望广大的师生们,积极踊跃的参加
PAT甲级优秀辅导资料
PAT题解
The Process Analysis Toolkit (PAT) is a CSP analysis tool developed in the School of Computing at the National University of Singapore. PAT is able to perform refinement checking, LTL model-...
photosh素材pat文件,
patb工程文件的说明文档,对patb工程文件的说明。adj、image、ori、cont。
我的PAT乙级练习题1001代码记录,题目地址:https://www.patest.cn/contests/pat-b-practise/1001