贪心
文章平均质量分 81
于心有愧丶
这个作者很懒,什么都没留下…
展开
-
【CodeForces - 808C Tea Party】 贪心
E - Tea Party Polycarp invited all his friends to the tea party to celebrate the holiday. He has ncups, one for each of his n friends, with volumes a1, a2, ..., an. His teapot stores原创 2017-08-16 09:50:07 · 395 阅读 · 0 评论 -
【CodeForces - 798C Mike and gcd problem】 思维+贪心
E - Mike and gcd problem Mike has a sequence A = [a1, a2, ..., an] of length n. He considers the sequence B = [b1, b2, ..., bn] beautiful if the gcd of all its elements is bigger t原创 2017-08-17 10:14:25 · 241 阅读 · 0 评论 -
【CodeForces - 839B Game of the Rows】 贪心
B. Game of the Rows time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Daenerys Targaryen has an army consistin原创 2017-08-16 13:52:57 · 250 阅读 · 0 评论 -
【CodeForces - 777E Hanoi Factory】 贪心+栈
E - Hanoi Factory Of course you have heard the famous task about Hanoi Towers, but did you know that there is a special factory producing the rings for this wonderful game? Once upon a time,原创 2017-08-01 22:10:24 · 312 阅读 · 0 评论 -
【CodeForces - 754D Fedor and coupons】 贪心+优先队列
C - Fedor and coupons All our characters have hobbies. The same is true for Fedor. He enjoys shopping in the neighboring supermarket. The goods in the supermarket have unique integer ids. Al原创 2017-08-25 11:26:59 · 276 阅读 · 0 评论