hiho week 186 register

Ended

Participants:166

Verdict:Memory Limit Exceeded
Score:70 / 100
Submitted:2018-01-22 15:09:37

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<vector>
#include<algorithm>
#include<cmath>
#include<string>
#include<cstring>
#include<map>
#include<set>
#include<list>
#include<queue>
#include<stack>
#include<unordered_map>
#include<bitset>
#include<unordered_set>
#include<functional>
typedef long long LL;
typedef long L;
using namespace std;
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) <(b) ? (a) : (b))
#define INF 0x0f0f0f0f
LL N, M;
string s;
vector<int> words;
vector<pair<LL, LL>> ret;
void split(string s) {
    int last = 0;
    for (int i = 0; i < s.size(); i++) {
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX