
优先队列
优先队列
Guuuuuu老师儿
当初的算法竞赛题目博客的留言评论就不回复了,时间太久已经忘干净了,抱歉~
展开
-
Bear and Elections CodeForces - 574A(优先队列)
C - Bear and Elections CodeForces - 574A Limak is a grizzly bear who desires power and adoration. He wants to win in upcoming elections and rule over the Bearland. There are n candida原创 2017-11-05 20:52:49 · 394 阅读 · 0 评论 -
Magic Powder - 1 CodeForces - 670D1 (优先队列)
Magic Powder - 1 CodeForces - 670D1 This problem is given in two versions that differ only by constraints. If you can solve this problem in large constraints, then you can just write a single原创 2017-11-15 21:28:20 · 395 阅读 · 0 评论 -
In Touch HDU - 5361(优先队列优化dijkstra+并查集优化)
In Touch HDU - 5361 ...原创 2018-04-05 16:58:17 · 279 阅读 · 0 评论 -
Fools and Foolproof Roads CodeForces - 362D(并查集+优先队列)
Fools and Foolproof Roads CodeForces - 362D ...原创 2018-04-13 14:56:37 · 270 阅读 · 0 评论 -
Swordsman HDU - 6396(优先队列+输入外挂)
Swordsman HDU - 6396 Lawson is a magic swordsman with k kinds of magic attributes v1,v2,v3,…,vk. Now Lawson is faced with n monsters and the i-th monster also has k kinds of defensive attributes ai,1...原创 2018-08-14 12:32:13 · 268 阅读 · 0 评论 -
Buy Low Sell High CodeForces - 867E(贪心+优先队列)
Buy Low Sell High CodeForces - 867E You can perfectly predict the price of a certain stock for the next N days. You would like to profit on this knowledge, but only want to transact one share of stoc...原创 2018-08-27 13:29:41 · 397 阅读 · 0 评论 -
Buy and Resell HDU - 6438(贪心+优先队列)
Buy and Resell HDU - 6438 The Power Cube is used as a stash of Exotic Power. There are n cities numbered 1,2,…,n where allowed to trade it. The trading price of the Power Cube in the i-th city is ai ...原创 2018-08-27 13:45:59 · 488 阅读 · 0 评论