
算法与数据结构
文章平均质量分 73
Briccc
这个作者很懒,什么都没留下…
展开
-
2093考试排名
考试排名(2093) Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3473 Accepted Submission(s): 1165 Problem Description C++编程考试使用的实时提交系统,具有即时原创 2011-03-11 13:50:00 · 474 阅读 · 0 评论 -
九度1006 ZOJ问题 浙大考研机试题
//1. zoj能AC; //2. 若字符串形式为xzojx,则也能AC,其中x可以是N个'o' 或者为空; //3. 若azbjc 能AC,则azbojac也能AC,其中a,b,c为N个'o'或者为空; #include #include #include using namespace std; int l_z=0; int l_j=0; int flag=1;//记录是否非法出现; bool原创 2013-03-04 22:00:28 · 464 阅读 · 0 评论 -
ZOJ 3362 Beer Problem 最小费用最大流
Beer Problem Time Limit: 2 Seconds Memory Limit: 32768 KB Everyone knows that World Finals of ACM ICPC 2004 were held in Prague. Besides its greatest architecture and culture, Prague is wor转载 2013-03-04 19:23:28 · 506 阅读 · 0 评论 -
POJ 1273 最大流问题
POJ http://poj.org/problem?id=1273 最大流问题;参考 http://www.cnblogs.com/kuangbin/archive/2011/07/26/2117636.html 1. 通过bfs广搜的方法寻找增广路径。 注意,广搜一定可以找到流量至少为1的增广路径,否则,残余网络中不存在增广路。 2. 对bfs找到的增广路,减掉相应的流量,并增加原创 2013-03-02 12:46:41 · 1011 阅读 · 0 评论