上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 40 下一页
摘要: A. QAQ "QAQ" is a word to denote an expression of crying. Imagine "Q" as eyes with tears and "A" as a mouth. Now Diamond has given Bort a string consi 阅读全文
posted @ 2017-11-20 11:19 天之道,利而不害 阅读(231) 评论(0) 推荐(0) 编辑
摘要: Xenia the beginner programmer has a sequence a, consisting of 2n non-negative integers: a1, a2, ..., a2n. Xenia is currently studying bit operations. 阅读全文
posted @ 2017-11-19 22:19 天之道,利而不害 阅读(347) 评论(0) 推荐(0) 编辑
摘要: Nick has n bottles of soda left after his birthday. Each bottle is described by two values: remaining amount of soda ai and bottle volume bi (ai ≤ bi) 阅读全文
posted @ 2017-11-19 14:37 天之道,利而不害 阅读(357) 评论(0) 推荐(0) 编辑
摘要: One day Polycarp published a funny picture in a social network making a poll about the color of his handle. Many of his friends started reposting Poly 阅读全文
posted @ 2017-11-18 23:33 天之道,利而不害 阅读(424) 评论(0) 推荐(0) 编辑
摘要: Consider some square matrix A with side n consisting of zeros and ones. There are n rows numbered from 1 to n from top to bottom and n columns numbere 阅读全文
posted @ 2017-11-16 23:04 天之道,利而不害 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。 有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"1 X Y",表示X和Y是同类。 第二种 阅读全文
posted @ 2017-11-16 12:21 天之道,利而不害 阅读(277) 评论(0) 推荐(0) 编辑
摘要: Description In an extended version of the game Lights Out, is a puzzle with 5 rows of 6 buttons each (the actual puzzle has 5 rows of 5 buttons each). 阅读全文
posted @ 2017-11-09 23:00 天之道,利而不害 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 'Snakes and Ladders' or 'Shap-Ludu' is a game commonly played in Bangladesh. The game is so common that it would be tough to find a person who hasn't 阅读全文
posted @ 2017-11-08 23:31 天之道,利而不害 阅读(478) 评论(0) 推荐(0) 编辑
摘要: Farmer John has purchased a lush new rectangular pasture composed of M by N (1 ≤ M ≤ 12; 1 ≤ N ≤ 12) square parcels. He wants to grow some yummy corn 阅读全文
posted @ 2017-11-08 22:24 天之道,利而不害 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Given a dice with n sides, you have to find the expected number of times you have to throw that dice to see all its faces at least once. Assume that t 阅读全文
posted @ 2017-11-05 16:18 天之道,利而不害 阅读(275) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 40 下一页