
贪心算法
文章平均质量分 60
贪心
START_GAME
去做你认为对的事情就好
展开
-
一本通——1321:【例6.3】删数问题(Noip1994)
贪心原创 2023-03-05 23:11:57 · 1165 阅读 · 0 评论 -
一本通——1319:【例6.1】排队接水
贪心算法原创 2023-03-05 16:53:17 · 311 阅读 · 0 评论 -
一本通——1423:【贪心算法-例题2】种树
贪心算法原创 2023-03-05 00:13:38 · 710 阅读 · 0 评论 -
牛客网——第十八届浙大城市学院程序设计竞赛(同步赛)G题Permutation
链接:https://ac.nowcoder.com/acm/contest/12986/G来源:牛客网时间限制:C/C++ 1秒,其他语言2秒空间限制:C/C++ 524288K,其他语言1048576K64bit IO Format: %lldG题Permutation题目描述You are given two permutations a and b of length n.A permutation is a sequence of length n integers from 1原创 2021-03-22 00:24:14 · 526 阅读 · 2 评论 -
杭电 3730—— Chain(贪心)
Chain链接:杭电——3730 Chain(贪心)Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1062 Accepted Submission(s): 334Problem DescriptionLi Lei has many pearls of N different color. The number of each col原创 2021-03-20 21:41:33 · 124 阅读 · 0 评论 -
POJ 2376 Cleaning Shifts 贪心法
题目:Farmer John is assigning some of his N (1 <= N <= 25,000) cows to do some cleaning chores around the barn. He always wants to have one cow working on cleaning things up and has divided the day into T shifts (1 <= T <= 1,000,000), the first原创 2020-09-28 23:50:24 · 150 阅读 · 0 评论