![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
文章平均质量分 57
Aki_Mutou
Qingdao->Jinan->Tokyo->Osaka
展开
-
【Leetcode】【240406】1249. Minimum Remove to Make Valid Parentheses
其实大部分是东京时间第二天凌晨才做的- -但国际服刷新比较晚BGM:刀剑如梦。原创 2024-04-08 22:08:32 · 226 阅读 · 0 评论 -
我们来试着解答一下下面的题目(3)(贪心/区间调度)
舒适圈这么舒服,在里面不好吗(手动狗头.jpg题在小白书40页题目描述有n项工作,每项工作分别在si时间开始,在ti时间结束。对于每项工作,你都可以选择参与与否,。如果选择了参与,那么自始至终都必须全程参与。此外,参与工作的时间段不能重叠(即使是开始的瞬间和结束的瞬间重叠也是不允许的)。你的目标是参与尽可能多的工作,那么最多能参与多少项工作呢?限制条件1≤n≤1000001≤si≤t...原创 2019-01-27 12:22:29 · 134 阅读 · 0 评论 -
POJ3617 Best Cow Line(贪心:字典序最小+正确的输入/输出姿势)
这个题我好像在哪儿见过……Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 36220DescriptionFJ is about to take his N (1 ≤ N ≤ 2,000) cows to the annual"Farmer of the Year" competition. In this contest...原创 2019-02-21 22:43:56 · 145 阅读 · 0 评论 -
POJ3069 Saruman's Army
我离被自己气死就差那么一点DescriptionSaruman the White must lead his army along a straight path from Isengard to Helm’s Deep. To keep track of his forces, Saruman distributes seeing stones, known as palantirs, a...原创 2019-02-26 20:21:21 · 143 阅读 · 0 评论 -
POJ3253 Fence Repair(贪心+二叉树)
等看到那儿再填了这个坑。。点我看题原创 2019-02-26 21:34:56 · 145 阅读 · 0 评论 -
SDNU1331 Kick Veges' Ass(二分)
技改?gkd加强冰心和奶花DescriptionThere are n veges stand in line, Albert_s plan to punish them since they are too weak. The picture following below shows one of the veges waiting to be kicked.Now Albert_s p...原创 2019-05-21 19:25:05 · 195 阅读 · 0 评论 -
POJ2456(二分/最大化最小值)
声乐考核没叔,原创 2019-05-22 20:02:59 · 259 阅读 · 0 评论