hiho week 61 register

Ended

Participants:473

Verdict:Accepted
Score:100 / 100
Submitted:2015-09-04 15:04:13

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 <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <vector>
#include <map>
#include <string>
#include <iostream>
#include <queue>
#include <stack>
using namespace std ;
#define SIZE 50010
typedef struct node {
    int mark ;
    int val ;
    int start ;
    int step ;
    int delta ;
} node ;
node list[2*SIZE+100] ;
int data[SIZE] ;
int m , n ;
int idx ;
void extend( int p , int pl , int pr )
{
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX