09 2017 档案
Codeforces 343A. Rational Resistance
摘要:Mad scientist Mike is building a time machine in his spare time. To finish the work, he needs a resistor with a certain resistance value. However, all 阅读全文
posted @ 2017-09-30 11:03 Crutain 阅读(238) 评论(0) 推荐(0)
Codeforces 295A. Greg and Array
摘要:Greg has an array a = a1, a2, ..., an and m operations. Each operation looks as: li, ri, di, (1 ≤ li ≤ ri ≤ n). To apply operation i to the array mean 阅读全文
posted @ 2017-09-27 13:59 Crutain 阅读(287) 评论(0) 推荐(0)
Codeforces 553A. Kyoya and Colored Balls
摘要:Kyoya Ootori has a bag with n colored balls that are colored with k different colors. The colors are labeled from 1 to k. Balls of the same color are 阅读全文
posted @ 2017-09-21 19:48 Crutain 阅读(233) 评论(0) 推荐(0)
Codeforces 282B. Painting Eggs
摘要:The Bitlandians are quite weird people. They have very peculiar customs. As is customary, Uncle J. wants to have n eggs painted for Bitruz (an ancient 阅读全文
posted @ 2017-09-21 19:09 Crutain 阅读(238) 评论(0) 推荐(0)
Codeforces 862C. Mahmoud and Ehab and the xor
摘要:Mahmoud and Ehab are on the third stage of their adventures now. As you know, Dr. Evil likes sets. This time he won't show them any set from his large 阅读全文
posted @ 2017-09-20 09:44 Crutain 阅读(179) 评论(0) 推荐(0)
Codeforces 582A. GCD Table
摘要:The GCD table G of size n × n for an array of positive integers a of length n is defined by formula Let us remind you that the greatest common divisor 阅读全文
posted @ 2017-09-18 12:08 Crutain 阅读(193) 评论(0) 推荐(0)
Codeforces 538C. Tourist's Notes
摘要:A tourist hiked along the mountain range. The hike lasted for n days, during each day the tourist noted height above the sea level. On the i-th day he 阅读全文
posted @ 2017-09-13 22:25 Crutain 阅读(206) 评论(0) 推荐(0)
Codeforces 854C. Planning
摘要:Helen works in Metropolis airport. She is responsible for creating a departure schedule. There are n flights that must depart today, the i-th of them 阅读全文
posted @ 2017-09-08 10:36 Crutain 阅读(192) 评论(0) 推荐(0)
Codeforces 546D. Soldier and Number Game
摘要:Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then the second one t 阅读全文
posted @ 2017-09-06 19:54 Crutain 阅读(161) 评论(0) 推荐(0)
Codeforces 787B. Not Afraid
摘要:Since the giant heads have appeared in the sky all humanity is in danger, so all Ricks and Mortys from all parallel universes are gathering in groups 阅读全文
posted @ 2017-09-04 15:47 Crutain 阅读(211) 评论(0) 推荐(0)
Codeforces 670D. Magic Powder
摘要:Waking up in the morning, Apollinaria decided to bake cookies. To bake one cookie, she needs n ingredients, and for each ingredient she knows the valu 阅读全文
posted @ 2017-09-03 13:25 Crutain 阅读(313) 评论(0) 推荐(0)