赛前训练
训练
尒轩窗
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
B - Color the Fence
Description Igor 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 · 442 阅读 · 0 评论 -
A - Cinema Line
Description The 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 · 449 阅读 · 0 评论 -
C - Mafia
Description One 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 · 567 阅读 · 0 评论 -
A - TL
Description Valera 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 · 220 阅读 · 0 评论 -
A - New Bus Route
Description There 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 · 383 阅读 · 0 评论 -
B - Counting-out Rhyme
Description n 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 · 505 阅读 · 0 评论 -
A - Difference Row
Description You 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 · 292 阅读 · 0 评论 -
B - Fixed Points
Description A 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 · 294 阅读 · 0 评论 -
C - Alice and Bob
Description It 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 · 760 阅读 · 0 评论
分享