码迷,mamicode.com
首页 >  
搜索关键字:zoj 3632 watermelon    ( 3474个结果
zoj 3557 How Many Sets II
How Many Sets IITime Limit:2 Seconds Memory Limit:65536 KBGiven a setS= {1, 2, ...,n}, numbermandp, your job is to count how many setTsatisfies the fo...
分类:其他好文   时间:2014-05-12 13:05:52    阅读次数:238
ZOJ 1151 Word Reversal反转单词 (string字符串处理)
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=151 For each list of words, output a line with each word reversed without changing the order of the words. This problem contains multi...
分类:其他好文   时间:2014-05-11 22:20:43    阅读次数:443
ZOJ 2724 Windows 消息队列 (优先队列)
链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=2724 Message queue is the basic fundamental of windows system. For each process, the system maintains a message queue. If something h...
分类:Windows程序   时间:2014-05-11 20:31:56    阅读次数:796
ZOJ - 1880 Tug of War
题意:求在两边人数不相差超过1个的情况下,实力尽量相等的情况 思路:从实力和的一半开始类背包操作 #include #include #include #include using namespace std; const int MAXN = 45010; const int MAXM = 110; int a[MAXM]; int dp[MAXN][MAXM]; int n; ...
分类:其他好文   时间:2014-05-11 05:02:03    阅读次数:279
[最小表示] zoj 1729 Hidden Password
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=729 题目意思:...
分类:其他好文   时间:2014-05-11 01:52:41    阅读次数:367
zoj 1648 Circuit Board
题目:意思就是判断给定的几条线段是否有相交的。 方法:模版吧,有空在来细细学习。 代码: #include #include using namespace std; struct Point { double x,y; }; struct LineSeg { Point a,b; }; double Cross(Point a, Point b, Poi...
分类:其他好文   时间:2014-05-10 03:39:07    阅读次数:326
[容斥原理] zoj 3556 How Many Sets I
题目链接: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4535 How Many Sets I Time Limit: 2 Seconds      Memory Limit: 65536 KB Give a set S, |S| = n, then how many ordered set g...
分类:其他好文   时间:2014-05-09 13:50:00    阅读次数:347
ZOJ 3780 Paint the Grid Again(topsort)
ZOJ Problem Set - 3780 Paint the Grid Again Time Limit: 2 Seconds      Memory Limit: 65536 KB Leo has a grid with N × N cells. He wants to paint each cell with a specific color (either black ...
分类:其他好文   时间:2014-05-09 02:00:35    阅读次数:506
zoj1444 Final Standings解题报告
想不到学ACM这么久,我还是通过这个题目才了解到ACM比赛中的具体成绩规则!!!!...
分类:其他好文   时间:2014-05-09 01:36:55    阅读次数:225
ZOJ 3229 有上下界最大流
1: /** 2: ZOJ 3229 有上下界的最大流 3: 两次求最大流的过程,非二分 4: 有源汇上下界的最大流问题, 首先连接 sink -> src, [0,INF]. 5: 根据net的正负,来建立 Supersrc 与 supersink 之间的边,做一次 maxflow. 6: 若所有...
分类:其他好文   时间:2014-05-08 22:39:11    阅读次数:412
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!