上一页 1 2 3 4 5 6 7 8 ··· 32 下一页
摘要: 题目链接:http://codeforces.com/gym/101128 感觉这个人写的不错的(我只看了题目大意):http://blog.csdn.net/v5zsq/article/details/61428924 Description n个小木条,一段前面有一个小箭头,给出第一个小木条的非 阅读全文
posted @ 2017-04-18 23:30 知る奇迹に 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://codeforces.com/gym/101128/my 具体题目大意可以看这个人的:http://blog.csdn.net/v5zsq/article/details/61427665 思路:反正最后都是颜色不一样的,所以我们只要逆向思维,每次挑两个颜色不一样的就可以了 阅读全文
posted @ 2017-04-17 22:03 知る奇迹に 阅读(238) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/gym/101128 题目大意:给你一个a,b,e,p。有e个点,p条有向边,每条边为(x,y),表示x->y,每次我们都取出一个入度为0的,并且一次性取出来的个数为a(或b)。当然,取出来的种类可能有很多种(即一个集合),问,这个集合中有多少个数字是相同 阅读全文
posted @ 2017-04-15 21:53 知る奇迹に 阅读(395) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5568 Given a tree with n vertices, we want to add an edge between vertex 1 and vertex x, so 阅读全文
posted @ 2017-04-15 15:51 知る奇迹に 阅读(232) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=5572 Chiaki has n intervals and the i-th of them is [li, ri]. She wants to delete some inte 阅读全文
posted @ 2017-04-10 19:22 知る奇迹に 阅读(332) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3956 There are n courses in the course selection system of Marjar University. The i-th co 阅读全文
posted @ 2017-04-10 19:08 知る奇迹に 阅读(165) 评论(0) 推荐(0) 编辑
摘要: http://codeforces.com/contest/724/problem/E 题目大意:有n个城市,每个城市有pi件商品,最多能出售si件商品,对于任意一队城市i,j,其中i<j,可以从城市i往j运输最多c件商品。 求最多一共能卖出多少件商品。 n<=10000 思路: 定义dp(i,j) 阅读全文
posted @ 2017-04-07 11:15 知る奇迹に 阅读(166) 评论(0) 推荐(0) 编辑
摘要: http://uoj.ac/problem/111 好像NOIP里面的题目...有好多都是...能通过xjbg剪枝来...AC题目的? 得好好学一下这些剪枝黑科技了... 思路:我觉得这位大佬说的很完善了:http://blog.csdn.net/herano/article/details/586 阅读全文
posted @ 2017-04-05 16:28 知る奇迹に 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 3585: mex Description 有一个长度为n的数组{a1,a2,...,an}。m次询问,每次询问一个区间内最小没有出现过的自然数。 有一个长度为n的数组{a1,a2,...,an}。m次询问,每次询问一个区间内最小没有出现过的自然数。 Input 第一行n,m。 第二行为n个数。 从 阅读全文
posted @ 2017-04-05 14:02 知る奇迹に 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 3339: Rmq Problem Description Input Output Sample Input 7 5 0 2 1 0 1 3 2 1 3 2 3 1 4 3 6 2 7 Sample Output 3 0 3 2 4 HINT Source By Xhr By Xhr http:/ 阅读全文
posted @ 2017-04-05 13:50 知る奇迹に 阅读(233) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 32 下一页