11 2013 档案
摘要:下面搜到的set的一些说明在这里搜到的 http://blog.csdn.net/xuruoxin/article/details/12654093 Code set的基本操作:begin() 返回指向第一个元素的迭代器clear() 清除所有元素count() 返回某个值元素的个数empty() 如果集合为空,返回trueen...
阅读全文
摘要:没过,不想写了。。。唉。。。网上找了了代码对拍都拍不出错数据。。。。这泥煤。。。。。。。。。 有大神能帮忙看出来哪里错了就太感谢了。。。。 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((...
阅读全文
摘要:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=4973ZOJ Problem Set - 3690Code#include #include using namespace std;struct Matrix{ #define ...
阅读全文
摘要:最近翻了一下暑假的代码,发现了点有用的东西。 斜堆 记得是个猴子打架的题目 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=...
阅读全文
摘要:多模式串匹配,在给出的字符串中查找出现了几个模板串。允许模板串重复,某一个模板串是另一个的前缀或后缀。http://acm.hdu.edu.cn/showproblem.php?pid=2222#include #include #include #define maxnode 550000...
阅读全文
摘要:ASoroban 打表题 Code#include #include using namespace std;const string A[10]={"O-|-OOOO","O-|O-OOO","O-|OO-OO", "O-|OOO-O","O-|OOOO-","-O|-OOOO", "-O|O-OOO","-O|OO-...
阅读全文

浙公网安备 33010602011771号