摘要: Tour operator Your Personal Holiday organises guided bus trips across the Benelux. Every day the bus moves from one city S to another city F. On this 阅读全文
posted @ 2018-03-14 21:19 Zireael 阅读(212) 评论(0) 推荐(0) 编辑
摘要: Christmas is coming to KCM city. Suby the loyal civilian in KCM city is preparing a big neat Christmas tree. The simple structure of the tree is shown 阅读全文
posted @ 2018-03-12 17:47 Zireael 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 大家一定觉的运动以后喝可乐是一件很惬意的事情,但是seeyou却不这么认为。因为每次当seeyou买了可乐以后,阿牛就要求和seeyou一起分享这一瓶可乐,而且一定要喝的和seeyou一样多。但seeyou的手中只有两个杯子,它们的容量分别是N 毫升和M 毫升 可乐的体积为S (S include 阅读全文
posted @ 2018-03-11 10:06 Zireael 阅读(170) 评论(0) 推荐(0) 编辑
摘要: Assume the coasting is an infinite straight line. Land is in one side of coasting, sea in the other. Each small island is a point locating in the sea 阅读全文
posted @ 2018-03-10 10:21 Zireael 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 划分数:把n个无区别的物品划分成不超过m组。 dp[i][j]=j的i划分的总数。 dp[i[j]=dp[i][j i]+dp[i 1][j] 即:将j个物品分成i份,有两种情况:每份划分都大于等于1 dp[i][j i]; 存在有一份以上用0划分dp[i 1][j] int main() { in 阅读全文
posted @ 2018-03-07 20:23 Zireael 阅读(397) 评论(0) 推荐(0) 编辑
摘要: FatMouse's Speed FatMouse believes that the fatter a mouse is, the faster it runs. To disprove this, you want to take the data on a collection of mice 阅读全文
posted @ 2018-02-19 21:03 Zireael 阅读(159) 评论(0) 推荐(0) 编辑
摘要: ``` include include include using namespace std; const int INF=0x3f3f3f3f; const int maxn=10005; int perm[maxn]; bool used[maxn]; int n; void permutat 阅读全文
posted @ 2018-02-12 13:57 Zireael 阅读(585) 评论(0) 推荐(0) 编辑
摘要: 题目描述 我们定义一个圆 C 为以原点 (0, 0) 为中心的单位圆(半径为 1 的圆)。给定在 C 圆周上相异的两点 A, B。请问由 A 出发,沿着圆周走到 B,是顺时针走比较近,还是逆时针走比较近呢? C 的圆周上的所有点都可以用 (cos(t), sin(t)) 来表示,其中 t 的物理意义 阅读全文
posted @ 2018-02-10 18:41 Zireael 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Iahub and Sorin are the best competitive programmers in their town. However, they can't both qualify to an important contest. The selection will be ma 阅读全文
posted @ 2018-02-05 21:49 Zireael 阅读(188) 评论(0) 推荐(0) 编辑
摘要: A. Water The Garden time limit per test1 second memory limit per test256 megabytes inputstandard input outputstandard output It is winter now, and Max 阅读全文
posted @ 2018-02-04 22:56 Zireael 阅读(361) 评论(2) 推荐(0) 编辑