******贪心******
文章平均质量分 91
Ever_glow
当命运需要你逆风飞翔的时候,就不能随风而去。
展开
-
HDU 1050 POJ 1083 Moving Tables
Moving TablesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 35472 Accepted Submission(s): 11681Problem DescriptionThe famous ACM (Advanced Computer Maker) Company has rented a floor of a b原创 2017-05-27 16:50:29 · 431 阅读 · 0 评论 -
石子游戏(贪心+思维)
石子游戏时间限制: 1 Sec 内存限制: 128 MB提交: 69 解决: 16[提交][状态][讨论版][命题人:admin]题目描述在Bob学会怎样玩Nim Game之后,他打算尝试另一款看起来更为简单的石子游戏这个游戏是这样子玩的:一共有一个玩家,且一开始有N堆石头,第i堆石头有ai个石子。玩家每次只能移动一个石子从一堆到另一堆。在每次移动结束后,如果存在一个整数x(x>1)满足...原创 2018-03-22 08:23:49 · 3238 阅读 · 0 评论 -
中石油 4509 keks(贪心)
4509: keks时间限制: 1 Sec 内存限制: 128 MB提交: 19 解决: 4[提交][状态][讨论版]题目描述给出一个n位数,要求删掉其中k位数字,使得剩下的数字组成的数尽量大。输入第1行:两个正整数n, k(1 <= k < n <= 500,000)。第2行:一个n位正整数(无前导0)。输出输出一行,一个正整数,表示剩下的数的最大值。样例输入4 21924样例输出94原创 2017-09-15 21:41:37 · 445 阅读 · 0 评论 -
HDU 2124 Repair the Wall(贪心)
Repair the WallTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4473 Accepted Submission(s): 2208Problem DescriptionLong time ago , Kitty lived in a small village. The air was fresh and the原创 2017-06-04 08:04:04 · 363 阅读 · 0 评论 -
51nod 1625 夹克爷发红包
51nod 1625 夹克爷发红包基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题在公司年会上,做为互联网巨头51nod掌门人的夹克老爷当然不会放过任何发红包的机会。现场有n排m列观众,夹克老爷会为每一名观众送出普通现金红包,每个红包内金额随机。接下来,夹克老爷又送出最多k组高级红包,每组高级红包会同时给一排或一列的人派发 ,每个高级红包的金额皆为x。派发高级红包时,普通红包将会强制收回。同时,每个人只能得到一个高级红包。(好小气!)现在求一种派发原创 2017-05-18 17:00:59 · 845 阅读 · 0 评论 -
贪心专题
最近做了一套贪心专题,是时候总结一下了,下面附上题目和思路,具体实现附上链接。题目地址:贪心1 点击打开链接 密码:LDUACM 贪心2点击打开链接 密码:lduacmA题 51nod 1449题目链接:点击打开链接1449 砝码称重题目来源: CodeForces基准时间限制:1 秒 空间限制:131原创 2017-05-27 09:25:40 · 1656 阅读 · 0 评论 -
POJ 1328 Radar Installation
Radar InstallationTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 86974 Accepted: 19482DescriptionAssume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in原创 2017-05-27 17:25:00 · 410 阅读 · 0 评论 -
HDU 4864 Task
TaskTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7206 Accepted Submission(s): 1897Problem DescriptionToday the company has m tasks to complete. The ith task need xi minutes to complete.原创 2017-05-27 17:18:19 · 471 阅读 · 0 评论 -
HDU 1051 Wooden Sticks
Wooden SticksTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21402 Accepted Submission(s): 8636Problem DescriptionThere is a pile of n wooden sticks. The length and weight of each stick are原创 2017-05-27 17:03:46 · 734 阅读 · 0 评论 -
2018中国大学生程序设计竞赛 - 网络选拔赛 A Buy and Resell (贪心)
Buy and ResellTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 163 Accepted Submission(s): 39Problem DescriptionThe Power Cube is used ...原创 2018-08-25 19:28:23 · 800 阅读 · 0 评论