随笔分类 -  Codeforces

摘要:B. Spongebob and JokeWhile Patrick was gone shopping, Spongebob decided to play a little trick on his friend. The naughty Sponge browsed through Patri... 阅读全文
posted @ 2015-11-21 17:38 meekyan 阅读(207) 评论(0) 推荐(0)
摘要:A. Patrick and ShoppingToday Patrick waits for a visit from his friend Spongebob. To prepare for the visit, Patrick needs to buy some goodies in two s... 阅读全文
posted @ 2015-11-21 17:34 meekyan 阅读(227) 评论(0) 推荐(0)
摘要:D. Vasya and ChessVasya decided to learn to play chess. Classic chess doesn't seem interesting to him, so he plays his own sort of chess.The queen is ... 阅读全文
posted @ 2015-11-19 22:32 meekyan 阅读(185) 评论(0) 推荐(0)
摘要:C. Vasya and BasketballVasya follows a basketball game and marks the distances from which each team makes a throw. He knows that each successful throw... 阅读全文
posted @ 2015-11-19 22:28 meekyan 阅读(220) 评论(0) 推荐(0)
摘要:B. Vasya and WrestlingVasya has become interested in wrestling. In wrestling wrestlers use techniques for which they are awarded points by judges. The... 阅读全文
posted @ 2015-11-19 22:23 meekyan 阅读(225) 评论(0) 推荐(0)
摘要:A. Vasya and FootballVasya has started watching football games. He has learned that for some fouls the players receive yellow cards, and for some foul... 阅读全文
posted @ 2015-11-19 22:18 meekyan 阅读(196) 评论(0) 推荐(0)
摘要:D. Beautiful numbersVolodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number isbeautifulif and only if i... 阅读全文
posted @ 2015-11-16 13:57 meekyan 阅读(206) 评论(0) 推荐(0)
摘要:D. KindergartenIn a kindergarten, the children are being divided into groups. The teacher put the children in a line and associated each child with hi... 阅读全文
posted @ 2015-11-14 21:33 meekyan 阅读(233) 评论(0) 推荐(0)
摘要:D. Maximum ValueYou are given a sequenceaconsisting ofnintegers. Find the maximum possible value of(integer remainder ofaidivided byaj), where1 ≤ i, j... 阅读全文
posted @ 2015-11-14 21:29 meekyan 阅读(335) 评论(0) 推荐(0)
摘要:A. BitsLet's denote asthe number of bits set ('1' bits) in the binary representation of the non-negative integerx.You are given multiple queries consi... 阅读全文
posted @ 2015-11-14 21:20 meekyan 阅读(329) 评论(0) 推荐(0)
摘要:D. Super MAri the monster is not an ordinary monster. She is the hidden identity of Super M, the Byteforces’ superhero. Byteforces is a country that c... 阅读全文
posted @ 2015-11-10 15:54 meekyan 阅读(216) 评论(0) 推荐(0)
摘要:B. Pasha and PhonePasha has recently bought a new phonejPagerand started adding his friends' phone numbers there. Each phone number consists of exactl... 阅读全文
posted @ 2015-11-09 15:48 meekyan 阅读(362) 评论(0) 推荐(0)
摘要:D. Max and BikeFor months Maxim has been coming to work on his favorite bicycle. And quite recently he decided that he is ready to take part in a cycl... 阅读全文
posted @ 2015-11-09 15:41 meekyan 阅读(318) 评论(0) 推荐(0)
摘要:E. LIS of SequenceThe next "Data Structures and Algorithms" lesson will be about Longest Increasing Subsequence (LIS for short) of a sequence. For bet... 阅读全文
posted @ 2015-11-08 23:57 meekyan 阅读(290) 评论(0) 推荐(0)
摘要:D. Valid SetsAs you know, an undirected connected graph withnnodes andn - 1edges is called atree. You are given an integerdand a tree consisting ofnno... 阅读全文
posted @ 2015-11-08 23:51 meekyan 阅读(223) 评论(0) 推荐(0)
摘要:C. Palindrome TransformationNam is playing with a string on his computer. The string consists ofnlowercase English letters. It is meaningless, so Nam ... 阅读全文
posted @ 2015-11-08 23:46 meekyan 阅读(234) 评论(0) 推荐(0)
摘要:B. OR in MatrixLet's define logicalORas an operation on two logical values (i. e. values that belong to the set{0, 1}) that is equal to1if either or b... 阅读全文
posted @ 2015-11-08 23:41 meekyan 阅读(313) 评论(0) 推荐(0)
摘要:A. Calculating FunctionFor a positive integernlet's define a functionf:f(n) = - 1 + 2 - 3 + .. + ( - 1)nnYour task is to calculatef(n)for a given int... 阅读全文
posted @ 2015-11-08 23:39 meekyan 阅读(281) 评论(0) 推荐(0)
摘要:D. MUH and Cube WallsPolar bears Menshykov and Uslada from the zoo of St. Petersburg and elephant Horace from the zoo of Kiev got hold of lots of wood... 阅读全文
posted @ 2015-11-06 20:10 meekyan 阅读(293) 评论(0) 推荐(0)
摘要:B. Anton and LinesThe teacher gave Anton a large geometry homework, but he didn't do it (as usual) as he participated in a regular round on Codeforces... 阅读全文
posted @ 2015-11-05 12:46 meekyan 阅读(262) 评论(0) 推荐(0)