赛前训练
训练
尒轩窗
这个作者很懒,什么都没留下…
展开
-
B - Color the Fence
DescriptionIgor has fallen in love with Tanya. Now Igor wants to show his feelings and write a number on the fence opposite to Tanya's house. Igor thinks that the larger the number is, the more ch原创 2017-03-18 17:05:33 · 396 阅读 · 0 评论 -
A - Cinema Line
DescriptionThe new "Die Hard" movie has just been released! There are n people at the cinema box office standing in a huge line. Each of them has a single 100, 50 or 25 ruble bill. A "Die Hard"原创 2017-03-18 17:12:56 · 398 阅读 · 0 评论 -
C - Mafia
DescriptionOne day n friends gathered together to play "Mafia". During each round of the game some player must be the supervisor and other n - 1people take part in the game. For each person we k原创 2017-03-18 20:52:40 · 522 阅读 · 0 评论 -
A - TL
DescriptionValera wanted to prepare a Codesecrof round. He's already got one problem and he wants to set a time limit (TL) on it.Valera has written n correct solutions. For each correct solution原创 2017-03-22 21:12:02 · 186 阅读 · 0 评论 -
A - New Bus Route
DescriptionThere are n cities situated along the main road of Berland. Cities are represented by their coordinates — integer numbers a1, a2, ..., an. All coordinates are pairwise distinct.It i原创 2017-03-29 22:10:13 · 349 阅读 · 0 评论 -
B - Counting-out Rhyme
Descriptionn children are standing in a circle and playing the counting-out game. Children are numbered clockwise from 1 to n. In the beginning, the first child is considered the leader. The gam原创 2017-03-29 22:28:19 · 456 阅读 · 0 评论 -
A - Difference Row
DescriptionYou want to arrange n integers a1, a2, ..., an in some order in a row. Let's define the value of an arrangement as the sum of differences between all pairs of adjacent integers.More原创 2017-03-16 10:03:19 · 243 阅读 · 0 评论 -
B - Fixed Points
DescriptionA permutation of length n is an integer sequence such that each integer from 0 to (n - 1) appears exactly once in it. For example, sequence [0, 2, 1] is a permutation of length 3 whil原创 2017-03-16 10:13:08 · 251 阅读 · 0 评论 -
C - Alice and Bob
DescriptionIt is so boring in the summer holiday, isn't it? So Alice and Bob have invented a new game to play. The rules are as follows. First, they get a set of n distinct integers. And then they原创 2017-03-16 10:44:25 · 682 阅读 · 0 评论