MSBOP 2015 Round3 register

Ended

Participants:978

Verdict:AC | TLE
Submitted:2015-05-09 16:18:57

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<cctype>
#include<cmath>
#include<set>
#include<map>
#include<queue>
#include<string>
#include<vector>
#define fr(i,n) for(int i=0;i<n;i++)
#define fn(i,n) for(int i=n-1;i>=0;i--)
#define fe(i,a) for(__typeof(a.begin()) i=a.begin();i!=a.end();i++)
using namespace std;
const int N = 200100;
int n,Q;
int a[N], b[N];
int T;
struct node {
    int l,r,s;
    node *ls,*rs;
} t[N<<5];
node *r[N];
int tot;
node *new_node(int l, int r) 
{
    node *ret = &t[tot++];
    ret->l = l, ret->r = r;
    ret->s = 0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX