当前位置:网站首页>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
记得以前做过类似的 就直接敲了
边栏推荐
- 机器学习——逻辑回归
- Android development with Kotlin programming language - basic data types
- 支持向量机SVM
- 微信小程序标题栏封装
- FPGA: Basic Getting Started LED Lights Blinking
- SQL Outer Join Intersection, Union, Difference Query
- Login function and logout function (St. Regis Takeaway)
- 19.3 restart the Oracle environment
- What do T and Z in the time format 2020-01-13T16:00:00.000Z represent and how to deal with them
- MMDetection实战:MMDetection训练与测试
猜你喜欢
365天挑战LeetCode1000题——Day 050 在二叉树中增加一行 二叉树
智源社区AI周刊No.92:“计算复杂度”理论奠基人Juris Hartmanis逝世;美国AI学生九年涨2倍,大学教师短缺;2022智源大会观点报告发布[附下载]
MySQL 中 auto_increment 自动插入主键值
双因子与多因子身份验证有什么区别?
Integration testing of software testing
CenOS MySQL入门及安装
数据可视化(二)
5G NR system messages
Common operations of oracle under linux and daily accumulation of knowledge points (functions, timed tasks)
微信小程序标题栏封装
随机推荐
nyoj86 找球号(一) set容器和二分 两种解法
5G NR 系统消息
R语言ggplot2可视化:可视化密度图(Density plot)、可视化多个分组的密度图、数据点分布在箱图中间、添加主标题、副标题、题注信息
什么是 DevOps?看这一篇就够了!
提取人脸特征的三种方法
Http-Sumggling缓存漏洞分析
导火索:OAuth 2.0四种授权登录方式必读
How to choose coins and determine the corresponding strategy research
拓朴排序例题
Android 开发用 Kotlin 编程语言 二 条件控制
Android development with Kotlin programming language three loop control
【OpenCV】-仿射变换
Chapter 5: Activiti process shunting judgment, judging to go to different task nodes
支持向量机SVM
PG优化篇--执行计划相关项
微服务结合领域驱动设计落地
电气工程的标准是什么
Ali's new launch: Microservices Assault Manual, all operations are written out in PDF
图像分割模型——segmentation_models_pytorch和albumentations 组合实现多类别分割
【名词】什么是PV和UV?