05 2017 档案
Codeforces 431C. k-Tree
摘要:Quite recently a creative student Lesha had a lecture on trees. After the lecture Lesha was inspired and came up with the tree of his own which he cal 阅读全文
posted @ 2017-05-30 13:04 Crutain 阅读(457) 评论(0) 推荐(1)
Codeforces 750B. Spider Man
摘要:Peter Parker wants to play a game with Dr. Octopus. The game is about cycles. Cycle is a sequence of vertices, such that first one is connected with t 阅读全文
posted @ 2017-05-27 11:06 Crutain 阅读(248) 评论(0) 推荐(0)
Codeforces 463A. Caisa and Sugar
摘要:Caisa is going to have a party and he needs to buy the ingredients for a big chocolate cake. For that he is going to the biggest supermarket in town. 阅读全文
posted @ 2017-05-19 21:24 Crutain 阅读(223) 评论(0) 推荐(0)
Codeforces 701B. Cells Not Under Attack
摘要:Vasya has the square chessboard of size n × n and m rooks. Initially the chessboard is empty. Vasya will consequently put the rooks on the board one a 阅读全文
posted @ 2017-05-18 21:24 Crutain 阅读(331) 评论(0) 推荐(0)
Codeforces 445A. DZY Loves Chessboard
摘要:DZY loves chessboard, and he enjoys playing with it. He has a chessboard of n rows and m columns. Some cells of the chessboard are bad, others are goo 阅读全文
posted @ 2017-05-18 14:57 Crutain 阅读(289) 评论(0) 推荐(0)
Codeforces 453B. Fedya and Maths
摘要:Fedya studies in a gymnasium. Fedya's maths hometask is to calculate the following expression: (1^n + 2^n + 3^n + 4^n) mod 5 for given value of n. Fed 阅读全文
posted @ 2017-05-15 15:21 Crutain 阅读(246) 评论(0) 推荐(0)
Codeforces 743A. Vladik and flights
摘要:Vladik is a competitive programmer. This year he is going to win the International Olympiad in Informatics. But it is not as easy as it sounds: the qu 阅读全文
posted @ 2017-05-15 14:47 Crutain 阅读(178) 评论(0) 推荐(0)
Codeforce 672B. Different is Good
摘要:A wise man told Kerem "Different is good" once, so Kerem wants all things in his life to be different. Kerem recently got a string s consisting of low 阅读全文
posted @ 2017-05-13 00:25 Crutain 阅读(240) 评论(0) 推荐(0)
Codeforce 580C. Kefa and Park
摘要:Kefa decided to celebrate his first big salary by going to the restaurant. He lives by an unusual park. The park is a rooted tree consisting of n vert 阅读全文
posted @ 2017-05-11 14:37 Crutain 阅读(231) 评论(0) 推荐(0)
Codeforce 545D. Queue
摘要:Little girl Susie went shopping with her mom and she wondered how to improve service quality. There are n people in the queue. For each person we know 阅读全文
posted @ 2017-05-05 21:30 Crutain 阅读(279) 评论(0) 推荐(0)
Codeforce 573A. Bear and Poker
摘要:Limak is an old brown bear. He often plays poker with his friends. Today they went to a casino. There are nplayers (including Limak himself) and right 阅读全文
posted @ 2017-05-05 20:12 Crutain 阅读(274) 评论(0) 推荐(0)