浙大PAT 1006题 1006. Sign In and Sign Out
来源:互联网 发布:js获取上下文 编辑:程序博客网 时间:2024/06/02 18:21
谁是开门人和谁是锁门人,简单地模拟题。
#include<stdio.h>#include<string.h>int main(){char lkman[20],unlkman[20];char id[20],in[20],out[20];char fst[20]={"24:00:00"},last[20]={"00:00:00"};int i,j,n;scanf("%d",&n);for(i=0;i<n;i++){scanf("%s %s %s",id,in,out);if(strcmp(in,fst)<0){strcpy(fst,in);strcpy(unlkman,id);}if(strcmp(out,last)>0){strcpy(last,out);strcpy(lkman,id);}}printf("%s %s\n",unlkman,lkman);return 0;}
- 浙大PAT 1006题 1006. Sign In and Sign Out
- 浙大 PAT Advanced level 1006. Sign In and Sign Out
- PAT 1006. Sign In and Sign Out
- PAT 1006. Sign In and Sign Out
- 【PAT】1006. Sign In and Sign Out
- pat 1006 Sign In and Sign Out
- PAT 1006 Sign In and Sign Out
- PAT 1006 Sign In and Sign Out
- PAT 1006 Sign In and Sign Out
- PAT-Sign In and Sign Out (25)
- 1006. Sign In and Sign Out (25)-PAT
- 【PAT】1006. Sign In and Sign Out (25)
- 【PAT Advanced Level】1006. Sign In and Sign Out (25)
- PAT 1006. Sign In and Sign Out (25)
- PAT A 1006. Sign In and Sign Out (25)
- PAT(Advanced level) 1006. Sign In and Sign Out
- 【PAT (Advanced Level)】1006. Sign In and Sign Out (25)
- PAT 1006. Sign In and Sign Out (25)
- 数据包的读写---(九)
- eclipse执行编译后的类文件抛出Could not find the main class: 异常解决方案之一
- 开源 免费 java CMS - FreeCMS-数据对象-linkClass
- Ext.tree.DWRTreeLoader
- jdk内置工具(一)
- 浙大PAT 1006题 1006. Sign In and Sign Out
- 正则表达式30分钟入门教程
- 汇编-矩阵相乘
- 音乐播放器移植到开发板上
- 浙大PAT 1007题 1007. Maximum Subsequence Sum
- linux常用命令
- 函数调用中栈帧内容
- 浙大PAT 1008题 1008. Elevator
- SCTP相关术语