noi 2007 项链工厂 线段树
摘要:
1 #include<iostream> 2 #include<cmath> 3 #include<cstdio> 4 #include<cstring> 5 using namespace std; 6 #define MAXN 500001 7 struct node 8 { 9 int left,right,left_color,right_color,part; 10 bool mark; 11 }tree[4*MAXN]; 12 int color[MAXN]; 13 int rev,delta,n,m,cur_color; 14 vo 阅读全文
posted @ 2012-07-17 21:05 myoi 阅读(428) 评论(0) 推荐(0) 编辑