PAT 1006 Sign In and Sign Out
来源:互联网 发布:手机炒股软件画线 编辑:程序博客网 时间:2024/06/11 01:47
#include<iostream>#include<string>using namespace std;int main(){typedef struct{string id;string login;string logout;}info;info min;info max;info tmp;int n;cin>>n;for(int i=0; i<n; ++i){cin>>tmp.id>>tmp.login>>tmp.logout;if(min.id.size() == 0){min = tmp;max = tmp;}else{if(min.login.compare(tmp.login) > 0){min = tmp;}if(max.logout.compare(tmp.logout) < 0){max = tmp;}}}cout<<min.id<<" "<<max.id<<endl;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
- Pat(Advanced Level)Practice--1006(Sign In and Sign Out)
- PAT Advanced Level 1006:Sign In and Sign Out
- PAT(Advanced Level) 1006 - Sign In and Sign Out(水题)
- PAT (Advanced Level) Practise 1006 Sign In and Sign Out
- PAT 1006 Sign In and Sign Out(简单排序)
- [PAT] 1006 Sign In and Sign Out (25)
- pat甲级1006-Sign In and Sign Out
- 1006 Sign In and Sign Out (25)
- 1006 Sign in and Sign out
- java转义xml中的多余尖括号
- 深度学习数据集(一)
- 【C语言】用宏实现一个整形奇偶位交换
- ArcGIS接口详细说明之个人开发心得
- SPI 简介
- PAT 1006 Sign In and Sign Out
- Asynchronous HTTP Requests in Android Using Volley
- 用VCS实现mysql的双机热备
- 开始玩hadoop5--装hadoop(ubuntu14.04,hadoop-2.6.0,补充配置)
- MySQL数据库集群实现负载均衡的安装配置详解
- JS数据类型转换
- tabox 左右滑动选项卡封装jquery插件
- 快速排序
- Cloudcc销售自动化--CRM帮你搞定潜在客户