上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页
摘要: D. Legacy time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Legacy time limit per test 阅读全文
posted @ 2017-03-25 21:23 perplex 阅读(436) 评论(0) 推荐(0)
摘要: Vasiliy finally got to work, where there is a huge amount of tasks waiting for him. Vasiliy is given a matrix consisting of n rows and m columns and q 阅读全文
posted @ 2017-03-20 22:18 perplex 阅读(291) 评论(0) 推荐(0)
摘要: 动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃C,C吃A。 现有N个动物,以1-N编号。每个动物都是A,B,C中的一种,但是我们并不知道它到底是哪一种。有人用两种说法对这N个动物所构成的食物链关系进行描述: 第一种说法是"1 X Y",表示X和Y是同类。 第二种说 阅读全文
posted @ 2017-03-18 11:45 perplex 阅读(170) 评论(0) 推荐(0)
摘要: B. Hmz 的女装 2017新生赛 B. Hmz 的女装 2017新生赛 时间限制 1000 ms 内存限制 65536 KB 题目描述 Hmz为了女装,想给自己做一个长度为n的花环。现在有k种花可以选取,且花环上相邻花的种类不能相同。Hmz想知道,如果他要求第l朵花和第r朵花颜色相同,做花环的方 阅读全文
posted @ 2017-03-17 17:08 perplex 阅读(418) 评论(0) 推荐(0)
摘要: 题目地址 A,B都没什么可说的,直接贴代码 1 #include <iostream> 2 #include <cstdio> 3 #include <cmath> 4 #include <cstdlib> 5 #include <algorithm> 6 #include <cstring> 7 阅读全文
posted @ 2017-03-17 17:06 perplex 阅读(157) 评论(0) 推荐(0)
摘要: F. ch追妹 2017新生赛 时间限制 2000 ms 内存限制 65536 KB 题目描述 n个点的一张无向图,每条边长度为wi,ch站在a点,ch要追的妹子站在b点。ch可以使用一次膜法,将一条边的长度变为0。ch想知道他要追到妹子要走的最短路径。 输入格式 第一行为数据组数T(T≤10)。每 阅读全文
posted @ 2017-03-14 09:50 perplex 阅读(180) 评论(0) 推荐(0)
摘要: 题目地址 初学图……很水的二染色。注意每一个连通图都要选个数少的那种颜色,如果一个点单独作为连通图必须放1个士兵。 阅读全文
posted @ 2017-03-13 16:36 perplex 阅读(237) 评论(0) 推荐(0)
摘要: The Genographic Project is a research partnership between IBM and The National Geographic Society that is analyzing DNA from hundreds of thousands of 阅读全文
posted @ 2017-03-11 17:46 perplex 阅读(171) 评论(0) 推荐(0)
摘要: 剪枝重要性的完美体现。 从各位开始扫,找到唯一的正确答案就exit(0) 阅读全文
posted @ 2017-03-10 22:47 perplex 阅读(196) 评论(0) 推荐(0)
摘要: Given two sequences of numbers : a11, a22, ...... , aNN, and b11, b22, ...... , bMM (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a numbe 阅读全文
posted @ 2017-03-07 22:37 perplex 阅读(236) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页