hiho week 132 register

Ended

Participants:113

Verdict:Accepted
Score:100 / 100
Submitted:2017-01-13 22:18:30

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 stdc++.h slows down compilation much.
//#include<bits/stdc++.h>
#include <iostream>
#include <cstdio>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <stack>
#include <cstring>
using namespace std;
#define USE_IOSTREAM \
{\
    ios::sync_with_stdio(false);\
    cin.tie(0);\
    cout.tie(0);\
}
#define pii pair<int, int>
#define mp make_pair
typedef long long ll;
struct Sam
{
    const static int START = 1;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX