MSBOP 2015 Round3 register

Ended

Participants:978

Verdict:AC | AC
Submitted:2015-05-09 14:45:21

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 <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <set>
#include <vector>
#include <map>
using namespace std;
int f[1000001], ans[200001];
int root, n, Q, tot, l;
struct node{
     int value, pos;
     bool operator < (const node &A) const{
          return value < A.value;
     }
} a[200001];
struct node1{
     int x, y, value, pos;
     bool operator < (const node1 &A) const{
          return value < A.value;
     }
} c[200001];
int read(){
     char ch;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX