当前位置:网站首页>nyoj757 期末考试 (优先队列)
nyoj757 期末考试 (优先队列)
2022-08-05 11:03:00 【51CTO】
期末考试
1000 ms | 内存限制: 65535
2
马上就要考试了,小T有许多作业要做,而且每个老师都给出来了作业要交的期限,如果在规定的期限内没
交作业就会扣期末成绩的分数,假设完成每门功课需要一天的时间,你能帮助小T扣除的分数最小吗?
输入n,表示n门功课(n<2000),接下来n行,每行两个数a,b,分别表示交作业的最后期限,迟交扣除的分数。
(以文件结尾)
输出 输出扣除的最小分数。 样例输入
3 3 10 3 5 3 1 3 1 6 3 2 1 3 7 1 3 4 2 6 1 4 7 2 6 4 5 3 4
样例输出
0 3 5
记得以前做过类似的 就直接敲了
边栏推荐
- TiDB 6.0 Placement Rules In SQL Usage Practice
- 用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
- Chapter 5: Multithreaded Communication—wait and notify
- What do T and Z in the time format 2020-01-13T16:00:00.000Z represent and how to deal with them
- 解决2022Visual Studio中scanf返回值被忽略问题
- 登录功能和退出功能(瑞吉外卖)
- Chapter 4: In the activiti process, variable transmission and acquisition process variables, setting and acquiring multiple process variables, setting and acquiring local process variables "recommende
- Dynamics 365Online PDF导出及打印
- nyoj86 找球号(一) set容器和二分 两种解法
- MMDetection in action: MMDetection training and testing
猜你喜欢
随机推荐
如何选币与确定对应策略研究
Android 开发用 Kotlin 编程语言 二 条件控制
CenOS MySQL入门及安装
API 网关简述
Scaling-law和模型结构的关系:不是所有的结构放大后都能保持最好性能
RT - Thread record (a, RT, RT Thread version - Thread Studio development environment and cooperate CubeMX quick-and-dirty)
Chapter 5: Activiti process shunting judgment, judging to go to different task nodes
字节一面:TCP 和 UDP 可以使用同一个端口吗?
智能算力的枢纽如何构建?中国云都的淮海智算中心打了个样
拓朴排序例题
发现C语言的乐趣
PPOCR 检测器配置文件参数详解
Nature:猪死亡1小时后,器官再次运转
朴素贝叶斯
【MySQL基础】-【数据处理之增删改】
How OpenHarmony Query Device Type
A small test of basic grammar, Go lang1.18 introductory refining tutorial, from Bai Ding to Hongru, basic grammar of go lang and the use of variables EP02
This notebook of concurrent programming knowledge points strongly recommended by Ali will be a breakthrough for you to get an offer from a big factory
Login function and logout function (St. Regis Takeaway)
What do T and Z in the time format 2020-01-13T16:00:00.000Z represent and how to deal with them









