hiho week 22 register

Ended

Participants:196

Verdict:Accepted
Score:100 / 100
Submitted:2014-12-02 22:05:02

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<iostream>
#include<cstring>
#include<queue>
#include<string>
#include<vector>
#include<cmath>
#include<algorithm>
#include<map>
using namespace std;
const int N = 100011;
struct my
{
    int left,right;
    int sum,temp[2],len;
}t[N*4];
void build(int cur,int l,int r)
{
    //cout<<cur<<' '<<l<<' '<<r<<endl;
    t[cur].left=l;
    t[cur].right=r;
    t[cur].len=r-l+1;
    if (l==r)
    {
        scanf("%d",&t[cur].sum);
        return;
    }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX