摘要: 题意:一个n*n的01矩阵,和二种动态操作,一对子矩阵(x1,y1,x2,y2)的所有元素异或,查询某一点(x,y)的元素值。二维线段树View Code 1 #include<iostream> 2 using namespace std; 3 int res; 4 struct sub_node 5 { 6 short c,d; 7 bool cnt; 8 }; 9 struct node 10 { 11 short a,b; 12 sub_node sub_tree[1100*2]; 13 }; 14 node tree[1100*2]... 阅读全文
posted @ 2012-03-18 21:56 qijinbiao1 阅读(193) 评论(0) 推荐(0) 编辑