09 2017 档案
摘要:#include<bits/stdc++.h> using namespace std; struct nob{ int fail,son[27],ed; }a[1000000]; int cnt=0; void build (string s){ int now=0; for (int i=0;
阅读全文
摘要://你的任务只需要生成10个in文件(从data0.in到data9.in)。 #include <bits/stdc++.h> using namespace std; void makedata(int t) { cerr<<"test:"<<t<<endl; char input[20]; s
阅读全文
摘要:KMP ◄传送门► AC自动机: ◄传送门► 后缀数组: ◄传送门► 没错,看起来非常的随便,因为……这个是老师给的课件…… made by cain-
阅读全文
摘要:题目背景 广而告之:背景见其他L国的战斗!!大家一起刷 题目描述 这一次,L国决定军队分成n组,分布在各地,若以L国为原点,可以看作在一个直角坐标系内。但是他们都受统一的指挥,指令部共发出m个命令。命令有移动、上下转移和左右转移(瞬移??),但是由于某些奇奇怪怪的原因,军队收到命令总是有延迟,为了方
阅读全文
摘要:感觉是一个极其丑陋而且比较慢的(应该吧,因为看起来比较慢)矩乘。QAQ
阅读全文
摘要:#include using namespace std; const int INF=0x3f3f3f3f; const int maxn=600010; struct point{ int start,cost; }; bool operator n.cost; } struct edge{ int to,cost; }; vector e[maxn]; bool judg...
阅读全文
摘要:#include using namespace std;int n,m,mp[1001][1001],s[1001]; bool judge[1001]={0}; //judge表示判断点是否有用过,s[i]表示1到点i的最短路径,mp表示两点的距离int main(){ cin>>n>>m; for (int i=1; i>x>>y>>z; mp[x][y]=z; } for ...
阅读全文

浙公网安备 33010602011771号