PAT 1006. Sign In and Sign Out
来源:互联网 发布:湖南软件企业评估 编辑:程序博客网 时间:2024/05/19 23:57
#include<iostream>#include<string>using namespace std;int main(){ int cnt;cin>>cnt; string first,last,in("44:44:44"),out("00:00:00"); while(cnt--){ string a,b,c;cin>>a>>b>>c; if(b<in){first=a;in=b;}; if(c>out){last=a;out=c;} } cout<<first<<' '<<last; return 0;}
0 0
- 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)
- PAT 1006 Sign In and Sign Out
- 浙大PAT 1006题 1006. Sign In and Sign Out
- 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)
- PAT 1006. Sign In and Sign Out (25)
- C++Primer学习笔记《三》
- hdu 1075 What Are You Talking About
- Android SDK更新 Connection to http://dl-ssl.google.com refused 解决方法
- java执行js代码
- java.sql.SQLException: 索引中丢失 IN 或 OUT 参数:: 1解决办法
- PAT 1006. Sign In and Sign Out
- 错误记录--更改tomcat端口号方法,Several ports (8005, 8080, 8009)
- vector和list区别
- Spark资讯汇总(微信公共号:Spark大数据)
- 卸载oracle11g
- 详解clone函数
- 自己动手写CSDN博客提取器源码分析之三:处理网页保存为pdf文件
- [windows+cocos2dx]定时器的使用
- 综合程序题目>>4、模拟智能交通信号灯系统