摘要: P2482 #include <iostream> #include <fstream> #include <vector> #include <cstdlib> using std::cout; using std::endl; using std::cin; using std::ios; #d 阅读全文
posted @ 2019-11-29 20:35 Macesuted 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 此站已永久性停更。请前往 https://macesuted.moe。 阅读全文
posted @ 2019-11-29 20:30 Macesuted 阅读(212) 评论(0) 推荐(1) 编辑
摘要: 题面 原来是道大水题,但是它的题面有点意思,于是我就手残把它加进了解题计划中。 题面描述 对于操作系统,我们只拥有一个CPU,只能同时处理一个任务。现在有很多任务需要操作系统解决,它们将按照产生时间输入。 每个任务都需要一定时间完成,并且每个任务都有一个优先级和产生时间。当它们产生时,如果CPU空闲 阅读全文
posted @ 2019-11-29 12:40 Macesuted 阅读(144) 评论(0) 推荐(0) 编辑
摘要: P2278 #include <cstdio> #include <queue> struct task { int number; int need; int get; int grade; inline bool operator < (const task &b) const { return 阅读全文
posted @ 2019-11-29 12:38 Macesuted 阅读(121) 评论(0) 推荐(0) 编辑