题意:给定 n 个人和before, after的分数,让你找 before 的分数大于等于2400并且before 小于 after.

析:看完题意就知道怎么算了吧。。不用说了

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <vector> using namespace std;
const int ans = 2400;
char s[20]; int main(){
int T, b, a; cin >> T;
bool ok = false;
while(T--){
scanf("%s %d %d", s, &b, &a);
if(b >= ans && a > b) ok = true;
}
if(ok) puts("YES");
else puts("NO");
return 0;
}

最新文章

  1. java.io.Serializable 序列化接口
  2. Atiti 重定向标准输出到字符串转接口adapter stream流体系 以及 重定向到字符串
  3. Resample the mask
  4. Agile Software Development ——敏捷开发
  5. React 初学整理
  6. [have_fun] 好玩哒小游戏
  7. wechat
  8. POJ 2251 Dungeon Master --- 三维BFS(用BFS求最短路)
  9. [百度空间] [转]将程序移植到64位Windows
  10. magento flat和eav表连接的不同
  11. CSS移动
  12. 阿里云AliYun表格存储(Table Store)相关案例
  13. Java面向对象(二、继承)
  14. Python数据挖掘
  15. TCP的三次握手过程与四次挥手
  16. MySQL—查询某时间范围的数据
  17. 功能强大的swiper插件
  18. HDU 6143 Killer Names(容斥原理)
  19. [LeetCode 总结帖]: 链表专题
  20. 【刷题】LOJ 6000 「网络流 24 题」搭配飞行员

热门文章

  1. 解决navicat连接不上mysql服务器
  2. pyinstaller的使用方法 by 王大龙
  3. Quest.Central.for.DB2.v5.0.2.4下载地址
  4. Ubuntu安装Chrome过程中的细节
  5. 利用Nginx rewrite规则实现域名显性转发
  6. ASP.NET web 应用程序项目
  7. Linux Makefile 教程(转)
  8. 归纳整理Linux下C语言常用的库函数----文件操作
  9. docker-compose搭建单机多节点es + kibana
  10. Add words to your picture