摘要: Vova again tries to play some computer card game. The rules of deck creation in this game are simple. Vova is given an existing deck of n cards and a 阅读全文
posted @ 2017-07-07 23:46 樱花落舞 阅读(625) 评论(0) 推荐(1) 编辑
摘要: Alice and Bob got very bored during a long car trip so they decided to play a game. From the window they can see cars of different colors running past 阅读全文
posted @ 2017-07-07 23:30 樱花落舞 阅读(182) 评论(0) 推荐(0) 编辑
摘要: n children are standing in a circle and playing a game. Children's numbers in clockwise order form a permutation a1, a2, ..., an of length n. It is an 阅读全文
posted @ 2017-07-07 23:13 樱花落舞 阅读(214) 评论(0) 推荐(0) 编辑
摘要: There are n students who have taken part in an olympiad. Now it's time to award the students. Some of them will receive diplomas, some wiil get certif 阅读全文
posted @ 2017-07-07 22:54 樱花落舞 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2017-07-07 10:53 樱花落舞 阅读(224) 评论(0) 推荐(0) 编辑