上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 66 下一页
摘要: 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 阅读(216) 评论(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 阅读(224) 评论(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 阅读(303) 评论(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 阅读(275) 评论(0) 推荐(0) 编辑
摘要: A Magic LampProblem DescriptionKiki likes traveling. One day she finds a magic lamp, unfortunately the genie in the lamp is not so kind. Kiki must ans... 阅读全文
posted @ 2015-11-07 14:31 meekyan 阅读(591) 评论(0) 推荐(2) 编辑
摘要: Lie问题描述一个年级总共有N个学生,每个人属于唯一一个班级。现在他们站在一排,同班同学并不一定会站在一起,但每个人都会说一句话:“站在我左边的有Ai个同班同学,右边有Bi个同班同学”。然而并不是每个人都会说真话,老师也忘了他们说话的顺序,现在老师想知道最多有多少人的话同时不矛盾。输入描述输入有多组... 阅读全文
posted @ 2015-11-07 01:06 meekyan 阅读(348) 评论(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 阅读(284) 评论(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 阅读(250) 评论(0) 推荐(0) 编辑
摘要: A. 2CharAndrew often reads articles in his favorite magazine 2Char. The main feature of these articles is that each of them uses at most two distinct ... 阅读全文
posted @ 2015-11-05 12:39 meekyan 阅读(252) 评论(0) 推荐(0) 编辑
摘要: D. FlowersWe saw the little game Marmot made for Mole's lunch. Now it's Marmot's dinner time and, as we all know, Marmot eats flowers. At every dinner... 阅读全文
posted @ 2015-11-04 23:02 meekyan 阅读(243) 评论(0) 推荐(0) 编辑
上一页 1 ··· 45 46 47 48 49 50 51 52 53 ··· 66 下一页