算法题目
文章平均质量分 63
Y_CanFly
拿着相机写代码
展开
-
【BIT乐学】Gone fishing【贪心+枚举】
DescriptionJohn is going on a fishing trip. He has h hours available (1 <= h <= 16), and there are n lakes in the area (2 <= n <= 25) all reachable along a single, one-way road. John starts at lake 1, but he can finish at any lake he wants. H原创 2021-03-06 14:35:48 · 572 阅读 · 0 评论 -
【BIT乐学】活动调度
题目输入要求:第一行为活动的个数 N(1<=N<=1 000 000) 。接下来 N 行为 Si 和 Fi(0<=Si<Fi<=2 000 000 000) ,分别代表第 i 个活动的开始时间和结束时间。活动 i 的区间段为 [Si,Fi)输出要求:输出有一行 M ,为所需教室的最小数量。测试用例输入111 43 50 65 73 85 96 108 118 122 1312 14输出5个人思路输入的同时原创 2021-03-05 11:27:49 · 541 阅读 · 0 评论