摘要: 没过,不想写了。。。唉。。。网上找了了代码对拍都拍不出错数据。。。。这泥煤。。。。。。。。。 有大神能帮忙看出来哪里错了就太感谢了。。。。 Code#include #include #include using namespace std;const int MAXB=21+10,MAXG=8+10;int c[MAXB][MAXG],res[(1>G>>B>>S){ if((... 阅读全文
posted @ 2013-11-28 21:25 ljlin 阅读(174) 评论(0) 推荐(0)
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4973ZOJ Problem Set - 3690Code#include #include using namespace std;struct Matrix{ #define ... 阅读全文
posted @ 2013-11-28 21:19 ljlin 阅读(222) 评论(0) 推荐(0)
摘要: 最近翻了一下暑假的代码,发现了点有用的东西。 斜堆 记得是个猴子打架的题目 Code#include #include #include using namespace std;const int N=100000;int f[N+10],head[N+10],lch[N+10],rch[N+10],w[N+10];int merge(int A,int B) { if(A=... 阅读全文
posted @ 2013-11-28 21:15 ljlin 阅读(202) 评论(0) 推荐(0)
摘要: 多模式串匹配,在给出的字符串中查找出现了几个模板串。允许模板串重复,某一个模板串是另一个的前缀或后缀。http://acm.hdu.edu.cn/showproblem.php?pid=2222#include #include #include #define maxnode 550000... 阅读全文
posted @ 2013-11-28 21:08 ljlin 阅读(243) 评论(0) 推荐(0)