上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页
摘要: 题目大意:在一个n*n的棋盘上放置n个车,使得它们之间都不能互相攻击(任意两个车都不能同行或同列),并且,对于第i个车,限制它只能放在一个矩形区域内,(xli, yli),这个矩形的左上角顶点坐标是(xli, yli),右下角顶点坐标是 (xri, yri), 1 ≤ i ≤ n,... 阅读全文
posted @ 2016-05-10 20:19 HARD_UNDERSTAND 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 题意: 给定4个n(1 #includeconst int N=4005;int a[4][N];struct Hash_map{ static const int mask=0x7fffff; int p[mask+1],q[mask+1]; void clea... 阅读全文
posted @ 2016-05-10 11:13 HARD_UNDERSTAND 阅读(189) 评论(0) 推荐(0) 编辑
摘要: E. Correct Bracket Sequence Editor time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard out... 阅读全文
posted @ 2016-05-09 12:17 HARD_UNDERSTAND 阅读(297) 评论(0) 推荐(0) 编辑
摘要: Waking up in the morning, Apollinaria decided to bake cookies. To bake one cookie, she needs n ingredients, and for each ingredient she knows... 阅读全文
posted @ 2016-05-08 21:49 HARD_UNDERSTAND 阅读(334) 评论(0) 推荐(0) 编辑
摘要: C. Bear and Up-Down time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard outputThe life goe... 阅读全文
posted @ 2016-05-08 13:03 HARD_UNDERSTAND 阅读(335) 评论(0) 推荐(0) 编辑
摘要: D. Bear and Two Paths time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Bearla... 阅读全文
posted @ 2016-05-08 09:38 HARD_UNDERSTAND 阅读(166) 评论(0) 推荐(0) 编辑
摘要: C. Bear and Colors time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Bear Limak... 阅读全文
posted @ 2016-05-08 09:27 HARD_UNDERSTAND 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 题意: 自己读了半天题,果断没看懂题意,看了题解才明白是这个意思啊。给一个字符串,去掉一个长度至少为5的前缀,剩下的切成长度为2或者3的串,且相邻的串不相同,问,最后可以切成多少个串且分别是什么;思路:dp[i][2]==1表示i,i+1形成的串可以满足要求,dp[i][3]==1... 阅读全文
posted @ 2016-05-07 15:57 HARD_UNDERSTAND 阅读(154) 评论(0) 推荐(0) 编辑
摘要: ZOJ Problem Set - 3939 The Lucky Week Time Limit: 2 Seconds Memory Limit: 65536 KBEdward, the headmaster of the Marjar University, is ve... 阅读全文
posted @ 2016-04-25 23:49 HARD_UNDERSTAND 阅读(309) 评论(0) 推荐(0) 编辑
摘要: Highway Project Time Limit: 2 Seconds Memory Limit: 65536 KBEdward, the emperor of the Marjar Empire, wants to build some bidirectional ... 阅读全文
posted @ 2016-04-25 22:13 HARD_UNDERSTAND 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 15 下一页