摘要: 描述 Mr Wang wants some boys to help him with a project. Because the project is rather complex, the more boys come, the better it will be. Of course the 阅读全文
posted @ 2017-08-14 15:33 淡蓝色光 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 描述 上次Gardon的迷宫城堡小希玩了很久(见Problem B),现在她也想设计一个迷宫让Gardon来走。但是她设计迷宫的思路不一样,首先她认为所有的通道都应该是双向连通的,就是说如果有一个通道连通了房间A和B,那么既可以通过它从房间A走到房间B,也可以通过它从房间B走到房间A,为了提高难度, 阅读全文
posted @ 2017-08-14 12:04 淡蓝色光 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 题目描述 小城和小华都是热爱数学的好学生,最近,他们不约而同地迷上了数独游戏,好胜的他 们想用数独来一比高低。但普通的数独对他们来说都过于简单了,于是他们向 Z 博士请教, Z 博士拿出了他最近发明的“靶形数独”,作为这两个孩子比试的题目。 靶形数独的方格同普通数独一样,在 9 格宽×9 格高的大九 阅读全文
posted @ 2017-08-13 12:14 淡蓝色光 阅读(746) 评论(0) 推荐(1) 编辑
摘要: 题目描述 房间里放着n块奶酪。一只小老鼠要把它们都吃掉,问至少要跑多少距离?老鼠一开始在(0,0)点处。 输入输出格式 输入格式: 第一行一个数n (n<=15) 接下来每行2个实数,表示第i块奶酪的坐标。 两点之间的距离公式=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2) 阅读全文
posted @ 2017-08-13 10:49 淡蓝色光 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 3054: FatMouse and Cheese 时间限制(普通/Java):1000MS/3000MS 内存限制:65536KByte总提交: 129 测试通过:78 描述 FatMouse has stored some cheese in a city. The city can be co 阅读全文
posted @ 2017-08-11 10:55 淡蓝色光 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 描述 You're given a tree with weights of each node, you need to find the maximum subtree of specified size of this tree. Tree Definition A tree is a con 阅读全文
posted @ 2017-08-11 10:48 淡蓝色光 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 描述 Charlie is a driver of Advanced Cargo Movement, Ltd. Charlie drives a lot and so he often buys coffee at coffee vending machines at motorests. Char 阅读全文
posted @ 2017-08-10 11:45 淡蓝色光 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 描述 A tug of war is to be arranged at the local office picnic. For the tug of war, the picnickers must be divided into two teams. Each person must be o 阅读全文
posted @ 2017-08-09 13:36 淡蓝色光 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 描述 The Czech Technical University is rather old - you already know that it celebrates 300 years of its existence in 2007. Some of the university build 阅读全文
posted @ 2017-08-08 19:27 淡蓝色光 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Description 内蒙古科技大学校长准备开一次年会。学校的员工和学生具有等级结构,即师生关系构成一棵树,以校长为树根,员工号是1到N之间的整数。人事部门把所有员工按活跃度排序,为了让年会使所有参加者都玩的高兴,校长不想让任何一个员工和他/她的直接导师同时被邀请。 你的任务是列一张客人名单,以使 阅读全文
posted @ 2017-08-08 19:16 淡蓝色光 阅读(198) 评论(0) 推荐(0) 编辑