Live2d Test Env
摘要: 时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Given a directed graph containing n vertice (numbered from 1 to n) and m edges. Can you tell us how many differ 阅读全文
posted @ 2017-12-03 21:53 nimphy 阅读(257) 评论(0) 推荐(1) 编辑
摘要: 问题: Squares and rectangles fascinated the famous Dutch painter Piet Mondriaan. One night, after producing the drawings in his 'toilet series' (where h 阅读全文
posted @ 2017-12-03 19:51 nimphy 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 问题 Recently, researchers on Mars have discovered N powerful atoms. All of them are different. These atoms have some properties. When two of these atom 阅读全文
posted @ 2017-12-03 16:24 nimphy 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 问题 The Pizazz Pizzeria prides itself in delivering pizzas to its customers as fast as possible. Unfortunately, due to cutbacks, they can afford to hir 阅读全文
posted @ 2017-12-03 15:24 nimphy 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 问题描述 司令部的将军们打算在N*M的网格地图上部署他们的炮兵部队。一个N*M的地图由N行M列组成,地图的每一格可能是山地(用"H" 表示),也可能是平原(用"P"表示),如下图。在每一格平原地形上最多可以布置一支炮兵部队(山地上不能够部署炮兵部队);一支炮兵部队在地图上的攻击范围如图中黑色区域所示 阅读全文
posted @ 2017-12-03 12:14 nimphy 阅读(348) 评论(0) 推荐(0) 编辑
摘要: Description 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 阅读全文
posted @ 2017-12-03 10:49 nimphy 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 描述 兔子们在玩k个串的游戏。首先,它们拿出了一个长度为n的数字序列,选出其中的一个连续子串,然后统计其子串中所有数字之和(注意这里重复出现的数字只被统计一次)。 兔子们想知道,在这个数字序列所有连续的子串中,按照以上方式统计其所有数字之和,第k大的和是多少。 输入 第一行,两个整数n和k,分别表示 阅读全文
posted @ 2017-12-03 09:37 nimphy 阅读(320) 评论(0) 推荐(0) 编辑