hiho week 61 register

Ended

Participants:473

Verdict:Accepted
Score:100 / 100
Submitted:2015-09-03 13:31:28

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<stdio.h>
#include<string.h>
#include<cmath>
#include<algorithm>
#include<vector>
#include<set>
#include<map>
#include<queue>
#include<stack>
#include<sstream>
#include<iomanip>
#include<stdlib.h>
using namespace std;
#define INF 2000000000
char lock[50010];//A-Z 0-25
int inc[200010];
int data[200010];
int lazy[200010];
int dataAdd[200010];
int posNumber;
void Inite(int k,int l,int r)
{
    if(r-l==1)
    { 
        data[k]=lock[l]-'A'; 
        return;
    }
    int chl=2*k+1,chr=2*k+2;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX