摘要:
线段树 1 #include <cstdio> 2 #include <cstring> 3 #include <cstdlib> 4 #include <algorithm> 5 6 #define lson l, m, rt << 1 7 #define rson m + 1, r, rt << 1 | 1 8 9 using namespace std; 10 11 const int MAXN = 1000010; 12 13 char str1[MAXN]; 14 char str2[MAXN]; 15 bool 阅读全文
posted @ 2013-05-06 22:43
冰鸮
阅读(276)
评论(0)
推荐(0)
摘要:
线段树 1 #include <cstdio> 2 #include <cstring> 3 #include <cstdlib> 4 #include <algorithm> 5 6 #define lson l, m, rt << 1 7 #define rson m + 1, r, rt << 1 | 1 8 9 using namespace std; 10 11 const int MAXN = 100010; 12 13 int N, Q; 14 int color[ MAXN << 2 ]; // 阅读全文
posted @ 2013-05-06 22:39
冰鸮
阅读(238)
评论(0)
推荐(0)

浙公网安备 33010602011771号