上一页 1 ··· 7 8 9 10 11
摘要: "题目" Slastyona and her loyal dog Pushok are playing a meaningless game that is indeed very interesting. The game consists of multiple rounds. Its rule 阅读全文
posted @ 2020-04-22 11:19 Shawk 阅读(115) 评论(0) 推荐(0)
摘要: "题目" Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer number is beautiful if and only if it is divisibl 阅读全文
posted @ 2020-04-18 15:23 Shawk 阅读(134) 评论(0) 推荐(0)
摘要: "蚯蚓" 本题中,我们将用符号$[c]$表示对c向下取整,例如:$[3.0] = [3.1] =[3.9]=3$。蛐蛐国最近蚯蚓成灾了!隔壁跳蚤国的跳蚤也拿蚯蚓们没办法,蛐蛐国王只好去请神刀手来帮他们消灭蚯蚓。蛐蛐国里现在共有$n$只蚯蚓($n$为正整数)。每只蚯蚓拥有长度,我们设第$i$只蚯蚓的长 阅读全文
posted @ 2020-04-17 17:06 Shawk 阅读(142) 评论(0) 推荐(0)
摘要: 围豆豆 题目描述 是不是平时在手机里玩吃豆豆游戏玩腻了呢?最近MOKIA手机上推出了一种新的围豆豆游戏,大家一起来试一试吧。 游戏的规则非常简单,在一个N×M的矩阵方格内分布着D颗豆子,每颗豆有不同的分值Vi。游戏者可以选择任意一个方格作为起始格,每次移动可以随意的走到相邻的四个格子,直到最终又回到 阅读全文
posted @ 2020-04-16 18:58 Shawk 阅读(125) 评论(0) 推荐(0)
摘要: "Ants" An army of ants walk on a horizontal pole of length l cm, each with a constant speed of 1 cm/s. When a walking ant reaches an end of the pole, 阅读全文
posted @ 2020-04-14 19:03 Shawk 阅读(101) 评论(0) 推荐(0)
摘要: 题目 给出一个N个点的树,找出一个点来,以这个点为根的树时,所有点的深度之和最大 Input 给出一个数字N,代表有N个点.N<=1000000 下面N-1条边. Output 输出你所找到的点,如果具有多个解,请输出编号最小的那个. Sample Input 8 1 4 5 6 4 5 6 7 6 阅读全文
posted @ 2020-04-12 21:48 Shawk 阅读(141) 评论(0) 推荐(1)
摘要: 题目 B君在围观一群男生和一群女生玩游戏,具体来说游戏是这样的: 给出一棵n个节点的树,这棵树的每条边有一个权值,这个权值只可能是0或1。 在一局游戏开始时,会确定一个节点作为根。接下来从女生开始,双方轮流进行 操作。 当一方操作时,他们需要先选择一个不为根的点,满足该点到其父亲的边权为1; 然后找 阅读全文
posted @ 2020-04-12 18:46 Shawk 阅读(143) 评论(0) 推荐(0)
摘要: 题目 On another floor of the A.R.C. Markland-N, the young man Simon "Xenon" Jackson, takes a break after finishing his project early (as always). Having 阅读全文
posted @ 2020-04-11 18:15 Shawk 阅读(109) 评论(0) 推荐(0)
摘要: 题目 The Japanese government plans to increase the number of inbound tourists to forty million in the year 2020, and sixty million in 2030. Not only inc 阅读全文
posted @ 2020-04-10 19:24 Shawk 阅读(107) 评论(0) 推荐(0)
摘要: 题目 题目描述 Chris家的电话铃响起了,里面传出了Chris的老师焦急的声音:“喂,是Chris的家长吗?你们的孩子又没来上课,不想参加考试了吗?”一听说要考试,Chris的父母就心急如焚,他们决定在尽量短的时间内找到Chris。他们告诉Chris的老师:“根据以往的经验,Chris现在必然躲在 阅读全文
posted @ 2020-04-08 22:00 Shawk 阅读(89) 评论(0) 推荐(0)
摘要: "题目" A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone 阅读全文
posted @ 2020-04-08 21:24 Shawk 阅读(133) 评论(0) 推荐(0)
摘要: "题目" Farmer John has arranged his N (1 ≤ N ≤ 5,000) cows in a row and many of them are facing forward, like good cows. Some of them are facing backwar 阅读全文
posted @ 2020-04-08 14:14 Shawk 阅读(117) 评论(0) 推荐(0)
摘要: "Topic" NEKO ΦωΦ has just got a new maze game on her PC! The game's main puzzle is a maze, in the forms of a 2×n2×n rectangle grid. NEKO's task is to 阅读全文
posted @ 2020-04-08 13:58 Shawk 阅读(117) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11