上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: The secret codeInput file: stdinOutput file: stTime limit: 1 secMemory limit: 256 MbAfter returning from the trip, Alex was unpleasantly surprised: hi... 阅读全文
posted @ 2014-08-12 00:18 Estimator 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 励志下!刻苦的训练我打算最后稍微提一下。主要说后者:什么是有效地训练?我想说下我的理解。很多ACMer入门的时候,都被告知:要多做题,做个500多道就变牛了。其实,这既不是充分条件、也不会是必要条件。我觉得一般情况下,对于我们普通学校的大学生,各方面能力的差距不会太大,在这种情况下,训练和学习的方法... 阅读全文
posted @ 2014-08-11 22:47 Estimator 阅读(539) 评论(0) 推荐(0) 编辑
摘要: Esspe-PeaseeEsspe-Peasee is an ancient game played by children throughout the land of Acmania. The rules are simple:A player simply quibs the yorba at... 阅读全文
posted @ 2014-08-11 20:25 Estimator 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 题目大意: 给出一串序列Ai{0,1},求一个序列Bi[0,1](Bi#include #include using namespace std;struct Edge{ int sum,len;};int a[1000005];stack q;int main(){ //freope... 阅读全文
posted @ 2014-08-08 00:49 Estimator 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 模板很重要#include #include #include #include #include using namespace std; #define MAXN 9999#define MAXSIZE 10#define DLEN 4class BigInt{ private: int... 阅读全文
posted @ 2014-08-07 19:51 Estimator 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Nested DollsTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2643Accepted Submission(s): 785Problem... 阅读全文
posted @ 2014-08-06 23:32 Estimator 阅读(249) 评论(0) 推荐(0) 编辑
摘要: Cuckoo HashingDescriptionOne of the most fundamental data structure problems is the dictionary problem: given a set D of words you want to be able to ... 阅读全文
posted @ 2014-08-06 17:50 Estimator 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 先给个LCA模板HDU 1330(LCA模板)#include #include #define N 40005struct Edge{ int x,y,d,ne;};Edge e[N*2],e2[N*2];int be[N],be2[N],all,all2,n,m;bool vis[N];i... 阅读全文
posted @ 2014-08-06 17:45 Estimator 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 不说别的,直接上模板。Dinic+当前弧优化:struct Edge{ int x,y,c,ne;}e[M*2];int be[N],all;int d[N],q[N];int stack[N],top;//栈存的是边int cur[N];//当前弧优化void add(int x, int ... 阅读全文
posted @ 2014-08-06 00:02 Estimator 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 转自:http://dantvt.is-programmer.com/posts/7974.html通过 USACO4.2.1 Ditch 学习一下最大流算法 。可惜它给的测试数据几乎没有任何杀伤力,后面测试时我们采用 DD_engi 写的程序生成的加强版数据。总体上来说,最大流算法分为两大类:增广... 阅读全文
posted @ 2014-08-03 17:54 Estimator 阅读(718) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页