......模板
文章平均质量分 59
Hivoodoo
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Linux 下的对拍程序..
while true; do ./make>tmp.in #出数据 ./tmptmp.out #被测程序 ./tmp2tmp2.out #正确(暴力)程序 if diff tmp.out tmp2.out; then #比较两个输出文件 printf AC #结果相同显示AC else echo WA #结果不同显示WA,并退出 #cat tmp.out tmp2.out exi原创 2014-10-22 13:35:30 · 3451 阅读 · 0 评论 -
URAL1297 最大回文字串
URAL 1297本来这道题打算用原创 2014-08-03 16:15:50 · 641 阅读 · 0 评论 -
Dancing Links 模板
这么有意思的数据结构//01矩阵的完美覆盖 HUST1017#include #include #include using namespace std;/***最大行***/#define MAXROW 1005/***最大列***/#define MAXCOL 1005int ans[MAXROW+5];struct DancingLink原创 2014-09-23 21:09:59 · 1092 阅读 · 0 评论 -
最小(最大)表示法模板
int getminmax(int flag) //最小最大表示法0、1 { int i=0,j=1,k=0; while(i { int t=word[(i+k)%wlen]-word[(j+k)%wlen]; if(!t) k++; else { if(flag==0转载 2014-08-04 16:25:05 · 874 阅读 · 0 评论 -
我的ac自动机模板
定义:CH 取const int NODE = 100005,CH = 128;int chd[NODE][CH],val[NODE],f[NODE];int sz;char s[10005];原创 2014-07-25 18:08:11 · 715 阅读 · 0 评论 -
hdu4787 在线ac自动机
#include #include #define ff(i,n) for(int i=0;i<n;i++)const int CH = 2,NODE = 100005;int idx(char x){ return x-'0';}int queue[NODE];struct DFA{ int ch[NODE][CH],f[NODE],val[NODE],la原创 2014-07-29 18:26:47 · 1161 阅读 · 0 评论 -
模板v2.0.0
v2.0.1原创 2015-10-16 12:55:24 · 829 阅读 · 0 评论 -
模板
比赛用 模版原创 2015-09-02 15:15:42 · 935 阅读 · 1 评论
分享