
--------------------- 未理解
sega_handsome
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #433 C - Boredom
贪心。#include<cstdio>#include<cstdlib>#include<cstring>#include<cmath>#include<ctime>#include<iostream>#include<algorithm>#include<vector>#include<string>#include<queue>#include<utility>#inclu转载 2017-09-07 09:43:19 · 309 阅读 · 0 评论 -
HDU 6208 ac自动机 hash sam 后缀数组
ac自动机: #include<bits/stdc++.h>using namespace std;#define REP(i,a,b) for(int i = a; i <= b; ++i)#define FOR(i,a,b) for(int i = a; i < b; ++i)#define mem(a,b) memset(a,b,sizeof(a))#define MP make_pai转载 2017-09-19 09:34:06 · 342 阅读 · 0 评论 -
HDU 6215 2017Brute Force Sorting 青岛网络赛 队列加链表模拟
地址:http://acm.hdu.edu.cn/contests/contest_showproblem.php?pid=1010&cid=778#includeusing namespace std;const int maxn=1e5+1e3;int n, a[maxn];int pre[maxn], nxt[maxn], vis[maxn];vectorint> V;转载 2017-09-19 09:14:32 · 422 阅读 · 0 评论 -
Educational Codeforces Round 28 C 降低复杂度的方式
#include<bits/stdc++.h>using namespace std;typedef long long LL;const int maxn=5050;const LL inf=1LL<<60;int a[maxn];int n;LL sum[maxn];#define S(l,r) (sum[r]-sum[l])int main(){ scanf("%d"转载 2017-09-06 22:28:35 · 311 阅读 · 0 评论