hiho week 105 register

Ended

Participants:189

Verdict:Accepted
Score:100 / 100
Submitted:2016-07-04 21:40:54

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<algorithm>
#include<cctype>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<iomanip>
#include<iostream>
#include<map>
#include<queue>
#include<set>
#include<sstream>
#include<stack>
#include<string>
#define ll long long
#define pr(x) cout << #x << " = " << (x) << '\n';
using namespace std;
const int INF = 0x7f7f7f7f;
struct Tree {
    ll id, val, num, lazy, sum;
    Tree *left, *right, *fa;
    Tree(int a, int b, Tree *f) {
        id = a;
        val = b;
        lazy = 0;
        left = right = NULL;
        fa = f;
    }
}*root;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX