
Codeforces基础训练
您还不是尊贵的会员身份
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #518 (Div. 2) A. Birthday 思维
A. Birthday Ivan is collecting coins. There are only N different collectible coins, Ivan has K of them. He will be celebrating his birthday soon, so all his M freinds decided to gift him coins. They a...原创 2018-11-04 23:12:34 · 484 阅读 · 3 评论 -
Codeforces Round #518 (Div. 2) B. LCM 因数分解
B. LCM Ivan has number b. He is sorting through the numbers a from 1 to 1018, and for every a writes [a,b]a on blackboard. Here [a,b] stands for least common multiple of a and b. Ivan is very lazy, th...原创 2018-11-04 23:27:30 · 609 阅读 · 0 评论 -
Technocup 2019 - Elimination Round 2 A. Golden Plate
A. Golden Plate You have a plate and you want to add some gilding to it. The plate is a rectangle that we split into w×h cells. There should be k gilded rings, the first one should go along the edge o...原创 2018-11-04 23:36:45 · 227 阅读 · 0 评论 -
Codeforces Round #517 (Div. 2, based on Technocup 2019 Elimination Round B. Curiosity Has No Limits
B. Curiosity Has No Limits When Masha came to math classes today, she saw two integer sequences of length n−1 on the blackboard. Let’s denote the elements of the first sequence as ai (0≤ai≤3), and the...原创 2018-11-04 23:40:27 · 188 阅读 · 0 评论 -
Educational Codeforces Round 52 (Rated for Div. 2) A. Vasya and Chocolate
A. Vasya and Chocolate There is a special offer in Vasya’s favourite supermarket: if the customer buys a chocolate bars, he or she may take b additional bars for free. This special offer can be used a...原创 2018-11-04 23:43:57 · 188 阅读 · 0 评论 -
Educational Codeforces Round 52 (Rated for Div. 2) C. Make It Equal
C. Make It Equal There is a toy building consisting of n towers. Each tower consists of several cubes standing on each other. The i-th tower consists of hi cubes, so it has height hi. Let’s define ope...原创 2018-11-04 23:46:30 · 158 阅读 · 0 评论