CodeForces 681A A Good Contest (水题)
2024-09-02 06:17:15
题意:给定 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;
}
最新文章
- java.io.Serializable 序列化接口
- Atiti 重定向标准输出到字符串转接口adapter stream流体系 以及 重定向到字符串
- Resample the mask
- Agile Software Development ——敏捷开发
- React 初学整理
- [have_fun] 好玩哒小游戏
- POJ 2251 Dungeon Master --- 三维BFS(用BFS求最短路)
- [百度空间] [转]将程序移植到64位Windows
- magento flat和eav表连接的不同
- CSS移动
- 阿里云AliYun表格存储(Table Store)相关案例
- Java面向对象(二、继承)
- Python数据挖掘
- TCP的三次握手过程与四次挥手
- MySQL—查询某时间范围的数据
- 功能强大的swiper插件
- HDU 6143 Killer Names(容斥原理)
- [LeetCode 总结帖]: 链表专题
- 【刷题】LOJ 6000 「网络流 24 题」搭配飞行员
热门文章
- 解决navicat连接不上mysql服务器
- pyinstaller的使用方法 by 王大龙
- Quest.Central.for.DB2.v5.0.2.4下载地址
- Ubuntu安装Chrome过程中的细节
- 利用Nginx rewrite规则实现域名显性转发
- ASP.NET web 应用程序项目
- Linux Makefile 教程(转)
- 归纳整理Linux下C语言常用的库函数----文件操作
- docker-compose搭建单机多节点es + kibana
- Add words to your picture