贪心算法
西行妖下的亡灵
这个作者很懒,什么都没留下…
展开
-
ZOJ-4096 Postman(邮递员)(贪心)
Postman Time Limit:1 Second Memory Limit:65536 KB N letters have just arrived at the post office positioned at x=0, and the i-th letter should be posted to position x=ai . BaoBao, our belove...原创 2019-04-28 00:11:23 · 362 阅读 · 0 评论 -
ZOJ-4090 Thanks, TuSimple!(感谢你,图森未来公司)(贪心+赞助商广告)
ZOJ Problem Set - 4090 Thanks, TuSimple! Time Limit:1 Second Memory Limit:65536 KB In the very first sentence of the very first problem, we would like to give our sincere thanks to TuSimple,...原创 2019-04-27 11:07:51 · 489 阅读 · 0 评论 -
焦作区域赛 distance(思维+贪心)
There arenpoints on a horizontal line, labelled with1throughnfrom left to right. 有n个点在一条水平线上,从左到右以1到n标号 The distance between thei-th point and the(i+1)-th point isai. 点i+1与点i的距离为ai For ea...原创 2019-04-22 08:39:52 · 520 阅读 · 0 评论