摘要: 我们使用贪心算法,看看哪个是决定最大长度,从这个切入点入手。然后计算最大时间 #include "iostream" #include "vector" #include "algorithm" using namespace std; struct Job { int b, j; bool ope 阅读全文
posted @ 2020-04-17 11:44 SteveYu 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 思维体操入门,进行排序后,拿最小的进行比对,如果可以砍头,将骑士能力值置为-1,并加上金额,否则遇到不行的时候,直接打印退出程序。 #include "iostream" #include "algorithm" using namespace std; int n, m; int head[999 阅读全文
posted @ 2020-04-17 03:14 SteveYu 阅读(159) 评论(0) 推荐(0) 编辑