上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 66 下一页
摘要: Subtrees问题描述一棵有N个节点的完全二叉树,问有多少种子树所包含的节点数量不同。输入描述输入有多组数据,不超过1000组.每组数据输入一行包含一个整数N.(1\leq N\leq {10}^{18})(1≤N≤10​18​​)输出描述对于每组数据输出一行,表示不同节点数的子树有多少种.输入样... 阅读全文
posted @ 2015-11-04 22:44 meekyan 阅读(237) 评论(0) 推荐(0) 编辑
摘要: D. Dreamoon and SetsDreamoon likes to play with sets, integers and.is defined as the largest positive integer that divides bothaandb.LetSbe a set of e... 阅读全文
posted @ 2015-11-02 16:02 meekyan 阅读(179) 评论(0) 推荐(0) 编辑
摘要: C. Dreamoon and SumsDreamoon loves summing up something for no reason. One day he obtains two integersaandboccasionally. He wants to calculate the sum... 阅读全文
posted @ 2015-11-02 15:57 meekyan 阅读(392) 评论(0) 推荐(0) 编辑
摘要: B. Dreamoon and WiFiDreamoon is standing at the position0on a number line. Drazil is sending a list of commands through Wi-Fi to Dreamoon's smartphone... 阅读全文
posted @ 2015-11-02 15:53 meekyan 阅读(609) 评论(0) 推荐(0) 编辑
摘要: A. Dreamoon and StairsDreamoon wants to climb up a stair ofnsteps. He can climb1or2steps at each move. Dreamoon wants the number of moves to be a mult... 阅读全文
posted @ 2015-11-02 15:48 meekyan 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Game问题描述XY在玩一个游戏:有N根柱子排成一排,编号为1到N,每个柱子上面有一块宝石,现在XY站在第S根柱子上,出口在第T跟柱子上,XY需要拿到所有宝石后从出口离开。每次XY可以走到相邻的柱子上,也可以使用超能力跳到第一根柱子或者第N根柱子上,如果离开了柱子之后再也不能到达这里。为了节省能量,... 阅读全文
posted @ 2015-11-02 00:32 meekyan 阅读(256) 评论(0) 推荐(0) 编辑
摘要: D. Red-Green TowersThere arerred andggreen blocks for construction of thered-greentower.Red-greentower can be built following next rules:Red-green tow... 阅读全文
posted @ 2015-10-31 19:48 meekyan 阅读(401) 评论(0) 推荐(0) 编辑
摘要: C. Table DecorationsYou haverred,ggreen andbblue balloons. To decorate a single table for the banquet you need exactly three balloons. Three balloons ... 阅读全文
posted @ 2015-10-31 19:41 meekyan 阅读(466) 评论(1) 推荐(0) 编辑
摘要: B. Random Teamsnparticipants of the competition were split intomteams in some manner so that each team has at least one participant. After the competi... 阅读全文
posted @ 2015-10-31 19:36 meekyan 阅读(394) 评论(0) 推荐(0) 编辑
摘要: B. The Child and SetAt the children's day, the child came to Picks's house, and messed his house up. Picks was angry at him. A lot of important things... 阅读全文
posted @ 2015-10-31 00:49 meekyan 阅读(226) 评论(0) 推荐(0) 编辑
上一页 1 ··· 46 47 48 49 50 51 52 53 54 ··· 66 下一页