QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#140437#2674. Vision programminhcool66 6ms4380kbC++174.2kb2023-08-15 22:19:472023-08-15 22:19:50

Judging History

你现在查看的是最新测评结果

  • [2023-08-15 22:19:50]
  • 评测
  • 测评结果:66
  • 用时:6ms
  • 内存:4380kb
  • [2023-08-15 22:19:47]
  • 提交

answer

//#define local
#ifndef local
#include "vision.h"
#endif
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;

//#define int long long
#define fi first
#define se second
#define pb push_back
#define mp make_pair

typedef pair<int, int> ii;
typedef pair<ii, int> iii;
typedef pair<ii, ii> iiii;

const int N = 3e2 + 5;

const int oo = 1e18 + 7, mod = 1e9 + 7;

mt19937 rng(1);

int rnd(int l, int r){
	int temp = rng() % (r - l + 1);
	return abs(temp) + l;
}

int n;

int where[N][N];

int where2[N][N];

void construct_network(int H, int W, int K) {
    int itrx = 0, itry = 0;
    for(int i = 0; i < H * W; i++){
        where[itrx][itry] = i;
        itry++;
        if(itry >= W){
            itrx++;
            itry = 0;
        }
    }
    if(H * W <= 900){
        int cnt = H * W;
        for(int i = 0; i < H; i++){
            for(int j = 0; j < W; j++){
                where2[i][j] = 0;
                vector<int> v;
                for(int k = 0; k < H; k++){
                    for(int l = 0; l < W; l++){
                        if((abs(i - k) + abs(j - l)) == K){
                            v.pb(where[k][l]);
                        }
                    }
                }
                if(v.size()){
                    add_or(v);
                    where2[i][j] = cnt;
                    cnt++;
                }
            }
        }
        int lst = cnt;
        for(int i = 0; i < H; i++){
            for(int j = 0; j < W; j++){
                if(!where2[i][j]) continue;
                vector<int> v;
                v.pb(where[i][j]); v.pb(where2[i][j]);
                add_and(v);
                cnt++;
            }
        }
        vector<int> v;
        for(int i = lst; i < cnt; i++) v.pb(i);
        add_or(v);
    }
    else if(K == 1){
        //cout << "OK\n";
        // check same row
        for(int i = 0; i < H; i++){
            vector<int> v;
            for(int j = 0; j < W; j++) v.pb(where[i][j]);
            add_or(v);
        }
        for(int i = 0; i < W; i++){
            vector<int> v;
            for(int j = 0; j < H; j++) v.pb(where[j][i]);
            add_or(v);
        }
        int cnt = H * W + H + W;
        vector<int> v1;
        for(int i = 0; i < H; i++) v1.pb(H * W + i);
        add_xor(v1);
        int cnt2 = cnt;
        cnt++;
        vector<int> v2;
        for(int i = 0; i < W; i++) v2.pb(H * W + H + i);
        add_xor(v2);
        int cnt3 = cnt;
        cnt++;
        for(int i = 0; (i + 1) < H; i++){
            vector<int> v; 
            v.pb(H * W + i), v.pb(H * W + i + 1);
            add_and(v);
        }
        vector<int> v3;
        for(int i = 0; i < (H - 1); i++) v3.pb(cnt + i);
        add_or(v3);
        int cnt4 = cnt + H - 1;
        cnt += H;
        for(int i = 0; (i + 1) < W; i++){
            vector<int> v;
            v.pb(H * W + H + i), v.pb(H * W + H + i + 1);
            add_and(v);
        }
        vector<int> v4;
        for(int i = 0; i < (W - 1); i++) v4.pb(cnt + i);
        add_or(v4);
        int cnt5 = cnt + W - 1;
        cnt += W;
        vector<int> v5;
        v5.pb(cnt2), v5.pb(cnt5);
        add_and(v5);
        vector<int> v6;
        v6.pb(cnt3), v6.pb(cnt4);
        add_and(v6);
        vector<int> v7;
        v7.pb(cnt), v7.pb(cnt + 1);
        add_or(v7);
        //cout << cnt2 << " " << cnt3 << " " << cnt4 << " " << cnt5 << "\n";
    }
    else{
        vector<int> v;
        for(int k = 0; k < H; k++){
            for(int l = 0; l < W; l++){
                if((abs(0 - k) + abs(0 - l)) == K){
                    v.pb(where[k][l]);
                }
            }
        }
        add_or(v);
        v.clear();
        v.pb(0), v.pb(H * W);
        add_and(v);
    }
	//std::vector<int> Ns;
	//Ns = {0, 1};
	//int a = add_and(Ns);
	//Ns = {0, a};
	//int b = add_or(Ns);
	//Ns = {0, 1, b};
	//int c = add_xor(Ns);
	//add_not(c);
}


#ifdef local
void process(){

}

signed main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	int t;
	cin >> t;
	while(t--) process();
}
#endif

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 1ms
memory: 3732kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
7
1 1 1
1 2 0 2
1 1 1
0 2 0 3
0 2 1 4
0 2 2 5
1 3 6 7 8

result:

ok 

Test #2:

score: 0
Accepted
time: 1ms
memory: 3824kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 2
1 1 0
0 2 0 3
0 2 2 4
1 2 5 6

result:

ok 

Test #3:

score: 0
Accepted
time: 1ms
memory: 3848kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
7
1 1 1
1 2 0 2
1 1 1
0 2 0 3
0 2 1 4
0 2 2 5
1 3 6 7 8

result:

ok 

Test #4:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 1 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 2
1 1 0
0 2 0 3
0 2 2 4
1 2 5 6

result:

ok 

Test #5:

score: 0
Accepted
time: 1ms
memory: 3844kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 2 1 2
1 2 0 3
1 2 0 3
1 2 1 2
0 2 0 4
0 2 1 5
0 2 2 6
0 2 3 7
1 4 8 9 10 11

result:

ok 

Test #6:

score: 0
Accepted
time: 0ms
memory: 3720kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 1 3
1 1 2
1 1 1
1 1 0
0 2 0 4
0 2 1 5
0 2 2 6
0 2 3 7
1 4 8 9 10 11

result:

ok 

Test #7:

score: 0
Accepted
time: 1ms
memory: 3844kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
13
1 2 1 3
1 3 0 2 4
1 2 1 5
1 2 0 4
1 3 1 3 5
1 2 2 4
0 2 0 6
0 2 1 7
0 2 2 8
0 2 3 9
0 2 4 10
0 2 5 11
1 6 12 13 14 15 16 17

result:

ok 

Test #8:

score: 0
Accepted
time: 1ms
memory: 3800kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
13
1 2 2 4
1 2 3 5
1 2 0 4
1 2 1 5
1 2 0 2
1 2 1 3
0 2 0 6
0 2 1 7
0 2 2 8
0 2 3 9
0 2 4 10
0 2 5 11
1 6 12 13 14 15 16 17

result:

ok 

Test #9:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 1 5
1 1 3
1 1 2
1 1 0
0 2 0 6
0 2 2 7
0 2 3 8
0 2 5 9
1 4 10 11 12 13

result:

ok 

Test #10:

score: 0
Accepted
time: 0ms
memory: 3852kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
13
1 2 1 2
1 2 0 3
1 3 0 3 4
1 3 1 2 5
1 2 2 5
1 2 3 4
0 2 0 6
0 2 1 7
0 2 2 8
0 2 3 9
0 2 4 10
0 2 5 11
1 6 12 13 14 15 16 17

result:

ok 

Test #11:

score: 0
Accepted
time: 0ms
memory: 3732kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
13
1 2 3 4
1 2 2 5
1 2 1 5
1 2 0 4
1 2 0 3
1 2 1 2
0 2 0 6
0 2 1 7
0 2 2 8
0 2 3 9
0 2 4 10
0 2 5 11
1 6 12 13 14 15 16 17

result:

ok 

Test #12:

score: 0
Accepted
time: 1ms
memory: 3804kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 1 5
1 1 4
1 1 1
1 1 0
0 2 0 6
0 2 1 7
0 2 4 8
0 2 5 9
1 4 10 11 12 13

result:

ok 

Test #13:

score: 0
Accepted
time: 1ms
memory: 3732kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
19
1 2 1 3
1 3 0 2 4
1 2 1 5
1 3 0 4 6
1 4 1 3 5 7
1 3 2 4 8
1 2 3 7
1 3 4 6 8
1 2 5 7
0 2 0 9
0 2 1 10
0 2 2 11
0 2 3 12
0 2 4 13
0 2 5 14
0 2 6 15
0 2 7 16
0 2 8 17
1 9 18 19 20 21 22 23 24 25 26

result:

ok 

Test #14:

score: 0
Accepted
time: 1ms
memory: 3848kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
19
1 3 2 4 6
1 3 3 5 7
1 3 0 4 8
1 3 1 5 7
1 4 0 2 6 8
1 3 1 3 7
1 3 0 4 8
1 3 1 3 5
1 3 2 4 6
0 2 0 9
0 2 1 10
0 2 2 11
0 2 3 12
0 2 4 13
0 2 5 14
0 2 6 15
0 2 7 16
0 2 8 17
1 9 18 19 20 21 22 23 24 25 26

result:

ok 

Test #15:

score: 0
Accepted
time: 1ms
memory: 3708kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
17
1 2 5 7
1 2 6 8
1 2 3 7
1 2 2 8
1 2 0 6
1 2 1 5
1 2 0 2
1 2 1 3
0 2 0 9
0 2 1 10
0 2 2 11
0 2 3 12
0 2 5 13
0 2 6 14
0 2 7 15
0 2 8 16
1 8 17 18 19 20 21 22 23 24

result:

ok 

Test #16:

score: 0
Accepted
time: 1ms
memory: 3716kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 4
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 1 8
1 1 6
1 1 2
1 1 0
0 2 0 9
0 2 2 10
0 2 6 11
0 2 8 12
1 4 13 14 15 16

result:

ok 

Test #17:

score: 0
Accepted
time: 1ms
memory: 3664kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 1
1 1 0
0 2 0 2
0 2 1 3
1 2 4 5

result:

ok 

Test #18:

score: 0
Accepted
time: 1ms
memory: 3708kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 1
1 1 0
0 2 0 2
0 2 1 3
1 2 4 5

result:

ok 

Subtask #2:

score: 11
Accepted

Test #19:

score: 11
Accepted
time: 1ms
memory: 3668kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 9 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
19
1 1 3
1 1 4
1 1 5
1 2 0 6
1 2 1 7
1 2 2 8
1 1 3
1 1 4
1 1 5
0 2 0 9
0 2 1 10
0 2 2 11
0 2 3 12
0 2 4 13
0 2 5 14
0 2 6 15
0 2 7 16
0 2 8 17
1 9 18 19 20 21 22 23 24 25 26

result:

ok 

Test #20:

score: 0
Accepted
time: 1ms
memory: 3736kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
9 1 5
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
17
1 1 5
1 1 6
1 1 7
1 1 8
1 1 0
1 1 1
1 1 2
1 1 3
0 2 0 9
0 2 1 10
0 2 2 11
0 2 3 12
0 2 5 13
0 2 6 14
0 2 7 15
0 2 8 16
1 8 17 18 19 20 21 22 23 24

result:

ok 

Test #21:

score: 0
Accepted
time: 0ms
memory: 3744kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 5 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
101
1 3 2 6 10
1 4 3 5 7 11
1 5 0 4 6 8 12
1 4 1 7 9 13
1 3 2 8 14
1 4 1 7 11 15
1 6 0 2 8 10 12 16
1 7 1 3 5 9 11 13 17
1 6 2 4 6 12 14 18
1 4 3 7 13 19
1 5 0 6 12 16 20
1 7 1 5 7 13 15 17 21
1 8 2 6 8 10 14 16 18 22
1 7 3 7 9 11 17 19 23
1 5 4 8 12 18 24
1 5...

result:

ok 

Test #22:

score: 0
Accepted
time: 1ms
memory: 3732kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
5 10 12
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
25
1 2 39 48
1 1 49
1 1 40
1 2 30 41
1 1 49
1 1 40
1 1 9
1 1 0
1 2 8 19
1 1 9
1 1 0
1 2 1 10
0 2 0 50
0 2 1 51
0 2 8 52
0 2 9 53
0 2 10 54
0 2 19 55
0 2 30 56
0 2 39 57
0 2 40 58
0 2 41 59
0 2 48 60
0 2 49 61
1 12 62 63 64 65 66 67 68 69 70 71 72 73

result:

ok 

Test #23:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
201
1 2 1 10
1 3 0 2 11
1 3 1 3 12
1 3 2 4 13
1 3 3 5 14
1 3 4 6 15
1 3 5 7 16
1 3 6 8 17
1 3 7 9 18
1 2 8 19
1 3 0 11 20
1 4 1 10 12 21
1 4 2 11 13 22
1 4 3 12 14 23
1 4 4 13 15 24
1 4 5 14 16 25
1 4 6 15 17 26
1 4 7 16 18 27
1 4 8 17 19 28
1 3 9 18 29
1 3 10...

result:

ok 

Test #24:

score: 0
Accepted
time: 1ms
memory: 3748kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 5
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
201
1 6 5 14 23 32 41 50
1 7 6 15 24 33 40 42 51
1 8 7 16 25 30 34 41 43 52
1 9 8 17 20 26 31 35 42 44 53
1 10 9 10 18 21 27 32 36 43 45 54
1 10 0 11 19 22 28 33 37 44 46 55
1 9 1 12 23 29 34 38 45 47 56
1 8 2 13 24 35 39 46 48 57
1 7 3 14 25 36 47 49 58
1 6 4...

result:

ok 

Test #25:

score: 0
Accepted
time: 1ms
memory: 3864kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 9
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
201
1 10 9 18 27 36 45 54 63 72 81 90
1 10 19 28 37 46 55 64 73 80 82 91
1 10 29 38 47 56 65 70 74 81 83 92
1 10 39 48 57 60 66 71 75 82 84 93
1 10 49 50 58 61 67 72 76 83 85 94
1 10 40 51 59 62 68 73 77 84 86 95
1 10 30 41 52 63 69 74 78 85 87 96
1 10 20 31 4...

result:

ok 

Test #26:

score: 0
Accepted
time: 1ms
memory: 3740kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 14
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
121
1 5 59 68 77 86 95
1 4 69 78 87 96
1 3 79 88 97
1 2 89 98
1 1 99
1 1 90
1 2 80 91
1 3 70 81 92
1 4 60 71 82 93
1 5 50 61 72 83 94
1 4 69 78 87 96
1 3 79 88 97
1 2 89 98
1 1 99
1 1 90
1 2 80 91
1 3 70 81 92
1 4 60 71 82 93
1 3 79 88 97
1 2 89 98
1 1 99
1 1 ...

result:

ok 

Test #27:

score: 0
Accepted
time: 1ms
memory: 3736kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 18
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 1 99
1 1 90
1 1 9
1 1 0
0 2 0 100
0 2 9 101
0 2 90 102
0 2 99 103
1 4 104 105 106 107

result:

ok 

Subtask #3:

score: 11
Accepted

Dependency #2:

100%
Accepted

Test #28:

score: 11
Accepted
time: 4ms
memory: 4000kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 15
100 198
292 896
132 11
161 406
319 701
460 596
369 959
191 730
128 923
590 1006
31 451
230 575
143 515
149 571
73 554
699 559
302 658
455 1017
252 283
137 380
159 965
260 639
46 527
332 968
57 457
439 686
320 339
157 358
696 620
727 1022
623 949
35 609
7...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
1801
1 16 15 44 73 102 131 160 189 218 247 276 305 334 363 392 421 450
1 17 16 45 74 103 132 161 190 219 248 277 306 335 364 393 420 422 451
1 18 17 46 75 104 133 162 191 220 249 278 307 336 365 390 394 421 423 452
1 19 18 47 76 105 134 163 192 221 250 279 308...

result:

ok 

Test #29:

score: 0
Accepted
time: 1ms
memory: 3832kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 29 15
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
57
1 1 15
1 1 16
1 1 17
1 1 18
1 1 19
1 1 20
1 1 21
1 1 22
1 1 23
1 1 24
1 1 25
1 1 26
1 1 27
1 1 28
1 1 0
1 1 1
1 1 2
1 1 3
1 1 4
1 1 5
1 1 6
1 1 7
1 1 8
1 1 9
1 1 10
1 1 11
1 1 12
1 1 13
0 2 0 29
0 2 1 30
0 2 2 31
0 2 3 32
0 2 4 33
0 2 5 34
0 2 6 35
0 2 7 36...

result:

ok 

Test #30:

score: 0
Accepted
time: 1ms
memory: 3788kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
29 1 13
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
59
1 1 13
1 1 14
1 1 15
1 1 16
1 1 17
1 1 18
1 1 19
1 1 20
1 1 21
1 1 22
1 1 23
1 1 24
1 1 25
1 2 0 26
1 2 1 27
1 2 2 28
1 1 3
1 1 4
1 1 5
1 1 6
1 1 7
1 1 8
1 1 9
1 1 10
1 1 11
1 1 12
1 1 13
1 1 14
1 1 15
0 2 0 29
0 2 1 30
0 2 2 31
0 2 3 32
0 2 4 33
0 2 5 34
0...

result:

ok 

Test #31:

score: 0
Accepted
time: 0ms
memory: 3912kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 15 42
32 210
220 359
210 369
204 275
206 353
210 365
254 353
210 355
207 358
223 374
221 352
222 353
211 274
221 274
220 327
211 352
194 275
207 374
220 375
208 275
223 358
211 275
221 275
210 274
207 353
223 353
210 352
220 374
220 358
210 275
220 353
10 11
1...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
25
1 2 434 448
1 1 449
1 1 435
1 2 420 436
1 1 449
1 1 435
1 1 14
1 1 0
1 2 13 29
1 1 14
1 1 0
1 2 1 15
0 2 0 450
0 2 1 451
0 2 13 452
0 2 14 453
0 2 15 454
0 2 29 455
0 2 420 456
0 2 434 457
0 2 435 458
0 2 436 459
0 2 448 460
0 2 449 461
1 12 462 463 464 465...

result:

ok 

Test #32:

score: 0
Accepted
time: 2ms
memory: 3824kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
15 30 2
94 170
33 3
111 73
28 29
312 282
134 224
107 104
93 82
217 222
19 125
436 437
230 231
199 196
298 299
61 50
233 238
362 363
176 146
452 453
491 501
225 195
16 17
241 246
180 181
410 484
450 300
162 163
181 138
446 408
493 482
116 117
164 129
441 447
148 2...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
901
1 3 2 31 60
1 4 3 30 32 61
1 5 0 4 31 33 62
1 5 1 5 32 34 63
1 5 2 6 33 35 64
1 5 3 7 34 36 65
1 5 4 8 35 37 66
1 5 5 9 36 38 67
1 5 6 10 37 39 68
1 5 7 11 38 40 69
1 5 8 12 39 41 70
1 5 9 13 40 42 71
1 5 10 14 41 43 72
1 5 11 15 42 44 73
1 5 12 16 43 45 7...

result:

ok 

Test #33:

score: 0
Accepted
time: 0ms
memory: 3936kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 1
64 184
397 491
205 206
278 279
366 367
566 567
421 387
156 250
528 529
415 400
429 430
748 749
413 507
408 390
68 69
649 759
79 429
1012 1013
79 64
368 369
963 964
64 65
147 241
37 38
336 702
171 137
240 222
239 224
305 306
133 134
688 670
996 998
742 546...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
1801
1 2 1 30
1 3 0 2 31
1 3 1 3 32
1 3 2 4 33
1 3 3 5 34
1 3 4 6 35
1 3 5 7 36
1 3 6 8 37
1 3 7 9 38
1 3 8 10 39
1 3 9 11 40
1 3 10 12 41
1 3 11 13 42
1 3 12 14 43
1 3 13 15 44
1 3 14 16 45
1 3 15 17 46
1 3 16 18 47
1 3 17 19 48
1 3 18 20 49
1 3 19 21 50
1 3 ...

result:

ok 

Test #34:

score: 0
Accepted
time: 4ms
memory: 4004kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 15
94 198
999 950
457 594
733 622
77 497
395 699
578 902
340 698
110 375
475 651
367 560
633 941
336 644
426 279
320 301
177 485
173 62
271 976
373 258
12 277
358 995
225 148
451 747
4 502
112 362
714 1018
544 1011
368 707
532 914
708 673
757 838
52 435
202...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
1801
1 16 15 44 73 102 131 160 189 218 247 276 305 334 363 392 421 450
1 17 16 45 74 103 132 161 190 219 248 277 306 335 364 393 420 422 451
1 18 17 46 75 104 133 162 191 220 249 278 307 336 365 390 394 421 423 452
1 19 18 47 76 105 134 163 192 221 250 279 308...

result:

ok 

Test #35:

score: 0
Accepted
time: 3ms
memory: 3984kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 29
94 212
85 934
369 600
122 969
208 497
151 594
51 972
739 967
330 903
505 270
436 744
428 853
279 296
239 979
141 761
149 923
249 368
240 479
171 604
441 971
300 551
386 918
305 905
273 1001
298 540
705 964
251 661
536 985
272 930
16 583
651 1021
112 904
...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
1801
1 30 29 58 87 116 145 174 203 232 261 290 319 348 377 406 435 464 493 522 551 580 609 638 667 696 725 754 783 812 841 870
1 30 59 88 117 146 175 204 233 262 291 320 349 378 407 436 465 494 523 552 581 610 639 668 697 726 755 784 813 840 842 871
1 30 89 11...

result:

ok 

Test #36:

score: 0
Accepted
time: 2ms
memory: 3980kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 44
94 227
59 866
167 925
78 1006
459 937
110 937
242 968
195 657
149 635
254 738
83 1011
81 660
90 897
186 633
50 567
185 990
250 728
196 925
195 694
209 563
186 571
144 529
213 528
252 724
144 909
425 897
250 635
225 695
484 939
149 914
190 931
173 900
19 ...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
961
1 15 479 508 537 566 595 624 653 682 711 740 769 798 827 856 885
1 14 509 538 567 596 625 654 683 712 741 770 799 828 857 886
1 13 539 568 597 626 655 684 713 742 771 800 829 858 887
1 12 569 598 627 656 685 714 743 772 801 830 859 888
1 11 599 628 657 686...

result:

ok 

Test #37:

score: 0
Accepted
time: 2ms
memory: 3788kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 58
12 241
240 882
241 883
237 919
236 918
202 919
236 953
241 916
239 882
241 882
236 919
323 322
323 289

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 1 899
1 1 870
1 1 29
1 1 0
0 2 0 900
0 2 29 901
0 2 870 902
0 2 899 903
1 4 904 905 906 907

result:

ok 

Subtask #4:

score: 0
Wrong Answer

Dependency #3:

100%
Accepted

Test #38:

score: 0
Wrong Answer
time: 1ms
memory: 3836kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 100 50
100 373
2576 5424
552 2444
1090 3586
698 7992
6043 6838
1364 8276
6025 8816
2900 5141
3114 3664
302 2171
3930 5433
2225 7225
6218 8326
1972 9191
1325 1432
5656 8200
5864 8290
4135 6498
3016 6790
8474 9563
6462 8785
2409 7590
6598 7251
1916 4460
276 447...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 51 50 149 248 347 446 545 644 743 842 941 1040 1139 1238 1337 1436 1535 1634 1733 1832 1931 2030 2129 2228 2327 2426 2525 2624 2723 2822 2921 3020 3119 3218 3317 3416 3515 3614 3713 3812 3911 4010 4109 4208 4307 4406 4505 4604 4703 4802 4901 5000
0 2 0 10000

result:

wrong answer on inputs (8, 61), (22, 97), expected 1, but computed 0

Subtask #5:

score: 12
Accepted

Test #48:

score: 12
Accepted
time: 0ms
memory: 3828kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 1
1 2 0 2
1 2 1 3
1 2 2 4
1 2 3 5
1 2 4 6
1 2 5 7
1 2 6 8
1 2 7 9
1 2 8 10
1 2 9 11
1 2 10 12
1 2 11 13
1 2 12 14
1 2 13 15
1 2 14 16
1 2 15 17
1 2 16 18
1 2 17 19
1 2 18 20
1 2 19 21
1 2 20 22
1 2 21 23
1 2 22 24
1 2 23 25
1 2 24 26
1 2 25 27
1 2 26 2...

result:

ok 

Test #49:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 99
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 99
1 1 100
1 1 101
1 1 102
1 1 103
1 1 104
1 1 105
1 1 106
1 1 107
1 1 108
1 1 109
1 1 110
1 1 111
1 1 112
1 1 113
1 1 114
1 1 115
1 1 116
1 1 117
1 1 118
1 1 119
1 1 120
1 1 121
1 1 122
1 1 123
1 1 124
1 1 125
1 1 126
1 1 127
1 1 128
1 1 129
1 1 130
1...

result:

ok 

Test #50:

score: 0
Accepted
time: 0ms
memory: 3700kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 100
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
397
1 1 100
1 1 101
1 1 102
1 1 103
1 1 104
1 1 105
1 1 106
1 1 107
1 1 108
1 1 109
1 1 110
1 1 111
1 1 112
1 1 113
1 1 114
1 1 115
1 1 116
1 1 117
1 1 118
1 1 119
1 1 120
1 1 121
1 1 122
1 1 123
1 1 124
1 1 125
1 1 126
1 1 127
1 1 128
1 1 129
1 1 130
1 1 131
...

result:

ok 

Test #51:

score: 0
Accepted
time: 0ms
memory: 3840kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 198
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 198
1 1 0
0 2 0 199
0 2 198 200
1 2 201 202

result:

ok 

Test #52:

score: 0
Accepted
time: 1ms
memory: 4228kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 2
1 1 3
1 2 0 4
1 2 1 5
1 2 2 6
1 2 3 7
1 2 4 8
1 2 5 9
1 2 6 10
1 2 7 11
1 2 8 12
1 2 9 13
1 2 10 14
1 2 11 15
1 2 12 16
1 2 13 17
1 2 14 18
1 2 15 19
1 2 16 20
1 2 17 21
1 2 18 22
1 2 19 23
1 2 20 24
1 2 21 25
1 2 22 26
1 2 23 27
1 2 24 28
1 2 25 29
...

result:

ok 

Test #53:

score: 0
Accepted
time: 1ms
memory: 4216kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 66
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 66
1 1 67
1 1 68
1 1 69
1 1 70
1 1 71
1 1 72
1 1 73
1 1 74
1 1 75
1 1 76
1 1 77
1 1 78
1 1 79
1 1 80
1 1 81
1 1 82
1 1 83
1 1 84
1 1 85
1 1 86
1 1 87
1 1 88
1 1 89
1 1 90
1 1 91
1 1 92
1 1 93
1 1 94
1 1 95
1 1 96
1 1 97
1 1 98
1 1 99
1 1 100
1 1 101
1 ...

result:

ok 

Test #54:

score: 0
Accepted
time: 0ms
memory: 4224kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 133
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
265
1 1 133
1 1 134
1 1 135
1 1 136
1 1 137
1 1 138
1 1 139
1 1 140
1 1 141
1 1 142
1 1 143
1 1 144
1 1 145
1 1 146
1 1 147
1 1 148
1 1 149
1 1 150
1 1 151
1 1 152
1 1 153
1 1 154
1 1 155
1 1 156
1 1 157
1 1 158
1 1 159
1 1 160
1 1 161
1 1 162
1 1 163
1 1 164
...

result:

ok 

Test #55:

score: 0
Accepted
time: 1ms
memory: 4196kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 197
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 1 197
1 1 198
1 1 0
1 1 1
0 2 0 199
0 2 1 200
0 2 197 201
0 2 198 202
1 4 203 204 205 206

result:

ok 

Test #56:

score: 0
Accepted
time: 1ms
memory: 3832kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
401
1 1 1
1 2 0 2
1 2 1 3
1 2 2 4
1 2 3 5
1 2 4 6
1 2 5 7
1 2 6 8
1 2 7 9
1 2 8 10
1 2 9 11
1 2 10 12
1 2 11 13
1 2 12 14
1 2 13 15
1 2 14 16
1 2 15 17
1 2 16 18
1 2 17 19
1 2 18 20
1 2 19 21
1 2 20 22
1 2 21 23
1 2 22 24
1 2 23 25
1 2 24 26
1 2 25 27
1 2 26 2...

result:

ok 

Test #57:

score: 0
Accepted
time: 1ms
memory: 3756kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 50
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
401
1 1 50
1 1 51
1 1 52
1 1 53
1 1 54
1 1 55
1 1 56
1 1 57
1 1 58
1 1 59
1 1 60
1 1 61
1 1 62
1 1 63
1 1 64
1 1 65
1 1 66
1 1 67
1 1 68
1 1 69
1 1 70
1 1 71
1 1 72
1 1 73
1 1 74
1 1 75
1 1 76
1 1 77
1 1 78
1 1 79
1 1 80
1 1 81
1 1 82
1 1 83
1 1 84
1 1 85
1 1 ...

result:

ok 

Test #58:

score: 0
Accepted
time: 1ms
memory: 3884kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 99
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
401
1 1 99
1 1 100
1 1 101
1 1 102
1 1 103
1 1 104
1 1 105
1 1 106
1 1 107
1 1 108
1 1 109
1 1 110
1 1 111
1 1 112
1 1 113
1 1 114
1 1 115
1 1 116
1 1 117
1 1 118
1 1 119
1 1 120
1 1 121
1 1 122
1 1 123
1 1 124
1 1 125
1 1 126
1 1 127
1 1 128
1 1 129
1 1 130
1...

result:

ok 

Test #59:

score: 0
Accepted
time: 0ms
memory: 3884kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 100
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
401
1 1 100
1 1 101
1 1 102
1 1 103
1 1 104
1 1 105
1 1 106
1 1 107
1 1 108
1 1 109
1 1 110
1 1 111
1 1 112
1 1 113
1 1 114
1 1 115
1 1 116
1 1 117
1 1 118
1 1 119
1 1 120
1 1 121
1 1 122
1 1 123
1 1 124
1 1 125
1 1 126
1 1 127
1 1 128
1 1 129
1 1 130
1 1 131
...

result:

ok 

Test #60:

score: 0
Accepted
time: 0ms
memory: 3724kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 149
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
205
1 1 149
1 1 150
1 1 151
1 1 152
1 1 153
1 1 154
1 1 155
1 1 156
1 1 157
1 1 158
1 1 159
1 1 160
1 1 161
1 1 162
1 1 163
1 1 164
1 1 165
1 1 166
1 1 167
1 1 168
1 1 169
1 1 170
1 1 171
1 1 172
1 1 173
1 1 174
1 1 175
1 1 176
1 1 177
1 1 178
1 1 179
1 1 180
...

result:

ok 

Test #61:

score: 0
Accepted
time: 1ms
memory: 3832kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 199
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 199
1 1 0
0 2 0 200
0 2 199 201
1 2 202 203

result:

ok 

Test #62:

score: 0
Accepted
time: 2ms
memory: 4216kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
401
1 1 1
1 2 0 2
1 2 1 3
1 2 2 4
1 2 3 5
1 2 4 6
1 2 5 7
1 2 6 8
1 2 7 9
1 2 8 10
1 2 9 11
1 2 10 12
1 2 11 13
1 2 12 14
1 2 13 15
1 2 14 16
1 2 15 17
1 2 16 18
1 2 17 19
1 2 18 20
1 2 19 21
1 2 20 22
1 2 21 23
1 2 22 24
1 2 23 25
1 2 24 26
1 2 25 27
1 2 26 2...

result:

ok 

Test #63:

score: 0
Accepted
time: 1ms
memory: 4240kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 51
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
401
1 1 51
1 1 52
1 1 53
1 1 54
1 1 55
1 1 56
1 1 57
1 1 58
1 1 59
1 1 60
1 1 61
1 1 62
1 1 63
1 1 64
1 1 65
1 1 66
1 1 67
1 1 68
1 1 69
1 1 70
1 1 71
1 1 72
1 1 73
1 1 74
1 1 75
1 1 76
1 1 77
1 1 78
1 1 79
1 1 80
1 1 81
1 1 82
1 1 83
1 1 84
1 1 85
1 1 86
1 1 ...

result:

ok 

Test #64:

score: 0
Accepted
time: 1ms
memory: 4240kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 99
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
401
1 1 99
1 1 100
1 1 101
1 1 102
1 1 103
1 1 104
1 1 105
1 1 106
1 1 107
1 1 108
1 1 109
1 1 110
1 1 111
1 1 112
1 1 113
1 1 114
1 1 115
1 1 116
1 1 117
1 1 118
1 1 119
1 1 120
1 1 121
1 1 122
1 1 123
1 1 124
1 1 125
1 1 126
1 1 127
1 1 128
1 1 129
1 1 130
1...

result:

ok 

Test #65:

score: 0
Accepted
time: 1ms
memory: 4164kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 100
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
401
1 1 100
1 1 101
1 1 102
1 1 103
1 1 104
1 1 105
1 1 106
1 1 107
1 1 108
1 1 109
1 1 110
1 1 111
1 1 112
1 1 113
1 1 114
1 1 115
1 1 116
1 1 117
1 1 118
1 1 119
1 1 120
1 1 121
1 1 122
1 1 123
1 1 124
1 1 125
1 1 126
1 1 127
1 1 128
1 1 129
1 1 130
1 1 131
...

result:

ok 

Test #66:

score: 0
Accepted
time: 1ms
memory: 4204kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 150
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
201
1 1 150
1 1 151
1 1 152
1 1 153
1 1 154
1 1 155
1 1 156
1 1 157
1 1 158
1 1 159
1 1 160
1 1 161
1 1 162
1 1 163
1 1 164
1 1 165
1 1 166
1 1 167
1 1 168
1 1 169
1 1 170
1 1 171
1 1 172
1 1 173
1 1 174
1 1 175
1 1 176
1 1 177
1 1 178
1 1 179
1 1 180
1 1 181
...

result:

ok 

Test #67:

score: 0
Accepted
time: 1ms
memory: 4272kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 199
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 199
1 1 0
0 2 0 200
0 2 199 201
1 2 202 203

result:

ok 

Test #68:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 1
1 1 0
0 2 0 2
0 2 1 3
1 2 4 5

result:

ok 

Test #69:

score: 0
Accepted
time: 1ms
memory: 3796kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 1
1 1 0
0 2 0 2
0 2 1 3
1 2 4 5

result:

ok 

Subtask #6:

score: 8
Accepted

Test #70:

score: 8
Accepted
time: 1ms
memory: 3720kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 1
3 128
128 129
128 130
128 131

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 2 1 2
1 2 0 3
1 2 0 3
1 2 1 2
0 2 0 4
0 2 1 5
0 2 2 6
0 2 3 7
1 4 8 9 10 11

result:

ok 

Test #71:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 2
3 129
129 128
129 131
129 130

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 1 3
1 1 2
1 1 1
1 1 0
0 2 0 4
0 2 1 5
0 2 2 6
0 2 3 7
1 4 8 9 10 11

result:

ok 

Test #72:

score: 0
Accepted
time: 2ms
memory: 3932kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 1
8 254
254 255
254 227
254 252
254 196
254 224
254 2958
254 2986
254 226

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
265
1 29 0 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
1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...

result:

ok 

Test #73:

score: 0
Accepted
time: 1ms
memory: 3856kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 31
92 284
284 330
284 634
284 598
284 114
284 366
284 966
284 814
284 922
284 510
284 474
284 194
284 930
284 42
284 230
284 1002
284 438
284 526
284 778
284 186
284 6
284 958
284 150
284 562
284 886
284 78
284 402
284 850
284 482
284 222
284 367
284 671
2...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 29 115 143 171 199 227 255 283 311 339 367 395 423 451 479 507 535 563 591 619 647 675 703 731 759 787 815 843 871 899
0 2 0 2929

result:

ok 

Test #74:

score: 0
Accepted
time: 1ms
memory: 3840kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 64
92 317
317 1326
317 1566
317 1090
317 1962
317 1046
317 1890
317 2034
317 1190
317 1934
317 1442
317 1074
317 1846
317 1118
317 1234
317 1298
317 1162
317 1862
317 1398
317 2006
317 1918
317 1470
317 1262
317 1514
317 1370
317 1594
317 1486
317 1414
317...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 29 1072 1100 1128 1156 1184 1212 1240 1268 1296 1324 1352 1380 1408 1436 1464 1492 1520 1548 1576 1604 1632 1660 1688 1716 1744 1772 1800 1828 1856
0 2 0 2929

result:

ok 

Test #75:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 95
92 348
348 1738
348 3066
348 1682
348 2058
348 2886
348 3030
348 2830
348 2094
348 2866
348 1774
348 2454
348 2310
348 2546
348 2490
348 2238
348 2258
348 2510
348 2142
348 2394
348 2294
348 2402
348 2202
348 2114
348 2922
348 2430
348 1718
348 2210
348...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 29 1971 1999 2027 2055 2083 2111 2139 2167 2195 2223 2251 2279 2307 2335 2363 2391 2419 2447 2475 2503 2531 2559 2587 2615 2643 2671 2699 2727 2755
0 2 0 2929

result:

ok 

Test #76:

score: 0
Accepted
time: 0ms
memory: 3952kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 128
7 381
381 2606
381 2578
381 2573
381 2601
381 352
381 353
381 380

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 1 2928
0 2 0 2929

result:

ok 

Test #77:

score: 0
Accepted
time: 2ms
memory: 3976kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 1
8 303
303 302
303 424
303 301
303 33
303 423
303 5660
303 6018
303 425

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
363
1 135 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #78:

score: 0
Accepted
time: 1ms
memory: 3880kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 45
97 347
347 375
347 6133
347 523
347 4413
347 653
347 1205
347 99
347 4137
347 2885
347 489
347 3097
347 2397
347 1755
347 2519
347 4535
347 229
347 5369
347 2673
347 2121
347 3071
347 5191
347 3585
347 3771
347 3437
347 1075
347 4901
347 4817
347 1465
3...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 44 45 179 313 447 581 715 849 983 1117 1251 1385 1519 1653 1787 1921 2055 2189 2323 2457 2591 2725 2859 2993 3127 3261 3395 3529 3663 3797 3931 4065 4199 4333 4467 4601 4735 4869 5003 5137 5271 5405 5539 5673 5807
0 2 0 5940

result:

ok 

Test #79:

score: 0
Accepted
time: 1ms
memory: 3764kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 89
97 391
391 479
391 5981
391 1413
391 3439
391 3021
391 1949
391 6099
391 4657
391 2903
391 1697
391 5445
391 5193
391 3557
391 2651
391 2367
391 763
391 1295
391 4491
391 2485
391 1043
391 1161
391 4909
391 4791
391 4373
391 2115
391 4255
391 2233
391 3...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 44 89 223 357 491 625 759 893 1027 1161 1295 1429 1563 1697 1831 1965 2099 2233 2367 2501 2635 2769 2903 3037 3171 3305 3439 3573 3707 3841 3975 4109 4243 4377 4511 4645 4779 4913 5047 5181 5315 5449 5583 5717 5851
0 2 0 5940

result:

ok 

Test #80:

score: 0
Accepted
time: 1ms
memory: 3820kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 133
96 435
435 311
435 5813
435 5939
435 2265
435 2115
435 5193
435 1287
435 3515
435 2895
435 1761
435 4491
435 4689
435 2391
435 3987
435 5469
435 4217
435 2609
435 3113
435 1643
435 4365
435 539
435 1919
435 657
435 3389
435 3861
435 3013
435 3585
435 5...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 44 133 267 401 535 669 803 937 1071 1205 1339 1473 1607 1741 1875 2009 2143 2277 2411 2545 2679 2813 2947 3081 3215 3349 3483 3617 3751 3885 4019 4153 4287 4421 4555 4689 4823 4957 5091 5225 5359 5493 5627 5761 5895
0 2 0 5940

result:

ok 

Test #81:

score: 0
Accepted
time: 1ms
memory: 3772kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 177
7 479
479 6003
479 5869
479 5868
479 6002
479 344
479 345
479 478

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 1 5939
0 2 0 5940

result:

ok 

Test #82:

score: 0
Accepted
time: 1ms
memory: 3748kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 1
3 324
324 325
324 326
324 386

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 1
1 2 0 2
1 2 1 3
1 2 2 4
1 2 3 5
1 2 4 6
1 2 5 7
1 2 6 8
1 2 7 9
1 2 8 10
1 2 9 11
1 2 10 12
1 2 11 13
1 2 12 14
1 2 13 15
1 2 14 16
1 2 15 17
1 2 16 18
1 2 17 19
1 2 18 20
1 2 19 21
1 2 20 22
1 2 21 23
1 2 22 24
1 2 23 25
1 2 24 26
1 2 25 27
1 2 26 2...

result:

ok 

Test #83:

score: 0
Accepted
time: 0ms
memory: 3876kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 60
5 383
383 324
383 323
383 322
383 441
383 382

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 60
1 1 61
1 1 62
1 1 63
1 1 64
1 1 65
1 1 66
1 1 67
1 1 68
1 1 69
1 1 70
1 1 71
1 1 72
1 1 73
1 1 74
1 1 75
1 1 76
1 1 77
1 1 78
1 1 79
1 1 80
1 1 81
1 1 82
1 1 83
1 1 84
1 1 85
1 1 86
1 1 87
1 1 88
1 1 89
1 1 90
1 1 91
1 1 92
1 1 93
1 1 94
1 1 95
1 1 ...

result:

ok 

Test #84:

score: 0
Accepted
time: 1ms
memory: 3740kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 137
5 460
460 324
460 325
460 326
460 266
460 461

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
249
1 1 137
1 1 138
1 1 139
1 1 140
1 1 141
1 1 142
1 1 143
1 1 144
1 1 145
1 1 146
1 1 147
1 1 148
1 1 149
1 1 150
1 1 151
1 1 152
1 1 153
1 1 154
1 1 155
1 1 156
1 1 157
1 1 158
1 1 159
1 1 160
1 1 161
1 1 162
1 1 163
1 1 164
1 1 165
1 1 166
1 1 167
1 1 168
...

result:

ok 

Test #85:

score: 0
Accepted
time: 1ms
memory: 3832kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 198
3 521
521 716
521 719
521 520

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 198
1 1 0
0 2 0 199
0 2 198 200
1 2 201 202

result:

ok 

Test #86:

score: 0
Accepted
time: 1ms
memory: 4164kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 1
3 324
324 325
324 326
324 386

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 1
1 2 0 2
1 2 1 3
1 2 2 4
1 2 3 5
1 2 4 6
1 2 5 7
1 2 6 8
1 2 7 9
1 2 8 10
1 2 9 11
1 2 10 12
1 2 11 13
1 2 12 14
1 2 13 15
1 2 14 16
1 2 15 17
1 2 16 18
1 2 17 19
1 2 18 20
1 2 19 21
1 2 20 22
1 2 21 23
1 2 22 24
1 2 23 25
1 2 24 26
1 2 25 27
1 2 26 2...

result:

ok 

Test #87:

score: 0
Accepted
time: 1ms
memory: 4220kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 99
5 422
422 452
422 453
422 450
422 352
422 423

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 99
1 1 100
1 1 101
1 1 102
1 1 103
1 1 104
1 1 105
1 1 106
1 1 107
1 1 108
1 1 109
1 1 110
1 1 111
1 1 112
1 1 113
1 1 114
1 1 115
1 1 116
1 1 117
1 1 118
1 1 119
1 1 120
1 1 121
1 1 122
1 1 123
1 1 124
1 1 125
1 1 126
1 1 127
1 1 128
1 1 129
1 1 130
1...

result:

ok 

Test #88:

score: 0
Accepted
time: 1ms
memory: 4240kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 198
3 521
521 716
521 719
521 520

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 198
1 1 0
0 2 0 199
0 2 198 200
1 2 201 202

result:

ok 

Test #89:

score: 0
Accepted
time: 4ms
memory: 4288kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 1
8 424
424 425
424 460
424 426
424 352
424 461
424 20407
424 19476
424 459

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
605
1 100 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #90:

score: 0
Accepted
time: 1ms
memory: 3956kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 100
99 523
523 616
523 9383
523 2364
523 4251
523 8140
523 5966
523 5532
523 8700
523 4879
523 2449
523 7512
523 5221
523 9809
523 7138
523 6215
523 7829
523 3885
523 5617
523 4134
523 4661
523 6526
523 2580
523 5865
523 10221
523 4778
523 8389
523 2053
5...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 100 199 298 397 496 595 694 793 892 991 1090 1189 1288 1387 1486 1585 1684 1783 1882 1981 2080 2179 2278 2377 2476 2575 2674 2773 2872 2971 3070 3169 3268 3367 3466 3565 3664 3763 3862 3961 4060 4159 4258 4357 4456 4555 4654 4753 4852 4951 5050 5149 5248 5...

result:

ok 

Test #91:

score: 0
Accepted
time: 1ms
memory: 4004kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 199
99 622
622 9569
622 20278
622 15777
622 15345
622 10838
622 19321
622 12328
622 12732
622 17420
622 13171
622 17792
622 18637
622 12857
622 15719
622 13294
622 14872
622 16835
622 11775
622 13012
622 16244
622 19220
622 13545
622 14444
622 12113
622 1...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 100 10099 10198 10297 10396 10495 10594 10693 10792 10891 10990 11089 11188 11287 11386 11485 11584 11683 11782 11881 11980 12079 12178 12277 12376 12475 12574 12673 12772 12871 12970 13069 13168 13267 13366 13465 13564 13663 13762 13861 13960 14059 14158 ...

result:

ok 

Test #92:

score: 0
Accepted
time: 1ms
memory: 4072kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 298
7 721
721 20330
721 19663
721 19662
721 20333
721 693
721 690
721 720

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 1 19999
0 2 0 20000

result:

ok 

Test #93:

score: 0
Accepted
time: 2ms
memory: 4044kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 200 1
8 424
424 425
424 352
424 426
424 56
424 353
424 20407
424 19696
424 367

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
605
1 200 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #94:

score: 0
Accepted
time: 1ms
memory: 3784kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 200 149
98 572
572 680
572 20405
572 15955
572 11715
572 16539
572 4169
572 3896
572 8043
572 14374
572 13323
572 14156
572 10601
572 13050
572 15024
572 1794
572 18112
572 5411
572 13233
572 1455
572 213
572 18431
572 2378
572 15608
572 8966
572 5695
572 522...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 100 149 348 547 746 945 1144 1343 1542 1741 1940 2139 2338 2537 2736 2935 3134 3333 3532 3731 3930 4129 4328 4527 4726 4925 5124 5323 5522 5721 5920 6119 6318 6517 6716 6915 7114 7313 7512 7711 7910 8109 8308 8507 8706 8905 9104 9303 9502 9701 9900 10099 1...

result:

ok 

Test #95:

score: 0
Accepted
time: 1ms
memory: 3960kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 200 298
7 721
721 20358
721 19663
721 19662
721 20361
721 537
721 534
721 720

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 1 19999
0 2 0 20000

result:

ok 

Test #96:

score: 0
Accepted
time: 0ms
memory: 4328kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 1
8 524
524 525
524 708
524 526
524 924
524 709
524 40499
524 39284
524 715

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
805
1 200 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #97:

score: 0
Accepted
time: 1ms
memory: 3968kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 100
100 623
623 524
623 20279
623 18515
623 8440
623 18429
623 3772
623 9802
623 10628
623 6334
623 9151
623 9859
623 20222
623 6956
623 17344
623 16974
623 10855
623 837
623 9062
623 14900
623 9237
623 10912
623 8497
623 4452
623 14559
623 4085
623 3683
...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 101 100 299 498 697 896 1095 1294 1493 1692 1891 2090 2289 2488 2687 2886 3085 3284 3483 3682 3881 4080 4279 4478 4677 4876 5075 5274 5473 5672 5871 6070 6269 6468 6667 6866 7065 7264 7463 7662 7861 8060 8259 8458 8657 8856 9055 9254 9453 9652 9851 10050 1...

result:

ok 

Test #98:

score: 0
Accepted
time: 1ms
memory: 4088kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 199
96 722
722 532
722 39010
722 8232
722 16314
722 1303
722 34657
722 16754
722 27170
722 863
722 11377
722 19210
722 4736
722 16395
722 11932
722 7298
722 21186
722 20006
722 28382
722 33538
722 13833
722 33164
722 14494
722 38570
722 1253
722 25673
722...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 200 199 398 597 796 995 1194 1393 1592 1791 1990 2189 2388 2587 2786 2985 3184 3383 3582 3781 3980 4179 4378 4577 4776 4975 5174 5373 5572 5771 5970 6169 6368 6567 6766 6965 7164 7363 7562 7761 7960 8159 8358 8557 8756 8955 9154 9353 9552 9751 9950 10149 1...

result:

ok 

Test #99:

score: 0
Accepted
time: 1ms
memory: 3904kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 299
98 822
822 19753
822 39149
822 33026
822 33939
822 34081
822 38890
822 38946
822 39817
822 33012
822 35333
822 25272
822 24618
822 31977
822 24363
822 35933
822 31790
822 31064
822 31377
822 21314
822 24530
822 29086
822 29541
822 19920
822 20788
822 ...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 100 20199 20398 20597 20796 20995 21194 21393 21592 21791 21990 22189 22388 22587 22786 22985 23184 23383 23582 23781 23980 24179 24378 24577 24776 24975 25174 25373 25572 25771 25970 26169 26368 26567 26766 26965 27164 27363 27562 27761 27960 28159 28358 ...

result:

ok 

Test #100:

score: 0
Accepted
time: 1ms
memory: 3956kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 398
7 921
921 39150
921 40871
921 40870
921 39137
921 849
921 862
921 920

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
2
1 1 39999
0 2 0 40000

result:

ok 

Subtask #7:

score: 14
Accepted

Test #101:

score: 14
Accepted
time: 6ms
memory: 4320kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 1
100 524
24804 34853
20956 34628
18830 29184
28919 32573
11364 24911
2226 5624
3715 30838
2206 17143
21162 27531
20198 27242
5007 12724
27160 32586
3535 7307
17015 25466
626 13891
9132 26194
9198 33073
815 7328
6938 21395
9489 30995
10804 21530
14698 394...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
805
1 200 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #102:

score: 0
Accepted
time: 1ms
memory: 3716kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9
1 2 1 2
1 2 0 3
1 2 0 3
1 2 1 2
0 2 0 4
0 2 1 5
0 2 2 6
0 2 3 7
1 4 8 9 10 11

result:

ok 

Test #103:

score: 0
Accepted
time: 2ms
memory: 3900kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 1
64 254
2572 2573
1820 1821
2037 2006
1976 1949
3033 3030
2991 2960
513 994
1467 1436
289 286
1774 1747
266 267
269 750
1996 1969
396 369
668 641
848 821
105 74
2239 2236
503 472
3010 3011
265 262
1921 1918
926 927
2092 2065
537 1018
2751 2720
2537 2534
1...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
265
1 29 0 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
1 29 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
1 29 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...

result:

ok 

Test #104:

score: 0
Accepted
time: 1ms
memory: 3864kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 1
64 303
3956 3955
2873 2994
4171 4292
1161 1794
3633 3722
5975 5974
4529 4528
4900 5053
3455 3576
164 163
6091 6090
2758 2757
2716 2715
4129 4128
2352 2319
4355 4508
4666 4665
294 447
4882 5099
2882 2881
1356 1477
5098 4707
1180 1813
3029 3028
1465 1464
4...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
363
1 135 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #105:

score: 0
Accepted
time: 1ms
memory: 3748kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 1
1 2 0 2
1 2 1 3
1 2 2 4
1 2 3 5
1 2 4 6
1 2 5 7
1 2 6 8
1 2 7 9
1 2 8 10
1 2 9 11
1 2 10 12
1 2 11 13
1 2 12 14
1 2 13 15
1 2 14 16
1 2 15 17
1 2 16 18
1 2 17 19
1 2 18 20
1 2 19 21
1 2 20 22
1 2 21 23
1 2 22 24
1 2 23 25
1 2 24 26
1 2 25 27
1 2 26 2...

result:

ok 

Test #106:

score: 0
Accepted
time: 0ms
memory: 4336kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
399
1 1 1
1 2 0 2
1 2 1 3
1 2 2 4
1 2 3 5
1 2 4 6
1 2 5 7
1 2 6 8
1 2 7 9
1 2 8 10
1 2 9 11
1 2 10 12
1 2 11 13
1 2 12 14
1 2 13 15
1 2 14 16
1 2 15 17
1 2 16 18
1 2 17 19
1 2 18 20
1 2 19 21
1 2 20 22
1 2 21 23
1 2 22 24
1 2 23 25
1 2 24 26
1 2 25 27
1 2 26 2...

result:

ok 

Test #107:

score: 0
Accepted
time: 0ms
memory: 4156kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 1
64 424
2307 2215
15256 15257
9795 10727
11018 11019
12186 12094
10597 10393
17418 18350
4816 4724
11245 11246
15542 15402
9463 9416
7112 7020
10385 10386
4870 4794
635 636
19749 19750
12766 12658
14657 14658
8155 8063
10491 10271
5560 5596
10188 10080
1...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
605
1 100 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #108:

score: 0
Accepted
time: 4ms
memory: 4044kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 200 1
64 424
2490 2418
12659 12660
16591 17287
15701 15469
2849 2809
10684 10685
9480 9481
13053 13749
677 678
18111 18039
8956 9652
3900 3828
14377 14378
11098 11099
6860 6861
11973 12701
12617 12618
9064 9065
1847 1800
6224 6225
6537 6538
17559 17640
13843 ...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
605
1 200 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #109:

score: 0
Accepted
time: 2ms
memory: 4380kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 1
64 524
29787 29780
29798 30014
5970 5162
1369 1370
33920 33921
21146 21330
27015 27008
24216 24217
10595 11835
38759 38752
21185 21186
22973 24181
2666 2850
14275 14300
5796 6012
21309 21310
34071 34287
19439 19432
17864 19072
28242 28243
4521 5729
1337...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
805
1 200 0 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Subtask #8:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

0%