MSBOP 2015 Round3 register

Ended

Participants:978

Verdict:AC | TLE
Submitted:2015-05-09 16:27:20

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 <string.h>
#include <algorithm>
using namespace std;
const int MAXN = 200005;
const int MAXDEP = 20;
struct NODE
{
    int num;
    int id;
    const bool operator<(NODE b) const
    {
        return num < b.num;
    }
};
int n, q;
int a[MAXN];
NODE xulie[MAXN];
int shu[MAXDEP][MAXN], sum[MAXDEP][MAXN];
int get(int k, int l, int r, int t1, int t2, int t3, int dep)
{
    int temp, mid, tmp1, tmp2;
    if (l == r) return xulie[l].num;
    if (t1 == l)
        temp = sum[dep][t2];
    else
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX