![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
无
我不是手机
这个作者很懒,什么都没留下…
展开
-
贪心 A - Sasha and His Trip
题目 Sasha is a very happy guy, that’s why he is always on the move. There are n cities in the country where Sasha lives. They are all located on one straight line, and for convenience, they are numbere...原创 2020-04-24 22:35:20 · 125 阅读 · 0 评论 -
贪心 B - Emotes
题目 There are n emotes in very popular digital collectible card game (the game is pretty famous so we won’t say its name). The i-th emote increases the opponent’s happiness by ai units (we all know tha...原创 2020-04-25 22:27:01 · 562 阅读 · 0 评论 -
贪心 C - Kayaking
题目 Vadim is really keen on travelling. Recently he heard about kayaking activity near his town and became very excited about it, so he joined a party of kayakers. Now the party is ready to start its j...原创 2020-04-27 22:41:45 · 319 阅读 · 0 评论 -
贪心 D - Got Any Grapes?
题目 The Duck song For simplicity, we’ll assume that there are only three types of grapes: green grapes, purple grapes and black grapes. Andrew, Dmitry and Michal are all grapes’ lovers, however their p...原创 2020-04-29 22:59:23 · 227 阅读 · 0 评论 -
贪心E - Clarke and food
题目 Clarke is a patient with multiple personality disorder. One day, Clarke turned into a cook, was shopping for food. Clarke has bought n food. The volume of the ith food is vi. Now Clarke has a pack ...原创 2020-05-01 22:54:10 · 112 阅读 · 0 评论 -
贪心 F - Two Cakes
题目 Sasha and Dima want to buy two n-tier cakes. Each cake should consist of n different tiers: from the size of 1 to the size of n. Tiers should go in order from the smallest to the biggest (from top ...原创 2020-05-03 18:43:56 · 192 阅读 · 0 评论 -
贪心 G - Sushi for Two
题目 Arkady invited Anna for a dinner to a sushi restaurant. The restaurant is a bit unusual: it offers n pieces of sushi aligned in a row, and a customer has to choose a continuous subsegment of these ...原创 2020-05-05 21:30:58 · 140 阅读 · 0 评论