- 博客(3)
- 收藏
- 关注
原创 Codeforces 599C Day at the Beach
题目链接:http://codeforces.com/problemset/problem/599/C题意:给出大小为n的序列,要求将该序列分成连续的若干个部分,每个部分各自升序排序后组成的序列与原序列升序排序后一样,问最多分成几个部分思路: 一开始可以想到要满足max(h1,h2,h3……,hx)max(h1,h2,h3……,hx),所以max[1,x]必定小于max[x
2016-03-10 17:46:28 576
原创 Hdu 2896 病毒侵袭
#include #include #include #include using namespace std;struct Tree{ Tree *Next[100]; Tree *fail; int ed;}*que[1030];Tree *tree;int top=-1;int stk[1030];ch
2016-03-09 19:09:34 241
原创 Codeforces 593A 2Char
#include #include #include #include using namespace std;int num[30][30],vis[30];char s[100030];int main(){ int n; while (scanf("%d",&n)!=EOF) { int cnt=0,ch
2016-03-09 18:54:57 205
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人