- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 hybz2243 染色
#include#include#includeusing namespace std;const int Max=100860;int val[Max];struct SegmentTree{int lc[Max<<2],rc[Max<<2],cnt[Max<<2],flag[Max<<2];inline void PushUp(int idx){int L=idx<<1 r="L+1;" lc
2014-10-16 17:24:31 554
原创 poj3237 Tree
#include #include #include using namespace std; const int Max=10086,Inf=(1<<30); inline int MIN(int a,int b) { return a<b?a:b; } inline int MAX(int a,int b) { return a>b?a:b; } int val[Max]; st
2014-10-14 22:08:54 427
原创 hybz1036 树的统计Count
#include#include#includeusing namespace std;const int Max=30009;inline int MAX(int a,int b){return a>b?a:b;}int val[Max];struct SemgentTree{int sum[Max<<2],maxv[Max<<2];inline void PushUp(int idx){max
2014-10-14 22:06:09 354
原创 hdu3966 Aragorn's Story
#pragma comment(linker,"/STACK:1024000000,1024000000") #include #include #include using namespace std; const int Max=50005; int val[Max]; struct SegmentTree { int cnt[Max<<2],flag[Max<<2];
2014-10-14 22:01:53 437
原创 FOJ2082 过路费
#pragma comment(linker, "/STACK:1024000000,1024000000") #include #include using namespace std; const int Max=50005; __int64 val[Max]; struct SegmentTree { __int64 sum[Max int L,
2014-10-14 21:58:27 380
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人