QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#855361#8629. 寻宝lichenghan84 2336ms213408kbC++172.1kb2025-01-12 19:09:312025-01-12 19:09:31

Judging History

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

  • [2025-01-12 19:09:31]
  • 评测
  • 测评结果:84
  • 用时:2336ms
  • 内存:213408kb
  • [2025-01-12 19:09:31]
  • 提交

answer

#include "treasure.h"
#include <bits/stdc++.h>
using namespace std;
const int N=1e6+10;
const int B=3003;



namespace NAMESPACE_ALICE{
	int n,m,at;
	vector<array<int,2>> g[N];
	int col[N];
	bool* dir;
	int dis[N];
	void get_near(){
		memset(dis,0x3f,sizeof(dis));
		queue<int> q;
		dis[at]=0;
		q.push(at);
		col[at]=1;
		while(!q.empty()) {
			int u=q.front(); q.pop();
			// fprintf(stderr,"dis %d = %d\n",u,dis[u]);
			for(auto [v,w]:g[u]) if(dis[u]+1<dis[v]){
				dis[v]=dis[u]+1;
				col[v]=col[u]^3;
				q.push(v);
			}
		}
		for(int i=0;i<n;i++) if(dis[i]>B) dis[i]=1e9;;
	}
	void build(){
		for(int u=0;u<n;u++){
			for(auto[v,w]:g[u]) if(w!=-1){
				if(dis[u]!=dis[v]) dir[w]=(dis[u]<dis[v]);
				else dir[w]=(col[u]<col[v]);
				// fprintf(stderr,"link %d %d %d\n",u,v,dir[w]);
			}
		}
	}
	void solve(int _n,int _m,int _x,const int* from,const int* to,bool* _dir){
		n=_n; m=_m; at=_x; dir=_dir;
		for(int i=0;i<m;i++){
			g[from[i]].push_back({to[i],i});
			g[to[i]].push_back({from[i],-1});
		}
		get_near();
		build();
	}
};



namespace NAMESPACE_BOB{
	mt19937 e(20090827);
	int n;
	bool vis[N];
	int solve(int _n){
		n=_n;
		int u=e()%n;
		bool start=true;
		while(true){
			#define check(x,y) {u=x;start=y;continue;}
			if(vis[u]){
				check(e()%n,true);
				continue;
			}
			vector<pair<int,bool>> g=discover(u);
			vis[u]=true;
			if(g.size()==n-1){
				for(auto [v,w]:g) if(!w) {
					return v;
				}
				return u;
			}
			if(g.size()==1){
				if(!start) return u;
				int v=g[0].first;
				if(vis[v]) {
					check(v,true);
				} else check(v,true);
			}
			bool same=true;
			for(int i=1;i<g.size();i++) if(g[i].second!=g[0].second) same=false;
			if(same) {
				if(!start&&g[0].second) return u;
				int v; do v=e()%n; while(vis[v]);
				check(e()%n,true);
			}
			for(auto [v,w]:g) if(!w&&!vis[v]) check(v,false);

		}
	}
};



void Alice(const int testid, const int n, const int m, const int x, const int u[], const int v[], bool dir[]){
	NAMESPACE_ALICE::solve(n,m,x,u,v,dir);
}
int Bob(const int testid, const int n){
	return NAMESPACE_BOB::solve(n);
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 4
Accepted

Test #1:

score: 4
Accepted
time: 7ms
memory: 58580kb

Manager to Encoder

1 4999 9998 4883
1478 4883
1478 1709
797 1478
1478 384
2755 4883
2755 1046
1478 3225
3498 797
354 3498
1046 4678
433 4678
1709 2496
2535 2755
354 3890
2755 1979
3735 3225
4883 3480
3875 384
886 1979
4537 3225
384 3937
1046 2039
4778 1478
797 89
337 3890
202 2039
4883 2445
2535 3287
1478 1280
1979 93...

Encoder to Manager

1
1 4999 9998
1863 4269 1
2981 4576 1
3933 1377 0
2887 2499 0
3873 3696 0
3271 2534 0
127 946 0
1267 3121 0
1946 1427 0
208 492 0
2551 4695 0
3012 3747 0
1917 3810 1
27 2348 1
356 532 0
4777 3926 1
148 1419 0
3816 195 0
1544 3652 1
482 2290 1
3708 2590 1
2234 1805 1
783 2199 0
4301 2887 0
2082 101 0...

Manager to Decoder

1
1 4999 9998
1863 4269 1
2981 4576 1
3933 1377 0
2887 2499 0
3873 3696 0
3271 2534 0
127 946 0
1267 3121 0
1946 1427 0
208 492 0
2551 4695 0
3012 3747 0
1917 3810 1
27 2348 1
356 532 0
4777 3926 1
148 1419 0
3816 195 0
1544 3652 1
482 2290 1
3708 2590 1
2234 1805 1
783 2199 0
4301 2887 0
2082 101 0...

Decoder to Manager

4883 6

result:

points 1.0 Correct, ansewr is 6. Query count = 0

Test #2:

score: 4
Accepted
time: 10ms
memory: 59628kb

Manager to Encoder

1 5000 10000 3660
1717 3660
1717 2840
4763 2840
615 4763
615 785
785 895
994 895
994 4332
4332 697
2173 697
2173 2430
3774 2430
4621 3774
4621 3374
3332 3374
3332 2354
2354 2607
2607 3625
4242 3625
4242 2461
2461 2931
1877 2931
4906 1877
889 4906
889 1260
1260 3259
3936 3259
3936 3287
3287 2524
2524...

Encoder to Manager

1
1 5000 10000
1078 3049 1
3657 3781 0
3895 4931 1
726 789 1
3397 2397 0
2690 4295 0
1816 1383 1
228 3322 1
1078 4220 1
1348 674 1
2858 1561 0
3349 2218 1
4154 2962 0
1047 3826 1
4199 1791 0
3644 1456 0
3593 3158 0
2290 1742 1
1843 1078 0
2673 4456 0
4625 4737 0
3895 4905 1
3850 2361 0
3686 1309 0
1...

Manager to Decoder

1
1 5000 10000
1078 3049 1
3657 3781 0
3895 4931 1
726 789 1
3397 2397 0
2690 4295 0
1816 1383 1
228 3322 1
1078 4220 1
1348 674 1
2858 1561 0
3349 2218 1
4154 2962 0
1047 3826 1
4199 1791 0
3644 1456 0
3593 3158 0
2290 1742 1
1843 1078 0
2673 4456 0
4625 4737 0
3895 4905 1
3850 2361 0
3686 1309 0
1...

Decoder to Manager

3660 13

result:

points 1.0 Correct, ansewr is 13. Query count = 0

Test #3:

score: 4
Accepted
time: 8ms
memory: 59656kb

Manager to Encoder

1 5000 4999 4097
4097 4847
4847 4045
4045 3564
3564 1482
1482 1838
1838 2752
2752 4525
4525 1641
1641 1300
3558 1300
3558 3887
3887 676
989 676
2574 989
2574 4868
4868 4055
3369 4055
388 3369
2854 388
1296 2854
1296 2072
2072 1645
4280 1645
4280 1921
1921 4148
4148 1952
2910 1952
4318 2910
4318 4901...

Encoder to Manager

1
1 5000 4999
835 956 1
4159 719 0
862 926 0
4089 3018 0
4825 3799 1
4497 2402 0
3555 926 0
4631 4079 1
926 2659 1
1977 1869 1
2742 103 0
2506 2402 0
2469 785 1
3892 2402 0
2309 2092 0
2402 4354 1
3608 4851 1
3612 926 0
3863 926 0
4295 3484 1
3275 2999 1
1726 3727 0
926 2853 1
1647 1217 0
716 4312 1...

Manager to Decoder

1
1 5000 4999
835 956 1
4159 719 0
862 926 0
4089 3018 0
4825 3799 1
4497 2402 0
3555 926 0
4631 4079 1
926 2659 1
1977 1869 1
2742 103 0
2506 2402 0
2469 785 1
3892 2402 0
2309 2092 0
2402 4354 1
3608 4851 1
3612 926 0
3863 926 0
4295 3484 1
3275 2999 1
1726 3727 0
926 2853 1
1647 1217 0
716 4312 1...

Decoder to Manager

4097 156

result:

points 1.0 Correct, ansewr is 156. Query count = 0

Test #4:

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

Manager to Encoder

1 5000 4999 2575
585 2575
477 2575
2575 4568
638 2575
2942 2575
2575 558
4597 2575
2575 3256
106 2575
4177 2575
2575 952
2575 1242
2575 1420
2575 726
2575 4791
2575 2958
3062 2575
2575 4472
2210 2575
4287 2575
1260 2575
2575 3785
4307 2575
2575 1847
2575 3815
2636 2575
2575 3379
1687 2575
2575 366
3...

Encoder to Manager

1
1 5000 4999
3195 3882 1
3195 3461 1
4814 3195 0
3195 2658 1
3195 1718 1
3195 3809 1
3195 3311 1
839 3195 0
3195 3701 1
3195 2520 1
1922 3195 0
624 3195 0
3195 3565 1
2545 3195 0
3233 3195 0
814 3195 0
1019 3195 0
423 3195 0
1394 3195 0
3305 3195 0
374 3195 0
925 3195 0
404 3195 0
3195 1851 1
3195 ...

Manager to Decoder

1
1 5000 4999
3195 3882 1
3195 3461 1
4814 3195 0
3195 2658 1
3195 1718 1
3195 3809 1
3195 3311 1
839 3195 0
3195 3701 1
3195 2520 1
1922 3195 0
624 3195 0
3195 3565 1
2545 3195 0
3233 3195 0
814 3195 0
1019 3195 0
423 3195 0
1394 3195 0
3305 3195 0
374 3195 0
925 3195 0
404 3195 0
3195 1851 1
3195 ...

Decoder to Manager

2575 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #2:

score: 4
Accepted

Test #5:

score: 4
Accepted
time: 126ms
memory: 74600kb

Manager to Encoder

2 99982 199964 6211
6211 58208
68464 6211
68464 26556
60485 6211
60485 58702
8092 26556
7330 58702
25249 58702
25249 5476
22495 58702
14358 8092
8092 50419
25249 39935
89623 6211
66788 22495
5476 82299
10093 58702
39935 96999
96999 51482
80541 6211
26556 97797
8092 64004
42587 50419
10093 28282
9415...

Encoder to Manager

1
2 99982 199964
76506 94936 1
39535 80618 0
70451 31268 0
69887 72086 0
79586 96755 1
53589 39098 1
91168 73507 1
49486 64908 0
79460 33062 1
52730 47141 1
51201 46979 0
474 46185 0
87716 4924 1
56680 21098 0
37654 54084 0
69117 52648 1
64332 80845 0
94753 29233 0
28440 84644 0
1206 42718 1
49112 1...

Manager to Decoder

1
2 99982 199964
76506 94936 1
39535 80618 0
70451 31268 0
69887 72086 0
79586 96755 1
53589 39098 1
91168 73507 1
49486 64908 0
79460 33062 1
52730 47141 1
51201 46979 0
474 46185 0
87716 4924 1
56680 21098 0
37654 54084 0
69117 52648 1
64332 80845 0
94753 29233 0
28440 84644 0
1206 42718 1
49112 1...

Decoder to Manager

6211 7

result:

points 1.0 Correct, ansewr is 7. Query count = 0

Test #6:

score: 4
Accepted
time: 122ms
memory: 70612kb

Manager to Encoder

2 99944 199888 79431
65545 79431
11424 65545
11424 18074
84424 18074
84424 16649
16649 62282
62282 69347
83837 69347
83837 22505
57281 22505
93579 57281
93579 5051
45223 5051
34538 45223
26827 34538
60170 26827
61375 60170
61375 47328
47328 59752
49791 59752
76552 49791
68880 76552
68328 68880
89755...

Encoder to Manager

1
2 99944 199888
21188 64181 0
501 47879 1
5592 1683 0
86905 2860 0
12145 53835 0
95534 50997 1
37242 2381 1
79112 78318 0
42695 37434 1
58667 54628 0
97436 5577 0
53903 37242 0
37242 73168 1
96099 70716 1
55920 87954 0
10468 18827 1
21562 76838 1
30190 46657 0
31557 66135 1
11836 78096 1
30648 1214...

Manager to Decoder

1
2 99944 199888
21188 64181 0
501 47879 1
5592 1683 0
86905 2860 0
12145 53835 0
95534 50997 1
37242 2381 1
79112 78318 0
42695 37434 1
58667 54628 0
97436 5577 0
53903 37242 0
37242 73168 1
96099 70716 1
55920 87954 0
10468 18827 1
21562 76838 1
30190 46657 0
31557 66135 1
11836 78096 1
30648 1214...

Decoder to Manager

79431 1194

result:

points 1.0 Correct, ansewr is 1194. Query count = 0

Test #7:

score: 4
Accepted
time: 61ms
memory: 65744kb

Manager to Encoder

2 100000 99999 76670
47615 76670
47615 42159
42159 51334
23681 51334
23681 9445
47314 9445
79933 47314
79933 33955
33955 30014
23073 30014
23073 27159
27159 24743
3892 24743
3892 80811
80811 64954
64954 71560
71560 73844
11217 73844
11217 11715
11715 5547
96036 5547
96036 68109
68109 53350
49216 533...

Encoder to Manager

1
2 100000 99999
93379 13280 0
51827 50312 0
67760 84473 1
85055 78256 1
24168 77003 0
61425 84631 1
20317 30453 0
421 10434 1
51169 44538 1
87886 85055 0
39028 58514 0
67257 97836 1
47145 76795 0
37469 42263 0
2315 94964 0
99895 51468 0
89087 33629 0
2586 51867 1
13280 24810 1
85055 84475 1
29070 2...

Manager to Decoder

1
2 100000 99999
93379 13280 0
51827 50312 0
67760 84473 1
85055 78256 1
24168 77003 0
61425 84631 1
20317 30453 0
421 10434 1
51169 44538 1
87886 85055 0
39028 58514 0
67257 97836 1
47145 76795 0
37469 42263 0
2315 94964 0
99895 51468 0
89087 33629 0
2586 51867 1
13280 24810 1
85055 84475 1
29070 2...

Decoder to Manager

76670 1678

result:

points 1.0 Correct, ansewr is 1678. Query count = 0

Test #8:

score: 4
Accepted
time: 54ms
memory: 63576kb

Manager to Encoder

2 100000 99999 88373
88373 33458
91953 88373
29311 88373
88373 26420
88373 62149
32288 88373
88373 47170
43350 88373
44172 88373
88373 60197
88373 93033
64093 88373
88373 80472
88373 71736
88373 45312
88373 7957
88373 80391
88373 63226
88373 10184
88373 99778
32955 88373
32993 88373
88373 83415
7982...

Encoder to Manager

1
2 100000 99999
49240 92902 1
95315 49240 0
52871 49240 0
49240 65187 1
44880 49240 0
49240 13395 1
85858 49240 0
49240 20225 1
49240 94598 1
49240 4675 1
57720 49240 0
49240 2146 1
78948 49240 0
45475 49240 0
49240 40638 1
49240 14411 1
49240 56200 1
49240 54425 1
49240 51056 1
38418 49240 0
49240...

Manager to Decoder

1
2 100000 99999
49240 92902 1
95315 49240 0
52871 49240 0
49240 65187 1
44880 49240 0
49240 13395 1
85858 49240 0
49240 20225 1
49240 94598 1
49240 4675 1
57720 49240 0
49240 2146 1
78948 49240 0
45475 49240 0
49240 40638 1
49240 14411 1
49240 56200 1
49240 54425 1
49240 51056 1
38418 49240 0
49240...

Decoder to Manager

88373 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #3:

score: 4
Accepted

Test #9:

score: 4
Accepted
time: 132ms
memory: 73360kb

Manager to Encoder

3 99940 199880 58427
58427 94075
76269 58427
93325 94075
79768 93325
79768 2256
94075 70259
93325 80136
58427 14366
76269 97508
58427 54567
14723 70259
72733 14366
7474 2256
97508 8756
76269 71501
21736 94075
70259 35686
5094 71501
2256 61685
79768 49333
89914 2256
48170 72733
5094 1122
80136 61166
...

Encoder to Manager

1
3 99940 199880
99742 2020 0
29462 68557 0
44401 30243 0
5526 54801 1
44255 34387 1
65134 44236 1
98835 56543 0
10035 25973 0
27021 98454 0
1899 69768 1
20151 94875 1
60681 8759 0
25929 91442 1
28200 93902 0
1909 32696 0
54637 38490 1
61350 76564 0
76747 12930 0
52656 54153 0
17236 7199 0
74180 345...

Manager to Decoder

1
3 99940 199880
99742 2020 0
29462 68557 0
44401 30243 0
5526 54801 1
44255 34387 1
65134 44236 1
98835 56543 0
10035 25973 0
27021 98454 0
1899 69768 1
20151 94875 1
60681 8759 0
25929 91442 1
28200 93902 0
1909 32696 0
54637 38490 1
61350 76564 0
76747 12930 0
52656 54153 0
17236 7199 0
74180 345...

Decoder to Manager

58427 9

result:

points 1.0 Correct, ansewr is 9. Query count = 0

Test #10:

score: 4
Accepted
time: 133ms
memory: 72480kb

Manager to Encoder

3 99987 199974 10770
10770 78959
78959 7940
7940 61828
61828 37508
23791 37508
23791 96581
49566 96581
49566 34732
78309 34732
78309 72759
72759 84737
60829 84737
60829 23399
7334 23399
88563 7334
82587 88563
82587 53908
53908 38353
20167 38353
20167 13425
13425 53634
53634 29481
29481 53572
53572 6...

Encoder to Manager

1
3 99987 199974
77923 21862 1
39160 32443 0
27472 21538 1
16688 21862 1
92605 23748 1
75376 2180 1
21862 2041 0
47448 54166 1
27641 77984 1
4303 21862 1
71476 93980 1
14643 21862 1
87961 69122 0
64936 28908 1
70518 27472 0
50144 72044 0
91296 53919 0
15865 58650 1
15505 8451 0
69748 16208 1
53923 8...

Manager to Decoder

1
3 99987 199974
77923 21862 1
39160 32443 0
27472 21538 1
16688 21862 1
92605 23748 1
75376 2180 1
21862 2041 0
47448 54166 1
27641 77984 1
4303 21862 1
71476 93980 1
14643 21862 1
87961 69122 0
64936 28908 1
70518 27472 0
50144 72044 0
91296 53919 0
15865 58650 1
15505 8451 0
69748 16208 1
53923 8...

Decoder to Manager

10770 1350

result:

points 1.0 Correct, ansewr is 1350. Query count = 0

Test #11:

score: 4
Accepted
time: 60ms
memory: 66376kb

Manager to Encoder

3 100000 99999 64549
64549 72815
82129 72815
82129 51075
84774 51075
84774 68047
55745 68047
55745 95801
25239 95801
99315 25239
99315 30472
30472 48924
48924 66505
14770 66505
5515 14770
5515 21810
47189 21810
47189 99860
99860 33580
75230 33580
75230 95915
95915 4385
97785 4385
13849 97785
49592 1...

Encoder to Manager

1
3 100000 99999
50160 84886 0
19490 21338 1
37160 9857 1
81963 30777 1
59678 48008 1
37539 68843 0
99681 23243 1
23243 62999 0
86300 9783 0
2544 83140 0
40096 48432 0
75733 69304 0
98787 92837 0
62269 75733 1
23243 69938 0
33872 30024 1
75733 39693 0
12991 89438 1
23243 46957 0
92002 48819 1
73686 ...

Manager to Decoder

1
3 100000 99999
50160 84886 0
19490 21338 1
37160 9857 1
81963 30777 1
59678 48008 1
37539 68843 0
99681 23243 1
23243 62999 0
86300 9783 0
2544 83140 0
40096 48432 0
75733 69304 0
98787 92837 0
62269 75733 1
23243 69938 0
33872 30024 1
75733 39693 0
12991 89438 1
23243 46957 0
92002 48819 1
73686 ...

Decoder to Manager

64549 2225

result:

points 1.0 Correct, ansewr is 2225. Query count = 0

Test #12:

score: 4
Accepted
time: 52ms
memory: 67092kb

Manager to Encoder

3 100000 99999 91796
91796 81340
99592 91796
91796 67431
91796 26910
91796 71450
91796 50453
48677 91796
48130 91796
77617 91796
91796 24745
91796 91295
91796 42954
91796 53084
91796 2315
26144 91796
91796 83974
91796 33161
32627 91796
17066 91796
55581 91796
91796 46255
91796 52494
91796 60408
6246...

Encoder to Manager

1
3 100000 99999
70334 3647 1
70334 24296 1
45349 70334 0
98520 70334 0
70334 58409 1
3086 70334 0
19270 70334 0
70334 4074 1
70334 52627 1
46882 70334 0
70334 62689 1
38980 70334 0
70334 71235 1
43790 70334 0
93867 70334 0
64611 70334 0
70334 51920 1
12112 70334 0
44219 70334 0
78230 70334 0
70334 ...

Manager to Decoder

1
3 100000 99999
70334 3647 1
70334 24296 1
45349 70334 0
98520 70334 0
70334 58409 1
3086 70334 0
19270 70334 0
70334 4074 1
70334 52627 1
46882 70334 0
70334 62689 1
38980 70334 0
70334 71235 1
43790 70334 0
93867 70334 0
64611 70334 0
70334 51920 1
12112 70334 0
44219 70334 0
78230 70334 0
70334 ...

Decoder to Manager

91796 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #4:

score: 4
Accepted

Test #13:

score: 4
Accepted
time: 675ms
memory: 193308kb

Manager to Encoder

4 999990 999989 457874
1 0
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50...

Encoder to Manager

1
4 999990 999989
65281 864974 0
577362 23331 1
473922 151414 0
11759 561344 1
597526 564488 1
68665 345745 0
373305 176501 1
243839 450071 1
485659 167312 1
658335 235328 1
51688 343795 0
74086 15885 0
746528 176993 1
308342 843374 1
988888 522065 0
277908 775974 0
890577 236462 1
879334 247422 1
3...

Manager to Decoder

1
4 999990 999989
65281 864974 0
577362 23331 1
473922 151414 0
11759 561344 1
597526 564488 1
68665 345745 0
373305 176501 1
243839 450071 1
485659 167312 1
658335 235328 1
51688 343795 0
74086 15885 0
746528 176993 1
308342 843374 1
988888 522065 0
277908 775974 0
890577 236462 1
879334 247422 1
3...

Decoder to Manager

457874 2060

result:

points 1.0 Correct, ansewr is 2060. Query count = 0

Test #14:

score: 4
Accepted
time: 677ms
memory: 191536kb

Manager to Encoder

4 1000000 999999 0
1 0
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
...

Encoder to Manager

1
4 1000000 999999
728519 489736 1
872809 978865 0
68151 301907 1
22049 876322 1
528740 955251 0
387158 539297 0
90095 27089 0
894101 701330 1
900294 770623 0
826378 921247 1
825851 526883 0
947728 182666 1
851041 850730 1
842717 906439 1
490546 362907 0
814634 416452 0
940524 914505 1
978545 841888...

Manager to Decoder

1
4 1000000 999999
728519 489736 1
872809 978865 0
68151 301907 1
22049 876322 1
528740 955251 0
387158 539297 0
90095 27089 0
894101 701330 1
900294 770623 0
826378 921247 1
825851 526883 0
947728 182666 1
851041 850730 1
842717 906439 1
490546 362907 0
814634 416452 0
940524 914505 1
978545 841888...

Decoder to Manager

0 3059

result:

points 1.0 Correct, ansewr is 3059. Query count = 0

Subtask #5:

score: 4
Accepted

Test #15:

score: 4
Accepted
time: 645ms
memory: 191640kb

Manager to Encoder

5 999901 999900 740792
1 0
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50...

Encoder to Manager

1
5 999901 999900
363385 890770 0
426371 763156 0
144062 242841 0
70696 173451 1
243972 476109 0
83627 654240 0
361249 806212 1
398107 718149 0
302405 84786 0
873887 513833 0
127887 461849 1
771352 57725 1
383273 985273 1
510480 346824 1
436470 826956 1
128576 579131 0
37424 199905 0
714751 158252 1...

Manager to Decoder

1
5 999901 999900
363385 890770 0
426371 763156 0
144062 242841 0
70696 173451 1
243972 476109 0
83627 654240 0
361249 806212 1
398107 718149 0
302405 84786 0
873887 513833 0
127887 461849 1
771352 57725 1
383273 985273 1
510480 346824 1
436470 826956 1
128576 579131 0
37424 199905 0
714751 158252 1...

Decoder to Manager

740792 562

result:

points 1.0 Correct, ansewr is 562. Query count = 0

Test #16:

score: 4
Accepted
time: 675ms
memory: 193000kb

Manager to Encoder

5 1000000 999999 0
1 0
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
...

Encoder to Manager

1
5 1000000 999999
839436 641778 1
330023 172697 0
221692 526132 0
672397 372418 1
745305 863085 0
455065 455823 1
130394 174270 0
128210 368808 1
262499 240976 0
363216 254580 1
373762 491627 1
566958 994528 1
496514 494422 1
781074 868834 0
457103 314067 1
985574 562398 0
325541 851055 1
751406 95...

Manager to Decoder

1
5 1000000 999999
839436 641778 1
330023 172697 0
221692 526132 0
672397 372418 1
745305 863085 0
455065 455823 1
130394 174270 0
128210 368808 1
262499 240976 0
363216 254580 1
373762 491627 1
566958 994528 1
496514 494422 1
781074 868834 0
457103 314067 1
985574 562398 0
325541 851055 1
751406 95...

Decoder to Manager

0 1100

result:

points 1.0 Correct, ansewr is 1100. Query count = 0

Subtask #6:

score: 4
Accepted

Test #17:

score: 4
Accepted
time: 697ms
memory: 119944kb

Manager to Encoder

6 999917 999916 413744
1 0
2 1
3 1
4 3
5 0
6 2
7 6
8 0
9 2
10 7
11 6
12 5
13 3
14 5
15 13
16 13
17 8
18 14
19 6
20 5
21 2
22 8
23 11
24 4
25 13
26 13
27 23
28 3
29 22
30 12
31 10
32 15
33 11
34 9
35 17
36 16
37 14
38 5
39 26
40 5
41 13
42 27
43 4
44 9
45 22
46 34
47 6
48 16
49 17
50 24
51 17
52 36
5...

Encoder to Manager

1
6 999917 999916
376618 28948 0
31245 312337 0
557782 254241 0
70005 414124 0
936153 810579 0
892718 976672 0
920779 265961 0
889632 122904 0
580233 282023 0
607940 327961 0
425460 752305 0
246884 279830 0
487568 52687 0
591578 30012 0
813753 802038 0
564247 402396 0
977459 272246 0
949566 403268 0...

Manager to Decoder

1
6 999917 999916
376618 28948 0
31245 312337 0
557782 254241 0
70005 414124 0
936153 810579 0
892718 976672 0
920779 265961 0
889632 122904 0
580233 282023 0
607940 327961 0
425460 752305 0
246884 279830 0
487568 52687 0
591578 30012 0
813753 802038 0
564247 402396 0
977459 272246 0
949566 403268 0...

Decoder to Manager

413744 1003

result:

points 1.0 Correct, ansewr is 1003. Query count = 0

Test #18:

score: 4
Accepted
time: 721ms
memory: 118448kb

Manager to Encoder

6 1000000 999999 0
1 0
2 0
3 2
4 2
5 1
6 4
7 3
8 3
9 5
10 6
11 9
12 6
13 1
14 7
15 8
16 0
17 5
18 4
19 15
20 7
21 3
22 1
23 9
24 14
25 17
26 15
27 25
28 11
29 4
30 19
31 24
32 20
33 4
34 26
35 23
36 14
37 5
38 28
39 15
40 1
41 18
42 36
43 23
44 43
45 10
46 19
47 7
48 0
49 7
50 40
51 28
52 22
53 31
5...

Encoder to Manager

1
6 1000000 999999
816077 202405 0
594860 685818 0
166099 307186 0
764988 664691 0
193584 659136 0
529942 98900 0
605099 7132 0
385104 812764 0
934674 732369 0
750497 166243 0
937871 348644 0
267526 125053 0
702325 683317 0
355541 108994 0
437537 741678 0
423085 572147 0
664301 166235 0
478935 64072...

Manager to Decoder

1
6 1000000 999999
816077 202405 0
594860 685818 0
166099 307186 0
764988 664691 0
193584 659136 0
529942 98900 0
605099 7132 0
385104 812764 0
934674 732369 0
750497 166243 0
937871 348644 0
267526 125053 0
702325 683317 0
355541 108994 0
437537 741678 0
423085 572147 0
664301 166235 0
478935 64072...

Decoder to Manager

0 1871

result:

points 1.0 Correct, ansewr is 1871. Query count = 0

Subtask #7:

score: 4
Accepted

Test #19:

score: 4
Accepted
time: 712ms
memory: 119776kb

Manager to Encoder

7 999961 999960 779092
1 0
2 1
3 2
4 3
5 2
6 0
7 6
8 0
9 6
10 6
11 1
12 10
13 9
14 1
15 11
16 1
17 7
18 17
19 1
20 19
21 13
22 7
23 9
24 2
25 19
26 1
27 17
28 21
29 2
30 5
31 10
32 24
33 29
34 25
35 18
36 14
37 19
38 21
39 22
40 35
41 33
42 5
43 12
44 22
45 12
46 31
47 11
48 12
49 30
50 25
51 9
52 3...

Encoder to Manager

1
7 999961 999960
939052 241673 0
834260 153165 0
184571 426917 0
793515 753906 0
565440 185584 0
39158 950708 0
351325 253348 0
215188 143689 0
230280 435682 0
481498 529750 0
987258 706076 0
848920 601314 0
278048 190908 0
908401 346977 0
449017 783904 0
226987 340476 0
394002 468988 0
759691 3571...

Manager to Decoder

1
7 999961 999960
939052 241673 0
834260 153165 0
184571 426917 0
793515 753906 0
565440 185584 0
39158 950708 0
351325 253348 0
215188 143689 0
230280 435682 0
481498 529750 0
987258 706076 0
848920 601314 0
278048 190908 0
908401 346977 0
449017 783904 0
226987 340476 0
394002 468988 0
759691 3571...

Decoder to Manager

779092 1849

result:

points 1.0 Correct, ansewr is 1849. Query count = 0

Test #20:

score: 4
Accepted
time: 701ms
memory: 119756kb

Manager to Encoder

7 1000000 999999 0
1 0
2 1
3 1
4 2
5 4
6 1
7 4
8 2
9 0
10 2
11 0
12 6
13 5
14 8
15 13
16 8
17 15
18 6
19 4
20 0
21 8
22 18
23 17
24 20
25 9
26 8
27 6
28 16
29 24
30 29
31 21
32 21
33 10
34 8
35 1
36 7
37 29
38 35
39 0
40 37
41 38
42 23
43 33
44 37
45 11
46 45
47 31
48 23
49 42
50 18
51 39
52 41
53 2...

Encoder to Manager

1
7 1000000 999999
644529 196486 0
287252 377364 0
427324 686831 0
403799 962366 0
645239 131391 0
509921 977484 0
417034 795976 0
938797 373426 0
69513 95516 0
298449 208444 0
158785 864589 0
769230 679414 0
395367 372622 0
682832 525417 0
136626 856453 0
130519 435687 0
177862 424476 0
119890 1261...

Manager to Decoder

1
7 1000000 999999
644529 196486 0
287252 377364 0
427324 686831 0
403799 962366 0
645239 131391 0
509921 977484 0
417034 795976 0
938797 373426 0
69513 95516 0
298449 208444 0
158785 864589 0
769230 679414 0
395367 372622 0
682832 525417 0
136626 856453 0
130519 435687 0
177862 424476 0
119890 1261...

Decoder to Manager

0 743

result:

points 1.0 Correct, ansewr is 743. Query count = 0

Subtask #8:

score: 4
Accepted

Test #21:

score: 4
Accepted
time: 725ms
memory: 119812kb

Manager to Encoder

8 999907 999906 964440
1 0
2 0
3 2
4 2
5 0
6 0
7 4
8 3
9 6
10 8
11 3
12 5
13 12
14 7
15 7
16 15
17 12
18 9
19 10
20 10
21 6
22 21
23 11
24 7
25 24
26 0
27 19
28 10
29 16
30 5
31 0
32 18
33 11
34 15
35 21
36 23
37 29
38 37
39 28
40 1
41 38
42 1
43 30
44 5
45 39
46 27
47 12
48 12
49 42
50 40
51 6
52 3...

Encoder to Manager

1
8 999907 999906
925141 417990 0
241822 398765 0
494613 470465 0
965811 306753 0
940798 24525 0
496140 10016 0
30580 705308 0
424633 154729 0
152610 818946 0
388379 831662 0
449659 374154 0
605148 180837 0
199915 210736 0
333457 636076 0
756349 76619 0
657239 373298 0
604210 528454 0
596859 985946 ...

Manager to Decoder

1
8 999907 999906
925141 417990 0
241822 398765 0
494613 470465 0
965811 306753 0
940798 24525 0
496140 10016 0
30580 705308 0
424633 154729 0
152610 818946 0
388379 831662 0
449659 374154 0
605148 180837 0
199915 210736 0
333457 636076 0
756349 76619 0
657239 373298 0
604210 528454 0
596859 985946 ...

Decoder to Manager

964440 2227

result:

points 1.0 Correct, ansewr is 2227. Query count = 0

Test #22:

score: 4
Accepted
time: 743ms
memory: 119856kb

Manager to Encoder

8 1000000 999999 0
1 0
2 0
3 1
4 3
5 4
6 0
7 2
8 6
9 5
10 7
11 7
12 2
13 4
14 9
15 12
16 6
17 11
18 2
19 13
20 5
21 16
22 7
23 13
24 5
25 0
26 3
27 15
28 1
29 4
30 11
31 16
32 18
33 3
34 6
35 13
36 10
37 14
38 11
39 38
40 15
41 10
42 7
43 2
44 31
45 21
46 28
47 0
48 15
49 12
50 35
51 9
52 2
53 15
54...

Encoder to Manager

1
8 1000000 999999
39647 185816 0
796707 605141 0
537387 447916 0
522453 952771 0
336567 606347 0
54778 845994 0
582182 877708 0
976470 866578 0
732570 229412 0
371483 238506 0
583341 328760 0
247548 284009 0
751919 477038 0
78248 607333 0
801212 685216 0
533854 499045 0
837666 559157 0
172652 13845...

Manager to Decoder

1
8 1000000 999999
39647 185816 0
796707 605141 0
537387 447916 0
522453 952771 0
336567 606347 0
54778 845994 0
582182 877708 0
976470 866578 0
732570 229412 0
371483 238506 0
583341 328760 0
247548 284009 0
751919 477038 0
78248 607333 0
801212 685216 0
533854 499045 0
837666 559157 0
172652 13845...

Decoder to Manager

0 1925

result:

points 1.0 Correct, ansewr is 1925. Query count = 0

Subtask #9:

score: 0
Wrong Answer

Test #23:

score: 4
Accepted
time: 827ms
memory: 120264kb

Manager to Encoder

9 999957 999956 842276
1 0
2 0
3 1
4 2
5 3
6 3
7 6
8 2
9 3
10 3
11 4
12 4
13 6
14 9
15 14
16 6
17 10
18 4
19 4
20 12
21 16
22 10
23 19
24 21
25 24
26 7
27 0
28 16
29 6
30 27
31 19
32 9
33 29
34 29
35 8
36 27
37 4
38 21
39 37
40 28
41 25
42 24
43 33
44 35
45 1
46 20
47 20
48 5
49 15
50 16
51 18
52 44...

Encoder to Manager

1
9 999957 999956
211395 350478 0
902448 149742 0
733039 947992 0
270505 986433 0
841453 624213 0
47522 890859 0
986701 860894 0
294438 537189 0
457954 270545 0
872892 154437 0
443993 93805 0
93596 131674 0
240191 18408 0
369788 840410 0
506161 785758 0
613964 62571 0
341034 661607 0
129167 786287 0...

Manager to Decoder

1
9 999957 999956
211395 350478 0
902448 149742 0
733039 947992 0
270505 986433 0
841453 624213 0
47522 890859 0
986701 860894 0
294438 537189 0
457954 270545 0
872892 154437 0
443993 93805 0
93596 131674 0
240191 18408 0
369788 840410 0
506161 785758 0
613964 62571 0
341034 661607 0
129167 786287 0...

Decoder to Manager

842276 31

result:

points 1.0 Correct, ansewr is 31. Query count = 0

Test #24:

score: 0
Wrong Answer
time: 800ms
memory: 142368kb

Manager to Encoder

9 1000000 999999 653835
642942 653835
642942 676614
676614 573868
332225 573868
296580 332225
296580 193598
193598 257659
788021 257659
788021 863964
863964 895790
895790 328102
328102 540506
834697 540506
260346 834697
260346 591659
591659 536320
536320 399260
399260 99525
99525 468785
468785 76384...

Encoder to Manager

1
9 1000000 999999
249315 154657 1
51021 498904 0
263429 914032 0
297311 200929 0
349525 25014 1
417310 954795 1
200929 987771 1
242915 454351 0
199831 200929 0
878571 200929 0
435042 177342 1
637099 695101 0
490307 475027 0
75747 159708 1
114936 203976 1
498904 832553 1
617674 224966 1
699106 20092...

Manager to Decoder

1
9 1000000 999999
249315 154657 1
51021 498904 0
263429 914032 0
297311 200929 0
349525 25014 1
417310 954795 1
200929 987771 1
242915 454351 0
199831 200929 0
878571 200929 0
435042 177342 1
637099 695101 0
490307 475027 0
75747 159708 1
114936 203976 1
498904 832553 1
617674 224966 1
699106 20092...

Decoder to Manager

ERR: Too many discover!

result:

wrong output format Expected integer, but "ERR:" found

Subtask #10:

score: 0
Wrong Answer

Test #27:

score: 4
Accepted
time: 850ms
memory: 121428kb

Manager to Encoder

10 999998 999997 311774
1 0
2 0
3 1
4 0
5 1
6 4
7 1
8 2
9 7
10 0
11 3
12 6
13 4
14 11
15 5
16 2
17 4
18 14
19 15
20 14
21 5
22 21
23 6
24 18
25 15
26 23
27 18
28 9
29 11
30 28
31 4
32 0
33 31
34 15
35 1
36 35
37 21
38 10
39 35
40 26
41 24
42 28
43 21
44 33
45 17
46 11
47 1
48 13
49 10
50 36
51 3
52 ...

Encoder to Manager

1
10 999998 999997
747271 468373 0
448478 715209 0
559329 744780 0
712938 517620 0
790196 13340 0
738159 32480 0
54775 327457 0
227993 457552 0
182826 157328 0
566494 863943 0
414947 742184 0
329295 241654 0
30631 169597 0
113016 143823 0
975678 67617 0
145083 624252 0
20924 88632 0
193475 345776 0
...

Manager to Decoder

1
10 999998 999997
747271 468373 0
448478 715209 0
559329 744780 0
712938 517620 0
790196 13340 0
738159 32480 0
54775 327457 0
227993 457552 0
182826 157328 0
566494 863943 0
414947 742184 0
329295 241654 0
30631 169597 0
113016 143823 0
975678 67617 0
145083 624252 0
20924 88632 0
193475 345776 0
...

Decoder to Manager

311774 24

result:

points 1.0 Correct, ansewr is 24. Query count = 0

Test #28:

score: 0
Wrong Answer
time: 836ms
memory: 138776kb

Manager to Encoder

10 1000000 999999 795266
572809 795266
239854 572809
4150 239854
4150 790196
790196 942169
340843 942169
340843 299345
288432 299345
288432 982590
982590 435379
815378 435379
815378 410713
764289 410713
764289 24078
670908 24078
211617 670908
211617 413691
413691 826676
275621 826676
859376 275621
4...

Encoder to Manager

1
10 1000000 999999
623949 884530 1
620145 736489 1
743254 793842 1
866721 471893 0
779483 35773 0
748161 334582 1
127092 35773 0
943239 402635 0
433534 176725 1
35773 548469 1
830213 736489 1
736489 357108 0
254487 839837 1
335406 817308 0
815474 898975 0
842520 436524 1
957467 128082 0
605306 6508...

Manager to Decoder

1
10 1000000 999999
623949 884530 1
620145 736489 1
743254 793842 1
866721 471893 0
779483 35773 0
748161 334582 1
127092 35773 0
943239 402635 0
433534 176725 1
35773 548469 1
830213 736489 1
736489 357108 0
254487 839837 1
335406 817308 0
815474 898975 0
842520 436524 1
957467 128082 0
605306 6508...

Decoder to Manager

ERR: Too many discover!

result:

wrong output format Expected integer, but "ERR:" found

Subtask #11:

score: 0
Wrong Answer

Test #31:

score: 4
Accepted
time: 818ms
memory: 120440kb

Manager to Encoder

11 999931 999930 58080
1 0
2 0
3 0
4 1
5 3
6 5
7 0
8 6
9 5
10 4
11 5
12 2
13 0
14 6
15 0
16 3
17 5
18 2
19 0
20 7
21 19
22 11
23 13
24 8
25 3
26 3
27 25
28 5
29 24
30 26
31 3
32 24
33 17
34 14
35 5
36 33
37 19
38 20
39 4
40 31
41 18
42 27
43 4
44 17
45 31
46 15
47 6
48 46
49 23
50 34
51 5
52 15
53 1...

Encoder to Manager

1
11 999931 999930
793084 156604 0
586700 792192 0
925302 539431 0
383749 131931 0
394725 874421 0
231052 149260 0
791941 417282 0
676415 750718 0
284453 11101 0
486995 874137 0
805411 324242 0
185801 816130 0
319364 268172 0
686110 807556 0
750348 599477 0
649864 396292 0
438910 501258 0
606477 940...

Manager to Decoder

1
11 999931 999930
793084 156604 0
586700 792192 0
925302 539431 0
383749 131931 0
394725 874421 0
231052 149260 0
791941 417282 0
676415 750718 0
284453 11101 0
486995 874137 0
805411 324242 0
185801 816130 0
319364 268172 0
686110 807556 0
750348 599477 0
649864 396292 0
438910 501258 0
606477 940...

Decoder to Manager

58080 22

result:

points 1.0 Correct, ansewr is 22. Query count = 0

Test #32:

score: 0
Wrong Answer
time: 842ms
memory: 153196kb

Manager to Encoder

11 1000000 999999 437264
438180 437264
438180 501839
673993 501839
673993 130627
130627 181051
181051 944288
944288 193767
193767 259646
259646 175338
175338 407554
407554 942547
942547 626899
978814 626899
720766 978814
313842 720766
374055 313842
374055 735936
735936 334446
334446 816321
657464 81...

Encoder to Manager

1
11 1000000 999999
787889 17802 1
224714 994097 0
758592 694589 0
595077 787889 0
902584 899077 0
483778 787889 0
346896 257806 0
679433 438980 1
970385 840303 0
161594 136778 0
787889 869777 1
261771 787889 0
843500 360480 1
787889 143273 1
836926 938987 1
787889 276971 1
39151 390807 0
614353 712...

Manager to Decoder

1
11 1000000 999999
787889 17802 1
224714 994097 0
758592 694589 0
595077 787889 0
902584 899077 0
483778 787889 0
346896 257806 0
679433 438980 1
970385 840303 0
161594 136778 0
787889 869777 1
261771 787889 0
843500 360480 1
787889 143273 1
836926 938987 1
787889 276971 1
39151 390807 0
614353 712...

Decoder to Manager

ERR: Too many discover!

result:

wrong output format Expected integer, but "ERR:" found

Subtask #12:

score: 0
Wrong Answer

Test #35:

score: 4
Accepted
time: 874ms
memory: 121400kb

Manager to Encoder

12 999960 999959 636223
1 0
2 1
3 2
4 3
5 0
6 4
7 2
8 1
9 6
10 1
11 8
12 6
13 5
14 8
15 9
16 15
17 16
18 4
19 7
20 0
21 15
22 6
23 7
24 16
25 16
26 5
27 1
28 9
29 22
30 17
31 3
32 11
33 21
34 2
35 14
36 28
37 12
38 28
39 19
40 9
41 6
42 36
43 35
44 9
45 10
46 34
47 28
48 37
49 36
50 10
51 4
52 39
53...

Encoder to Manager

1
12 999960 999959
126028 589343 0
700296 861909 0
209521 212759 0
349213 334173 0
664836 60392 0
335046 22330 0
540157 59229 0
308884 762854 0
70385 910776 0
817838 591778 0
711236 485120 0
325752 864648 0
450475 761636 0
338814 27249 0
505180 651562 0
423892 923166 0
344397 334176 0
398250 523696 ...

Manager to Decoder

1
12 999960 999959
126028 589343 0
700296 861909 0
209521 212759 0
349213 334173 0
664836 60392 0
335046 22330 0
540157 59229 0
308884 762854 0
70385 910776 0
817838 591778 0
711236 485120 0
325752 864648 0
450475 761636 0
338814 27249 0
505180 651562 0
423892 923166 0
344397 334176 0
398250 523696 ...

Decoder to Manager

636223 26

result:

points 1.0 Correct, ansewr is 26. Query count = 0

Test #36:

score: 0
Wrong Answer
time: 856ms
memory: 145256kb

Manager to Encoder

12 1000000 999999 939495
690295 939495
690295 361400
361400 941380
973228 941380
293932 973228
466445 293932
466445 651372
91039 651372
91039 765964
765964 246496
207921 246496
607164 207921
207982 607164
207982 594387
147743 594387
708771 147743
607404 708771
607404 551261
509004 551261
509004 6400...

Encoder to Manager

1
12 1000000 999999
66743 503405 1
638438 725957 1
106641 163386 1
930973 725957 1
354403 201743 1
742865 319542 0
302920 346203 1
319542 436346 1
750772 815244 0
725957 186359 0
852070 785479 0
221140 529083 0
707781 710080 1
672160 856804 1
725957 377826 0
6980 8339 0
319542 824355 1
24541 408950 ...

Manager to Decoder

1
12 1000000 999999
66743 503405 1
638438 725957 1
106641 163386 1
930973 725957 1
354403 201743 1
742865 319542 0
302920 346203 1
319542 436346 1
750772 815244 0
725957 186359 0
852070 785479 0
221140 529083 0
707781 710080 1
672160 856804 1
725957 377826 0
6980 8339 0
319542 824355 1
24541 408950 ...

Decoder to Manager

ERR: Too many discover!

result:

wrong output format Expected integer, but "ERR:" found

Subtask #13:

score: 4
Accepted

Test #39:

score: 4
Accepted
time: 855ms
memory: 120184kb

Manager to Encoder

13 999903 999902 761893
1 0
2 1
3 2
4 3
5 1
6 2
7 2
8 4
9 8
10 2
11 3
12 8
13 9
14 3
15 2
16 1
17 9
18 16
19 10
20 13
21 17
22 7
23 8
24 20
25 16
26 10
27 25
28 27
29 12
30 23
31 14
32 10
33 0
34 13
35 6
36 34
37 21
38 18
39 2
40 32
41 24
42 32
43 17
44 14
45 12
46 35
47 21
48 45
49 30
50 15
51 2
52...

Encoder to Manager

1
13 999903 999902
699453 957127 0
717316 760764 0
87958 339281 0
758337 952887 0
5366 169789 0
389690 958796 0
830167 825032 0
989883 676815 0
427647 834277 0
9634 311592 0
655997 668048 0
117304 362088 0
405053 928229 0
267823 134039 0
720669 779811 0
553911 961244 0
20098 332778 0
851101 661056 0...

Manager to Decoder

1
13 999903 999902
699453 957127 0
717316 760764 0
87958 339281 0
758337 952887 0
5366 169789 0
389690 958796 0
830167 825032 0
989883 676815 0
427647 834277 0
9634 311592 0
655997 668048 0
117304 362088 0
405053 928229 0
267823 134039 0
720669 779811 0
553911 961244 0
20098 332778 0
851101 661056 0...

Decoder to Manager

761893 36

result:

points 1.0 Correct, ansewr is 36. Query count = 0

Test #40:

score: 4
Accepted
time: 843ms
memory: 147592kb

Manager to Encoder

13 1000000 999999 845403
554487 845403
554487 745246
828285 745246
828285 69334
839089 69334
839089 352085
352085 215636
215636 461616
128767 461616
128767 801026
801026 152412
316048 152412
335877 316048
335877 754317
299498 754317
611119 299498
479234 611119
479234 801367
801367 586974
273914 5869...

Encoder to Manager

1
13 1000000 999999
800011 664454 0
84343 462441 1
714430 823743 0
123337 306159 0
29007 957118 0
759935 301295 1
687880 117701 1
623578 179972 0
312547 313368 1
233174 787665 0
794302 604552 1
300888 996320 0
825087 225123 1
832643 955598 0
844757 421760 1
877265 520409 0
389602 556480 1
866405 459...

Manager to Decoder

1
13 1000000 999999
800011 664454 0
84343 462441 1
714430 823743 0
123337 306159 0
29007 957118 0
759935 301295 1
687880 117701 1
623578 179972 0
312547 313368 1
233174 787665 0
794302 604552 1
300888 996320 0
825087 225123 1
832643 955598 0
844757 421760 1
877265 520409 0
389602 556480 1
866405 459...

Decoder to Manager

845403 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Test #41:

score: 4
Accepted
time: 839ms
memory: 140508kb

Manager to Encoder

13 1000000 999999 666811
666811 1514
912143 1514
652843 912143
652843 924686
3742 924686
3742 163418
163418 297879
421486 297879
474794 421486
616180 474794
656866 616180
656866 843653
843653 765029
493851 765029
655911 493851
655911 298980
298980 283970
403891 283970
755829 403891
755829 674375
674...

Encoder to Manager

1
13 1000000 999999
554764 46892 0
767621 456053 1
903741 767621 0
380560 114603 1
767621 541745 1
98482 489300 1
516835 932435 0
907786 31467 0
380560 316347 1
494441 804123 0
627484 380560 0
380560 166369 1
359334 609654 0
373802 767621 0
899749 506945 0
543732 580111 1
516360 487340 0
515207 4542...

Manager to Decoder

1
13 1000000 999999
554764 46892 0
767621 456053 1
903741 767621 0
380560 114603 1
767621 541745 1
98482 489300 1
516835 932435 0
907786 31467 0
380560 316347 1
494441 804123 0
627484 380560 0
380560 166369 1
359334 609654 0
373802 767621 0
899749 506945 0
543732 580111 1
516360 487340 0
515207 4542...

Decoder to Manager

666811 2118

result:

points 1.0 Correct, ansewr is 2118. Query count = 0

Test #42:

score: 4
Accepted
time: 759ms
memory: 126416kb

Manager to Encoder

13 1000000 999999 193175
193175 672794
694750 193175
193175 643291
193175 366953
178183 193175
734722 193175
193175 490155
193175 500252
193175 830021
193175 940020
193175 33323
193175 135975
193175 847894
197833 193175
664550 193175
684179 193175
143731 193175
193175 1948
493504 193175
193175 74291...

Encoder to Manager

1
13 1000000 999999
608640 229710 1
608640 669886 1
608640 894915 1
608640 91361 1
608640 468762 1
608640 767423 1
646353 608640 0
608640 210152 1
608640 392832 1
608640 404945 1
608640 871140 1
399317 608640 0
608640 504976 1
149574 608640 0
608640 359524 1
359747 608640 0
608640 554950 1
592968 60...

Manager to Decoder

1
13 1000000 999999
608640 229710 1
608640 669886 1
608640 894915 1
608640 91361 1
608640 468762 1
608640 767423 1
646353 608640 0
608640 210152 1
608640 392832 1
608640 404945 1
608640 871140 1
399317 608640 0
608640 504976 1
149574 608640 0
608640 359524 1
359747 608640 0
608640 554950 1
592968 60...

Decoder to Manager

193175 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #14:

score: 4
Accepted

Test #43:

score: 4
Accepted
time: 2048ms
memory: 212676kb

Manager to Encoder

14 999070 1998140 376496
81367 376496
742278 81367
742278 598388
742278 296638
742278 146179
352306 296638
146179 66531
66531 921142
536455 376496
352306 264260
320745 352306
81367 905516
756472 536455
25339 921142
993294 352306
296638 779072
352306 159366
188989 742278
623522 921142
627347 993294
2...

Encoder to Manager

1
14 999070 1998140
926754 725212 0
932410 960882 0
171579 113210 0
145285 425865 1
769790 133161 1
881526 135596 1
754166 485296 1
260550 603644 1
156715 314194 1
249713 991573 0
87344 996849 0
549616 793449 0
126608 363307 0
358419 633723 1
560500 876288 1
300693 91693 0
866668 134628 0
492405 889...

Manager to Decoder

1
14 999070 1998140
926754 725212 0
932410 960882 0
171579 113210 0
145285 425865 1
769790 133161 1
881526 135596 1
754166 485296 1
260550 603644 1
156715 314194 1
249713 991573 0
87344 996849 0
549616 793449 0
126608 363307 0
358419 633723 1
560500 876288 1
300693 91693 0
866668 134628 0
492405 889...

Decoder to Manager

376496 9

result:

points 1.0 Correct, ansewr is 9. Query count = 0

Test #44:

score: 4
Accepted
time: 2102ms
memory: 187744kb

Manager to Encoder

14 999986 1999972 148925
467566 148925
407083 467566
407083 904197
904197 489710
100231 489710
100231 410047
441954 410047
348427 441954
795280 348427
795280 811291
811291 274403
319561 274403
853441 319561
853441 970648
7307 970648
769565 7307
693516 769565
552073 693516
2924 552073
925751 2924
796...

Encoder to Manager

1
14 999986 1999972
471 706777 0
642651 805956 1
79918 477155 1
438435 222758 1
28923 230460 1
436911 668316 1
537097 301804 1
15099 357748 0
876349 721349 1
710660 511190 1
917971 134808 0
746824 148381 0
90983 913582 0
379226 243204 1
349532 989488 1
450022 842220 1
651024 700773 1
484408 80616 1
...

Manager to Decoder

1
14 999986 1999972
471 706777 0
642651 805956 1
79918 477155 1
438435 222758 1
28923 230460 1
436911 668316 1
537097 301804 1
15099 357748 0
876349 721349 1
710660 511190 1
917971 134808 0
746824 148381 0
90983 913582 0
379226 243204 1
349532 989488 1
450022 842220 1
651024 700773 1
484408 80616 1
...

Decoder to Manager

148925 787

result:

points 1.0 Correct, ansewr is 787. Query count = 0

Test #45:

score: 4
Accepted
time: 739ms
memory: 125992kb

Manager to Encoder

14 1000000 999999 466775
466775 685186
558358 466775
466775 753594
987776 466775
466775 365683
81736 466775
466775 757343
466775 296317
466775 839229
83687 466775
466775 571990
466775 563794
466775 304094
491174 466775
466775 345566
449758 466775
466775 444118
466775 828243
491534 466775
466775 9106...

Encoder to Manager

1
14 1000000 999999
309353 725145 1
524396 797317 0
701605 837560 0
754995 856894 0
887052 916415 0
485501 239485 0
321664 326379 0
500994 319512 1
718157 556831 1
293469 206371 1
155721 78140 0
938087 266534 1
359211 352656 1
573159 987662 0
318001 723055 1
5850 800134 1
649697 401641 0
159760 5730...

Manager to Decoder

1
14 1000000 999999
309353 725145 1
524396 797317 0
701605 837560 0
754995 856894 0
887052 916415 0
485501 239485 0
321664 326379 0
500994 319512 1
718157 556831 1
293469 206371 1
155721 78140 0
938087 266534 1
359211 352656 1
573159 987662 0
318001 723055 1
5850 800134 1
649697 401641 0
159760 5730...

Decoder to Manager

466775 4

result:

points 1.0 Correct, ansewr is 4. Query count = 0

Subtask #15:

score: 4
Accepted

Test #46:

score: 4
Accepted
time: 2058ms
memory: 212336kb

Manager to Encoder

15 999624 1999248 605695
605695 285054
924093 285054
858664 924093
313513 285054
313513 298720
185061 285054
662407 313513
491675 924093
856278 858664
215859 185061
555921 491675
185061 641277
555921 825909
251264 491675
514008 662407
958043 825909
686565 958043
641277 33519
686565 661056
207870 605...

Encoder to Manager

1
15 999624 1999248
320527 337692 1
719503 887526 1
619817 609666 1
536687 84016 1
38698 53927 0
537579 804746 1
863064 386462 1
457174 348636 0
976265 139900 1
728061 792926 1
764948 630940 1
321253 507762 0
658293 531216 0
396185 25687 0
19963 948867 1
726732 488190 0
377214 573789 0
850421 850104...

Manager to Decoder

1
15 999624 1999248
320527 337692 1
719503 887526 1
619817 609666 1
536687 84016 1
38698 53927 0
537579 804746 1
863064 386462 1
457174 348636 0
976265 139900 1
728061 792926 1
764948 630940 1
321253 507762 0
658293 531216 0
396185 25687 0
19963 948867 1
726732 488190 0
377214 573789 0
850421 850104...

Decoder to Manager

605695 10

result:

points 1.0 Correct, ansewr is 10. Query count = 0

Test #47:

score: 4
Accepted
time: 1898ms
memory: 193620kb

Manager to Encoder

15 999598 1999196 379888
379888 494828
494828 413564
413564 420352
420352 558615
558615 691556
691556 315356
315356 460879
460879 290634
423424 290634
337995 423424
562028 337995
939556 562028
939556 786919
786919 261660
261660 700531
700531 182217
182217 560575
560575 865476
380156 865476
800106 38...

Encoder to Manager

1
15 999598 1999196
918415 326888 0
240611 242793 1
845619 493866 0
11695 564936 1
300837 990210 0
398045 952924 0
340339 127586 1
241435 51969 0
566358 794678 0
926092 766976 0
597425 765378 1
983215 970283 0
871064 522061 1
650372 425633 1
555785 77191 0
375278 96246 1
683212 739118 0
790399 65804...

Manager to Decoder

1
15 999598 1999196
918415 326888 0
240611 242793 1
845619 493866 0
11695 564936 1
300837 990210 0
398045 952924 0
340339 127586 1
241435 51969 0
566358 794678 0
926092 766976 0
597425 765378 1
983215 970283 0
871064 522061 1
650372 425633 1
555785 77191 0
375278 96246 1
683212 739118 0
790399 65804...

Decoder to Manager

379888 2092

result:

points 1.0 Correct, ansewr is 2092. Query count = 0

Test #48:

score: 4
Accepted
time: 767ms
memory: 125996kb

Manager to Encoder

15 1000000 999999 100584
885670 100584
100584 706467
100584 654283
217047 100584
100584 275545
100584 822496
100584 822990
762903 100584
505865 100584
100584 458724
100584 59134
100584 78899
670600 100584
100584 19693
828605 100584
904312 100584
100584 174920
100584 226360
653699 100584
969894 10058...

Encoder to Manager

1
15 1000000 999999
481958 932838 1
617444 974283 1
44744 634116 1
229271 786234 1
508986 377680 1
150643 821058 0
941343 739392 0
209840 325155 0
481201 108668 1
796802 878173 0
323373 861557 0
631202 419958 0
52265 116957 1
244082 584196 1
384513 870370 0
72798 90507 1
658649 314802 0
785997 97191...

Manager to Decoder

1
15 1000000 999999
481958 932838 1
617444 974283 1
44744 634116 1
229271 786234 1
508986 377680 1
150643 821058 0
941343 739392 0
209840 325155 0
481201 108668 1
796802 878173 0
323373 861557 0
631202 419958 0
52265 116957 1
244082 584196 1
384513 870370 0
72798 90507 1
658649 314802 0
785997 97191...

Decoder to Manager

100584 4

result:

points 1.0 Correct, ansewr is 4. Query count = 0

Subtask #16:

score: 4
Accepted

Test #49:

score: 4
Accepted
time: 2016ms
memory: 213408kb

Manager to Encoder

16 999828 1999656 102404
102404 52981
52981 181578
156703 102404
156703 807582
196628 52981
501837 196628
196628 932550
391550 807582
251557 156703
52981 304039
181578 551420
156703 500302
181578 303695
672559 251557
52981 699726
991790 807582
721498 391550
52981 429680
551420 498973
359266 932550
6...

Encoder to Manager

1
16 999828 1999656
471239 461784 1
372476 129111 0
111651 398292 0
230335 719773 1
62658 194722 1
899717 534979 1
639770 693631 0
480942 496670 1
815606 461479 0
837542 209736 1
878254 349038 1
583854 662535 1
241348 20567 0
176441 177977 0
226883 45274 1
278278 761600 0
686729 358582 0
432911 5630...

Manager to Decoder

1
16 999828 1999656
471239 461784 1
372476 129111 0
111651 398292 0
230335 719773 1
62658 194722 1
899717 534979 1
639770 693631 0
480942 496670 1
815606 461479 0
837542 209736 1
878254 349038 1
583854 662535 1
241348 20567 0
176441 177977 0
226883 45274 1
278278 761600 0
686729 358582 0
432911 5630...

Decoder to Manager

102404 8

result:

points 1.0 Correct, ansewr is 8. Query count = 0

Test #50:

score: 4
Accepted
time: 1947ms
memory: 198916kb

Manager to Encoder

16 999574 1999148 635753
481916 635753
481916 480613
480613 26303
26303 180938
532364 180938
532364 264166
745652 264166
745652 719628
719628 752594
988040 752594
453544 988040
453544 371817
371817 796548
796548 48797
138806 48797
138806 50525
412772 50525
412772 361556
361556 70814
237729 70814
178...

Encoder to Manager

1
16 999574 1999148
774142 437100 1
19107 816447 1
322308 573793 0
3795 419959 0
168068 255449 1
794466 708665 0
975780 207592 0
326487 655194 0
637997 549889 1
233885 577520 1
814719 820050 1
16124 15368 1
60510 313005 1
597475 313005 1
987250 858770 1
73529 572818 1
818729 824921 1
665533 649226 0...

Manager to Decoder

1
16 999574 1999148
774142 437100 1
19107 816447 1
322308 573793 0
3795 419959 0
168068 255449 1
794466 708665 0
975780 207592 0
326487 655194 0
637997 549889 1
233885 577520 1
814719 820050 1
16124 15368 1
60510 313005 1
597475 313005 1
987250 858770 1
73529 572818 1
818729 824921 1
665533 649226 0...

Decoder to Manager

635753 2151

result:

points 1.0 Correct, ansewr is 2151. Query count = 0

Test #51:

score: 4
Accepted
time: 832ms
memory: 154452kb

Manager to Encoder

16 1000000 999999 729838
729838 895698
895698 85783
85783 688031
902676 688031
902676 854877
347949 854877
382741 347949
534002 382741
534002 960167
705583 960167
705583 992294
992294 72669
328334 72669
328334 739495
74295 739495
810360 74295
810360 453400
543129 453400
813527 543129
813527 313096
3...

Encoder to Manager

1
16 1000000 999999
901549 681578 0
982050 2045 0
718474 2045 0
525833 885311 1
2045 938818 1
185527 365455 0
765562 408793 0
778892 916884 0
32004 765562 1
583490 2045 0
2045 394336 1
255713 261152 0
972450 70022 1
36940 76598 0
572593 587237 0
974615 408318 1
2045 140368 1
2045 756741 1
765562 799...

Manager to Decoder

1
16 1000000 999999
901549 681578 0
982050 2045 0
718474 2045 0
525833 885311 1
2045 938818 1
185527 365455 0
765562 408793 0
778892 916884 0
32004 765562 1
583490 2045 0
2045 394336 1
255713 261152 0
972450 70022 1
36940 76598 0
572593 587237 0
974615 408318 1
2045 140368 1
2045 756741 1
765562 799...

Decoder to Manager

729838 229

result:

points 1.0 Correct, ansewr is 229. Query count = 0

Test #52:

score: 4
Accepted
time: 806ms
memory: 126144kb

Manager to Encoder

16 1000000 999999 231845
93768 231845
814656 231845
231845 690171
597679 231845
474404 231845
86253 231845
278057 231845
231845 359898
231845 454168
231845 753061
231845 284200
877187 231845
231845 78056
231845 750444
231845 616306
231845 963720
103495 231845
144471 231845
990512 231845
95101 231845...

Encoder to Manager

1
16 1000000 999999
231845 388477 1
231845 455957 1
231845 168101 1
231845 703432 1
231845 706084 1
231845 874200 1
231845 655982 1
571768 231845 0
802657 231845 0
231845 885242 1
776867 231845 0
250476 231845 0
433537 231845 0
231845 599874 1
231845 796325 1
317792 231845 0
231845 831623 1
703139 2...

Manager to Decoder

1
16 1000000 999999
231845 388477 1
231845 455957 1
231845 168101 1
231845 703432 1
231845 706084 1
231845 874200 1
231845 655982 1
571768 231845 0
802657 231845 0
231845 885242 1
776867 231845 0
250476 231845 0
433537 231845 0
231845 599874 1
231845 796325 1
317792 231845 0
231845 831623 1
703139 2...

Decoder to Manager

231845 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #17:

score: 4
Accepted

Test #53:

score: 4
Accepted
time: 2336ms
memory: 213140kb

Manager to Encoder

17 999345 1998690 431760
714048 431760
431760 864711
714048 531203
864711 496762
164587 431760
496762 813953
387128 531203
813953 323654
374474 813953
431760 91063
864711 59879
290944 813953
355050 431760
91063 802008
431760 162748
496762 193441
651538 290944
101587 802008
164587 519524
193441 49171...

Encoder to Manager

1
17 999345 1998690
177831 158081 1
232332 536408 1
105720 657442 0
427391 916988 0
122408 379750 0
239904 496579 1
694872 983380 1
278617 34759 1
660220 794229 0
708567 21698 1
295012 365792 1
930554 738796 1
309828 825954 1
194234 350923 0
407615 106346 1
348212 716943 0
530596 985563 0
779698 756...

Manager to Decoder

1
17 999345 1998690
177831 158081 1
232332 536408 1
105720 657442 0
427391 916988 0
122408 379750 0
239904 496579 1
694872 983380 1
278617 34759 1
660220 794229 0
708567 21698 1
295012 365792 1
930554 738796 1
309828 825954 1
194234 350923 0
407615 106346 1
348212 716943 0
530596 985563 0
779698 756...

Decoder to Manager

431760 9

result:

points 1.0 Correct, ansewr is 9. Query count = 0

Test #54:

score: 4
Accepted
time: 1905ms
memory: 205524kb

Manager to Encoder

17 999851 1999702 215528
215528 228720
228720 148221
148221 567416
780026 567416
1204 780026
80760 1204
80760 542622
542622 454190
687677 454190
687677 742137
742137 162241
162241 407562
941566 407562
351202 941566
745202 351202
32921 745202
976058 32921
976058 272040
272040 747803
747803 86670
8667...

Encoder to Manager

1
17 999851 1999702
458849 219903 1
641771 7721 0
315096 455365 1
153756 161256 1
283432 290971 1
680598 587201 0
999356 140180 0
811385 655466 1
665084 82025 0
86502 625033 1
51676 813296 0
58850 507157 1
135918 300850 1
81562 996308 1
739273 157588 0
988059 761330 1
168571 251310 0
874821 247365 0...

Manager to Decoder

1
17 999851 1999702
458849 219903 1
641771 7721 0
315096 455365 1
153756 161256 1
283432 290971 1
680598 587201 0
999356 140180 0
811385 655466 1
665084 82025 0
86502 625033 1
51676 813296 0
58850 507157 1
135918 300850 1
81562 996308 1
739273 157588 0
988059 761330 1
168571 251310 0
874821 247365 0...

Decoder to Manager

215528 1006

result:

points 1.0 Correct, ansewr is 1006. Query count = 0

Test #55:

score: 4
Accepted
time: 829ms
memory: 141176kb

Manager to Encoder

17 1000000 999999 370308
370308 663463
663463 835084
462368 835084
462368 294079
246787 294079
898442 246787
898442 429381
71038 429381
563066 71038
563066 264626
264626 308603
685604 308603
121492 685604
761618 121492
761618 226870
872309 226870
872309 232650
61364 232650
61364 629733
54775 629733
...

Encoder to Manager

1
17 1000000 999999
915015 72705 0
393749 328119 0
616665 909617 1
808101 189562 1
931130 832596 0
251489 542548 0
859245 362652 1
508907 268497 1
909617 361481 0
520863 971627 1
832596 449728 1
832596 353018 1
440989 899138 0
601970 911785 1
728840 909617 1
651034 678589 0
808262 400465 0
804715 81...

Manager to Decoder

1
17 1000000 999999
915015 72705 0
393749 328119 0
616665 909617 1
808101 189562 1
931130 832596 0
251489 542548 0
859245 362652 1
508907 268497 1
909617 361481 0
520863 971627 1
832596 449728 1
832596 353018 1
440989 899138 0
601970 911785 1
728840 909617 1
651034 678589 0
808262 400465 0
804715 81...

Decoder to Manager

370308 1917

result:

points 1.0 Correct, ansewr is 1917. Query count = 0

Test #56:

score: 4
Accepted
time: 797ms
memory: 126216kb

Manager to Encoder

17 1000000 999999 711306
510950 711306
711306 646110
763653 711306
345245 711306
711306 465415
47413 711306
711306 793395
710789 711306
711306 325697
711306 439038
577716 711306
727990 711306
713541 711306
711306 307943
65241 711306
910059 711306
711306 129761
328599 711306
711306 852838
711306 5430...

Encoder to Manager

1
17 1000000 999999
711306 123737 1
834194 711306 0
711306 769087 1
917046 711306 0
361419 711306 0
711306 29433 1
711306 132962 1
656867 711306 0
711306 875118 1
711306 532906 1
711306 908817 1
711306 9281 1
369967 711306 0
988889 711306 0
711306 907429 1
711306 876386 1
711306 472037 1
711306 6269...

Manager to Decoder

1
17 1000000 999999
711306 123737 1
834194 711306 0
711306 769087 1
917046 711306 0
361419 711306 0
711306 29433 1
711306 132962 1
656867 711306 0
711306 875118 1
711306 532906 1
711306 908817 1
711306 9281 1
369967 711306 0
988889 711306 0
711306 907429 1
711306 876386 1
711306 472037 1
711306 6269...

Decoder to Manager

711306 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #18:

score: 4
Accepted

Test #57:

score: 4
Accepted
time: 2157ms
memory: 213356kb

Manager to Encoder

18 999791 1999582 257930
257930 734927
257930 385531
474756 734927
432048 734927
474756 952965
841319 952965
179928 841319
841319 157614
841319 80029
80029 877225
179928 729178
432048 977126
877225 434464
841319 219745
734927 278874
432048 555110
640711 877225
640711 976997
952965 633295
52771 15761...

Encoder to Manager

1
18 999791 1999582
130567 292817 1
129935 960814 1
705146 790630 1
482141 51074 0
229578 370948 0
127311 551086 0
68332 418590 1
874240 663656 1
793532 426340 0
690611 382479 1
434069 742925 0
646291 723820 1
354694 189322 1
388178 858204 0
940950 452262 0
191661 474631 0
946289 743939 0
727634 593...

Manager to Decoder

1
18 999791 1999582
130567 292817 1
129935 960814 1
705146 790630 1
482141 51074 0
229578 370948 0
127311 551086 0
68332 418590 1
874240 663656 1
793532 426340 0
690611 382479 1
434069 742925 0
646291 723820 1
354694 189322 1
388178 858204 0
940950 452262 0
191661 474631 0
946289 743939 0
727634 593...

Decoder to Manager

257930 8

result:

points 1.0 Correct, ansewr is 8. Query count = 0

Test #58:

score: 4
Accepted
time: 2008ms
memory: 192576kb

Manager to Encoder

18 999578 1999156 939587
568149 939587
424596 568149
623334 424596
205767 623334
205767 768469
704253 768469
384771 704253
839252 384771
839252 223205
315609 223205
529979 315609
529979 679220
679220 538232
698960 538232
698960 568903
985165 568903
503229 985165
503229 192729
841367 192729
213915 84...

Encoder to Manager

1
18 999578 1999156
295270 244607 1
357102 525323 0
168883 412390 0
582098 244607 1
730109 731246 0
976600 887782 1
492531 293357 1
63680 70731 0
412122 911866 1
833476 756986 0
244607 240338 0
678539 289208 1
243963 978268 0
64102 684711 0
383084 775098 0
914119 997278 0
781898 621370 0
151883 9904...

Manager to Decoder

1
18 999578 1999156
295270 244607 1
357102 525323 0
168883 412390 0
582098 244607 1
730109 731246 0
976600 887782 1
492531 293357 1
63680 70731 0
412122 911866 1
833476 756986 0
244607 240338 0
678539 289208 1
243963 978268 0
64102 684711 0
383084 775098 0
914119 997278 0
781898 621370 0
151883 9904...

Decoder to Manager

939587 557

result:

points 1.0 Correct, ansewr is 557. Query count = 0

Test #59:

score: 4
Accepted
time: 851ms
memory: 140904kb

Manager to Encoder

18 1000000 999999 535510
535510 397007
397007 839069
839069 23491
23491 390306
390306 155923
155923 622652
622652 449286
449286 935895
935895 669214
669214 354726
760089 354726
760089 842809
842809 983004
40795 983004
40795 878977
837028 878977
281119 837028
979224 281119
979224 893021
915106 893021...

Encoder to Manager

1
18 1000000 999999
160451 367816 1
530035 654986 1
629620 865163 0
627109 563197 1
996316 644141 0
509228 160451 0
160451 964097 1
595237 694031 0
169082 925608 1
858048 169082 0
953900 401339 0
869738 261824 0
180146 317852 1
131982 223372 0
37152 184905 0
745904 798149 1
577565 828539 0
865862 71...

Manager to Decoder

1
18 1000000 999999
160451 367816 1
530035 654986 1
629620 865163 0
627109 563197 1
996316 644141 0
509228 160451 0
160451 964097 1
595237 694031 0
169082 925608 1
858048 169082 0
953900 401339 0
869738 261824 0
180146 317852 1
131982 223372 0
37152 184905 0
745904 798149 1
577565 828539 0
865862 71...

Decoder to Manager

535510 2137

result:

points 1.0 Correct, ansewr is 2137. Query count = 0

Test #60:

score: 4
Accepted
time: 836ms
memory: 126408kb

Manager to Encoder

18 1000000 999999 968167
968167 631509
968167 936297
968167 383006
891066 968167
968167 676608
968167 654850
646172 968167
979003 968167
758718 968167
968167 94352
968167 402213
968167 385190
845093 968167
197484 968167
968167 276653
654146 968167
447623 968167
968167 520459
356791 968167
968167 685...

Encoder to Manager

1
18 1000000 999999
358855 968167 0
968167 304834 1
968167 759539 1
183 968167 0
678639 968167 0
518139 968167 0
968167 301209 1
291929 968167 0
968167 715524 1
968167 831647 1
544593 968167 0
481938 968167 0
968167 256902 1
463358 968167 0
560253 968167 0
5232 968167 0
968167 831204 1
968167 733260...

Manager to Decoder

1
18 1000000 999999
358855 968167 0
968167 304834 1
968167 759539 1
183 968167 0
678639 968167 0
518139 968167 0
968167 301209 1
291929 968167 0
968167 715524 1
968167 831647 1
544593 968167 0
481938 968167 0
968167 256902 1
463358 968167 0
560253 968167 0
5232 968167 0
968167 831204 1
968167 733260...

Decoder to Manager

968167 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #19:

score: 4
Accepted

Test #61:

score: 4
Accepted
time: 2133ms
memory: 212524kb

Manager to Encoder

19 999857 1999714 627365
776577 627365
627365 687989
627365 718885
305280 718885
229260 627365
157881 776577
501968 229260
776577 469170
718885 20474
776577 789859
687989 300855
687989 977255
789859 549879
977255 192707
397031 776577
873328 300855
469170 586173
314074 776577
20474 441080
977255 6080...

Encoder to Manager

1
19 999857 1999714
839861 46745 0
43697 532391 1
88840 615682 0
650137 184004 1
704382 254033 0
589661 208654 0
811295 906340 0
104442 823529 0
345899 366666 1
970973 602873 1
625705 61407 1
704132 448229 0
568824 620159 0
961658 133965 0
998389 146437 0
21913 396387 1
385487 866360 0
608297 504651...

Manager to Decoder

1
19 999857 1999714
839861 46745 0
43697 532391 1
88840 615682 0
650137 184004 1
704382 254033 0
589661 208654 0
811295 906340 0
104442 823529 0
345899 366666 1
970973 602873 1
625705 61407 1
704132 448229 0
568824 620159 0
961658 133965 0
998389 146437 0
21913 396387 1
385487 866360 0
608297 504651...

Decoder to Manager

627365 7

result:

points 1.0 Correct, ansewr is 7. Query count = 0

Test #62:

score: 4
Accepted
time: 2016ms
memory: 200172kb

Manager to Encoder

19 999644 1999288 223923
223923 259532
683999 259532
239684 683999
75892 239684
82183 75892
474262 82183
159355 474262
825945 159355
172348 825945
583137 172348
583137 324340
657054 324340
30012 657054
685593 30012
397168 685593
924334 397168
222957 924334
272355 222957
272355 742325
569430 742325
5...

Encoder to Manager

1
19 999644 1999288
351504 548239 1
651444 669539 1
980056 163234 1
325618 420179 1
9455 842929 0
71564 303081 1
179252 447567 1
708992 551932 1
24074 910985 1
737860 546673 0
190452 67195 0
66047 501547 0
188748 325868 0
886113 794572 1
854600 224885 0
905651 654049 1
420703 979089 0
420179 9640 0
...

Manager to Decoder

1
19 999644 1999288
351504 548239 1
651444 669539 1
980056 163234 1
325618 420179 1
9455 842929 0
71564 303081 1
179252 447567 1
708992 551932 1
24074 910985 1
737860 546673 0
190452 67195 0
66047 501547 0
188748 325868 0
886113 794572 1
854600 224885 0
905651 654049 1
420703 979089 0
420179 9640 0
...

Decoder to Manager

223923 464

result:

points 1.0 Correct, ansewr is 464. Query count = 0

Test #63:

score: 4
Accepted
time: 862ms
memory: 138820kb

Manager to Encoder

19 1000000 999999 308656
707851 308656
707851 875504
875504 830919
830919 188651
774136 188651
591848 774136
591848 757184
757184 756204
907432 756204
907432 451816
432585 451816
535454 432585
735242 535454
735242 734287
734287 347365
347365 333574
333574 735945
735945 46561
105030 46561
273523 1050...

Encoder to Manager

1
19 1000000 999999
6553 136777 0
359985 31080 1
223213 746537 0
250768 749035 1
130096 727298 1
723799 541013 1
245358 31080 1
496669 892083 0
696375 892083 0
868137 646680 1
99243 107003 1
336798 715940 0
320248 940586 0
100868 58671 0
907957 892083 0
833739 638817 1
464522 211627 0
826804 31080 1...

Manager to Decoder

1
19 1000000 999999
6553 136777 0
359985 31080 1
223213 746537 0
250768 749035 1
130096 727298 1
723799 541013 1
245358 31080 1
496669 892083 0
696375 892083 0
868137 646680 1
99243 107003 1
336798 715940 0
320248 940586 0
100868 58671 0
907957 892083 0
833739 638817 1
464522 211627 0
826804 31080 1...

Decoder to Manager

308656 276

result:

points 1.0 Correct, ansewr is 276. Query count = 0

Test #64:

score: 4
Accepted
time: 805ms
memory: 126500kb

Manager to Encoder

19 1000000 999999 124338
124338 148348
451224 124338
124338 135588
124338 102448
252517 124338
937498 124338
303742 124338
29625 124338
124338 263844
124338 131751
119699 124338
124338 318769
124338 919864
261559 124338
124338 660195
124338 950324
124338 30807
124338 867221
124338 382983
124338 4644...

Encoder to Manager

1
19 1000000 999999
709163 917232 1
246540 709163 0
480402 709163 0
70839 709163 0
709163 666199 1
966137 709163 0
534242 709163 0
23479 709163 0
334260 709163 0
479999 709163 0
263789 709163 0
709163 443878 1
762224 709163 0
709163 163872 1
535924 709163 0
779920 709163 0
709163 299447 1
245443 709...

Manager to Decoder

1
19 1000000 999999
709163 917232 1
246540 709163 0
480402 709163 0
70839 709163 0
709163 666199 1
966137 709163 0
534242 709163 0
23479 709163 0
334260 709163 0
479999 709163 0
263789 709163 0
709163 443878 1
762224 709163 0
709163 163872 1
535924 709163 0
779920 709163 0
709163 299447 1
245443 709...

Decoder to Manager

124338 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #20:

score: 4
Accepted

Test #65:

score: 4
Accepted
time: 1997ms
memory: 213132kb

Manager to Encoder

20 999216 1998432 393580
393580 176918
176918 34074
34074 992983
176918 759882
992983 404864
449676 404864
1762 992983
759882 547393
176918 768240
449676 405535
449676 345823
393580 856783
1762 297598
856783 995935
768240 589268
860687 759882
589268 318244
589268 262010
992983 949669
386646 547393
7...

Encoder to Manager

1
20 999216 1998432
337127 560728 0
510282 27916 1
529243 224842 1
133256 265748 1
519992 218118 0
570741 363786 0
761318 849091 1
819809 410521 1
138511 665283 1
186733 164107 0
659088 449228 1
786570 366789 1
244150 727676 1
864437 732841 1
963695 842573 1
889753 922513 1
46689 280404 0
711722 568...

Manager to Decoder

1
20 999216 1998432
337127 560728 0
510282 27916 1
529243 224842 1
133256 265748 1
519992 218118 0
570741 363786 0
761318 849091 1
819809 410521 1
138511 665283 1
186733 164107 0
659088 449228 1
786570 366789 1
244150 727676 1
864437 732841 1
963695 842573 1
889753 922513 1
46689 280404 0
711722 568...

Decoder to Manager

393580 10

result:

points 1.0 Correct, ansewr is 10. Query count = 0

Test #66:

score: 4
Accepted
time: 2040ms
memory: 201112kb

Manager to Encoder

20 999177 1998354 859117
84268 859117
84268 616259
616259 521875
814292 521875
905856 814292
255719 905856
255719 258350
258350 676864
676864 940826
990543 940826
74257 990543
672051 74257
672051 453133
453133 865029
865029 525464
525464 163361
163361 252537
252537 874987
583320 874987
583320 424950...

Encoder to Manager

1
20 999177 1998354
158196 335909 1
630993 132381 1
833007 28234 1
975395 608449 1
252076 412477 0
412477 160947 1
246489 374105 1
608449 435132 0
608449 7382 0
760304 809739 1
307300 751382 1
707707 596305 0
282612 412477 0
269587 608449 1
805890 406837 0
534387 206390 1
369431 608449 1
293023 5217...

Manager to Decoder

1
20 999177 1998354
158196 335909 1
630993 132381 1
833007 28234 1
975395 608449 1
252076 412477 0
412477 160947 1
246489 374105 1
608449 435132 0
608449 7382 0
760304 809739 1
307300 751382 1
707707 596305 0
282612 412477 0
269587 608449 1
805890 406837 0
534387 206390 1
369431 608449 1
293023 5217...

Decoder to Manager

859117 173

result:

points 1.0 Correct, ansewr is 173. Query count = 0

Test #67:

score: 4
Accepted
time: 866ms
memory: 154736kb

Manager to Encoder

20 1000000 999999 744089
744089 609885
609885 202827
202827 783850
783850 330560
330560 481876
403339 481876
403339 754907
558641 754907
558641 455574
941039 455574
525742 941039
525742 415533
415533 494002
10001 494002
10001 820506
820506 834365
982692 834365
904102 982692
904102 750607
87052 75060...

Encoder to Manager

1
20 1000000 999999
541707 800917 0
482548 523109 1
471009 671966 0
389726 471009 1
2806 883098 1
128882 960879 1
471009 372006 0
565609 394006 0
622081 482548 0
449849 230941 0
482548 464263 1
17531 482548 0
697315 837624 1
406303 330441 1
551179 301186 0
765106 444443 0
877766 408675 0
945087 2040...

Manager to Decoder

1
20 1000000 999999
541707 800917 0
482548 523109 1
471009 671966 0
389726 471009 1
2806 883098 1
128882 960879 1
471009 372006 0
565609 394006 0
622081 482548 0
449849 230941 0
482548 464263 1
17531 482548 0
697315 837624 1
406303 330441 1
551179 301186 0
765106 444443 0
877766 408675 0
945087 2040...

Decoder to Manager

744089 3082

result:

points 1.0 Correct, ansewr is 3082. Query count = 0

Test #68:

score: 4
Accepted
time: 812ms
memory: 126212kb

Manager to Encoder

20 1000000 999999 718559
718559 307897
718559 489588
649990 718559
718559 512835
718559 979636
375791 718559
718559 432969
701865 718559
718559 218526
718559 367760
718559 286823
202910 718559
718559 834655
524022 718559
718559 91217
8112 718559
30278 718559
514214 718559
326044 718559
718559 745281...

Encoder to Manager

1
20 1000000 999999
959487 635761 0
635761 142182 1
883708 635761 0
635761 155353 1
635761 934427 1
635761 422479 1
297250 635761 0
863981 635761 0
931627 635761 0
495363 635761 0
635761 212019 1
174966 635761 0
635761 849987 1
995479 635761 0
635761 597191 1
635761 806443 1
635761 175668 1
348821 6...

Manager to Decoder

1
20 1000000 999999
959487 635761 0
635761 142182 1
883708 635761 0
635761 155353 1
635761 934427 1
635761 422479 1
297250 635761 0
863981 635761 0
931627 635761 0
495363 635761 0
635761 212019 1
174966 635761 0
635761 849987 1
995479 635761 0
635761 597191 1
635761 806443 1
635761 175668 1
348821 6...

Decoder to Manager

718559 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #21:

score: 4
Accepted

Test #69:

score: 4
Accepted
time: 2098ms
memory: 212336kb

Manager to Encoder

21 999831 1999662 700833
366038 700833
366038 325480
762150 366038
507283 700833
871987 325480
703342 507283
669603 703342
194453 325480
333639 762150
333639 736937
736937 144692
200070 736937
871987 924148
736937 362905
669603 855966
194453 691992
443375 762150
144692 732750
144692 538353
748802 36...

Encoder to Manager

1
21 999831 1999662
521323 153053 1
459480 718983 0
219066 870411 1
503664 595246 0
251879 32322 1
603159 110023 1
970551 746875 1
998304 331476 1
154561 220939 1
326559 970277 0
575431 208049 0
184798 738104 0
121575 581217 0
631868 13893 0
938537 154651 0
592586 186882 1
376047 722573 1
340602 552...

Manager to Decoder

1
21 999831 1999662
521323 153053 1
459480 718983 0
219066 870411 1
503664 595246 0
251879 32322 1
603159 110023 1
970551 746875 1
998304 331476 1
154561 220939 1
326559 970277 0
575431 208049 0
184798 738104 0
121575 581217 0
631868 13893 0
938537 154651 0
592586 186882 1
376047 722573 1
340602 552...

Decoder to Manager

700833 8

result:

points 1.0 Correct, ansewr is 8. Query count = 0

Test #70:

score: 4
Accepted
time: 2059ms
memory: 192008kb

Manager to Encoder

21 999061 1998122 845401
865992 845401
442785 865992
442785 167539
604524 167539
106714 604524
106714 407096
76008 407096
76008 523185
709794 523185
717343 709794
717343 927920
927920 509896
480624 509896
102977 480624
102977 540326
540326 145695
145695 633073
454023 633073
454023 193048
354445 1930...

Encoder to Manager

1
21 999061 1998122
541716 183981 1
719485 97657 1
790717 562538 1
787764 459665 0
479284 256639 1
85845 443706 1
490404 917998 1
97657 649236 0
802160 758883 1
153508 809294 1
612348 490404 0
801977 788198 0
724915 765559 0
650482 150021 1
483346 925358 1
97657 824826 0
313031 170602 0
445998 37081...

Manager to Decoder

1
21 999061 1998122
541716 183981 1
719485 97657 1
790717 562538 1
787764 459665 0
479284 256639 1
85845 443706 1
490404 917998 1
97657 649236 0
802160 758883 1
153508 809294 1
612348 490404 0
801977 788198 0
724915 765559 0
650482 150021 1
483346 925358 1
97657 824826 0
313031 170602 0
445998 37081...

Decoder to Manager

845401 2264

result:

points 1.0 Correct, ansewr is 2264. Query count = 0

Test #71:

score: 4
Accepted
time: 860ms
memory: 153268kb

Manager to Encoder

21 1000000 999999 132731
753830 132731
753830 996147
956952 996147
985933 956952
985933 952965
425007 952965
425007 578929
875399 578929
766750 875399
766750 761542
575309 761542
575309 101920
901681 101920
901681 615212
615212 961521
961521 714258
714258 713776
618268 713776
657434 618268
657434 53...

Encoder to Manager

1
21 1000000 999999
552344 517938 1
833527 600606 1
89422 441876 1
61507 775982 0
684049 383542 0
310426 741606 1
678639 150702 1
827490 971997 0
766103 684049 1
501781 83170 0
552344 137047 1
313412 321984 0
552344 90181 1
218190 684049 1
995784 552344 0
348880 645826 0
290215 339072 1
753777 55234...

Manager to Decoder

1
21 1000000 999999
552344 517938 1
833527 600606 1
89422 441876 1
61507 775982 0
684049 383542 0
310426 741606 1
678639 150702 1
827490 971997 0
766103 684049 1
501781 83170 0
552344 137047 1
313412 321984 0
552344 90181 1
218190 684049 1
995784 552344 0
348880 645826 0
290215 339072 1
753777 55234...

Decoder to Manager

132731 2586

result:

points 1.0 Correct, ansewr is 2586. Query count = 0

Test #72:

score: 4
Accepted
time: 783ms
memory: 126220kb

Manager to Encoder

21 1000000 999999 918325
183871 918325
918325 805483
561905 918325
547236 918325
698473 918325
918325 171234
584052 918325
918325 553194
918325 391945
918325 859897
941625 918325
918325 594702
760158 918325
918325 706032
360549 918325
918325 526644
918325 658334
264816 918325
496480 918325
918325 82...

Encoder to Manager

1
21 1000000 999999
828582 365902 1
25118 828582 0
168883 828582 0
87044 828582 0
109855 828582 0
934341 828582 0
310513 828582 0
116330 828582 0
828582 307426 1
828582 747673 1
828582 643110 1
634739 828582 0
828582 163374 1
885455 828582 0
828582 676186 1
828582 51669 1
828582 998316 1
919841 8285...

Manager to Decoder

1
21 1000000 999999
828582 365902 1
25118 828582 0
168883 828582 0
87044 828582 0
109855 828582 0
934341 828582 0
310513 828582 0
116330 828582 0
828582 307426 1
828582 747673 1
828582 643110 1
634739 828582 0
828582 163374 1
885455 828582 0
828582 676186 1
828582 51669 1
828582 998316 1
919841 8285...

Decoder to Manager

918325 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #22:

score: 4
Accepted

Test #73:

score: 4
Accepted
time: 2108ms
memory: 213260kb

Manager to Encoder

22 999385 1998770 808330
523876 808330
523876 152630
474273 808330
40289 523876
152630 268321
474273 940367
523876 342755
152630 40323
474273 77075
546091 40323
89779 940367
152630 985224
691156 77075
474273 875866
40323 259801
89779 165145
80666 546091
714560 691156
730653 875866
911033 523876
2688...

Encoder to Manager

1
22 999385 1998770
818735 524274 1
602708 54316 1
937643 330853 0
489354 825547 1
276482 362858 0
674388 375788 0
917923 206435 1
730296 761718 0
94401 753718 1
221762 504357 1
690034 673487 1
622887 651530 0
33008 408363 1
533043 312591 1
26603 427142 0
673779 872921 1
381942 806485 1
111671 17660...

Manager to Decoder

1
22 999385 1998770
818735 524274 1
602708 54316 1
937643 330853 0
489354 825547 1
276482 362858 0
674388 375788 0
917923 206435 1
730296 761718 0
94401 753718 1
221762 504357 1
690034 673487 1
622887 651530 0
33008 408363 1
533043 312591 1
26603 427142 0
673779 872921 1
381942 806485 1
111671 17660...

Decoder to Manager

808330 9

result:

points 1.0 Correct, ansewr is 9. Query count = 0

Test #74:

score: 4
Accepted
time: 2117ms
memory: 195764kb

Manager to Encoder

22 999953 1999906 276338
263538 276338
263538 595734
433161 595734
433161 179204
179204 602057
602057 303114
849903 303114
278312 849903
471521 278312
471521 911494
198051 911494
135704 198051
135704 99886
99886 662329
662329 782975
782975 512634
512634 659617
968872 659617
160821 968872
568543 1608...

Encoder to Manager

1
22 999953 1999906
503988 496629 0
236056 953377 0
330718 697243 1
818637 570280 1
940129 382497 0
122562 944980 1
405002 157675 0
41861 991450 1
138797 510133 0
226119 41861 0
700444 920096 1
134 261934 0
358799 177395 1
185296 440273 0
506073 945498 1
186864 184325 1
826317 934967 1
410670 931228...

Manager to Decoder

1
22 999953 1999906
503988 496629 0
236056 953377 0
330718 697243 1
818637 570280 1
940129 382497 0
122562 944980 1
405002 157675 0
41861 991450 1
138797 510133 0
226119 41861 0
700444 920096 1
134 261934 0
358799 177395 1
185296 440273 0
506073 945498 1
186864 184325 1
826317 934967 1
410670 931228...

Decoder to Manager

276338 638

result:

points 1.0 Correct, ansewr is 638. Query count = 0

Test #75:

score: 4
Accepted
time: 849ms
memory: 153568kb

Manager to Encoder

22 1000000 999999 973929
202227 973929
202227 681345
681345 972621
719921 972621
719921 681992
356553 681992
985866 356553
985866 544146
694728 544146
694728 467395
467395 620035
163751 620035
163751 796766
796766 583169
453295 583169
489905 453295
468308 489905
468308 671326
779165 671326
880262 77...

Encoder to Manager

1
22 1000000 999999
542163 873152 0
499075 670804 1
160316 831553 1
971340 130524 0
499075 313121 1
551860 237716 1
300850 499075 0
971340 144945 0
185380 347075 0
554744 247258 0
237426 971340 1
606261 773245 1
953427 971340 1
272071 384095 1
221855 605397 0
971340 197208 0
420741 926825 1
499075 8...

Manager to Decoder

1
22 1000000 999999
542163 873152 0
499075 670804 1
160316 831553 1
971340 130524 0
499075 313121 1
551860 237716 1
300850 499075 0
971340 144945 0
185380 347075 0
554744 247258 0
237426 971340 1
606261 773245 1
953427 971340 1
272071 384095 1
221855 605397 0
971340 197208 0
420741 926825 1
499075 8...

Decoder to Manager

973929 2727

result:

points 1.0 Correct, ansewr is 2727. Query count = 0

Test #76:

score: 4
Accepted
time: 746ms
memory: 126468kb

Manager to Encoder

22 1000000 999999 494142
407301 494142
978246 494142
869379 494142
786704 494142
705797 494142
433551 494142
305967 494142
400739 494142
269458 494142
463431 494142
14192 494142
494142 782230
494142 406788
494142 128606
494142 312674
494142 931347
971422 494142
722676 494142
213607 494142
41242 4941...

Encoder to Manager

1
22 1000000 999999
58650 321353 0
321353 128437 1
321353 478683 1
321353 252918 1
353943 321353 0
321353 820159 1
731812 321353 0
683575 321353 0
916981 321353 0
321353 391281 1
321353 267967 1
321353 380599 1
99923 321353 0
99091 321353 0
321353 980653 1
321353 832377 1
321353 661282 1
279233 3213...

Manager to Decoder

1
22 1000000 999999
58650 321353 0
321353 128437 1
321353 478683 1
321353 252918 1
353943 321353 0
321353 820159 1
731812 321353 0
683575 321353 0
916981 321353 0
321353 391281 1
321353 267967 1
321353 380599 1
99923 321353 0
99091 321353 0
321353 980653 1
321353 832377 1
321353 661282 1
279233 3213...

Decoder to Manager

494142 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #23:

score: 4
Accepted

Test #77:

score: 4
Accepted
time: 2070ms
memory: 212516kb

Manager to Encoder

23 999537 1999074 823168
122681 823168
823168 455034
122681 75402
426585 75402
823168 278565
823168 873549
455034 933524
105554 75402
284478 278565
105554 170979
284478 485679
910957 823168
933524 493654
426585 984134
105554 783302
15832 170979
173838 278565
66929 933524
984134 657898
302219 873549
...

Encoder to Manager

1
23 999537 1999074
424831 829715 0
875871 753924 1
994071 355042 1
931155 867331 1
680335 442835 0
198348 443404 1
306067 289873 1
822479 775244 0
627424 441490 1
904285 872709 1
186039 453426 0
380545 807102 0
661273 844991 0
417459 200460 1
667235 318099 1
988819 369426 1
493178 25719 0
250383 36...

Manager to Decoder

1
23 999537 1999074
424831 829715 0
875871 753924 1
994071 355042 1
931155 867331 1
680335 442835 0
198348 443404 1
306067 289873 1
822479 775244 0
627424 441490 1
904285 872709 1
186039 453426 0
380545 807102 0
661273 844991 0
417459 200460 1
667235 318099 1
988819 369426 1
493178 25719 0
250383 36...

Decoder to Manager

823168 8

result:

points 1.0 Correct, ansewr is 8. Query count = 0

Test #78:

score: 4
Accepted
time: 1894ms
memory: 202204kb

Manager to Encoder

23 999756 1999512 667176
667176 88635
88635 599208
599208 120092
516590 120092
691664 516590
691664 184105
184105 433290
433290 395317
395317 682823
682823 962602
11071 962602
11071 372100
733376 372100
629613 733376
794915 629613
794915 245627
245627 743048
743048 155187
155187 92167
551155 92167
5...

Encoder to Manager

1
23 999756 1999512
73165 717176 1
515402 548000 1
247727 139381 1
247727 105403 1
862131 736519 1
73870 309184 0
247727 595417 1
952189 799749 1
855539 331355 0
271900 939707 0
90040 850590 1
827667 129748 0
304869 722404 0
675315 330843 1
304869 421188 0
538592 810280 1
422553 416874 1
971574 3142...

Manager to Decoder

1
23 999756 1999512
73165 717176 1
515402 548000 1
247727 139381 1
247727 105403 1
862131 736519 1
73870 309184 0
247727 595417 1
952189 799749 1
855539 331355 0
271900 939707 0
90040 850590 1
827667 129748 0
304869 722404 0
675315 330843 1
304869 421188 0
538592 810280 1
422553 416874 1
971574 3142...

Decoder to Manager

667176 1603

result:

points 1.0 Correct, ansewr is 1603. Query count = 0

Test #79:

score: 4
Accepted
time: 818ms
memory: 152472kb

Manager to Encoder

23 1000000 999999 420543
420543 839288
391913 839288
391913 651257
651257 908103
942205 908103
245075 942205
245075 574197
574197 103131
103131 46939
46939 838928
820826 838928
456343 820826
786296 456343
563405 786296
130650 563405
316148 130650
316148 897382
850792 897382
174731 850792
425228 1747...

Encoder to Manager

1
23 1000000 999999
611391 641573 1
851150 785362 1
566091 611391 0
513341 909901 0
611776 761599 1
761599 303003 0
612116 92898 1
218495 122228 0
806819 774136 0
652533 531925 0
985 656608 1
484921 926652 0
786853 301995 1
466672 78817 0
29158 468294 0
13032 932402 1
280990 556441 1
448267 794816 1...

Manager to Decoder

1
23 1000000 999999
611391 641573 1
851150 785362 1
566091 611391 0
513341 909901 0
611776 761599 1
761599 303003 0
612116 92898 1
218495 122228 0
806819 774136 0
652533 531925 0
985 656608 1
484921 926652 0
786853 301995 1
466672 78817 0
29158 468294 0
13032 932402 1
280990 556441 1
448267 794816 1...

Decoder to Manager

420543 408

result:

points 1.0 Correct, ansewr is 408. Query count = 0

Test #80:

score: 4
Accepted
time: 757ms
memory: 126304kb

Manager to Encoder

23 1000000 999999 71125
788479 71125
71125 523185
966598 71125
759269 71125
71125 33350
71125 634746
933868 71125
71125 286119
712627 71125
97622 71125
342263 71125
71125 433666
777398 71125
71125 815427
78015 71125
71125 374191
524798 71125
223097 71125
71125 266273
71125 872226
71125 733481
177699...

Encoder to Manager

1
23 1000000 999999
796849 148779 0
148779 819485 1
312064 148779 0
148779 13222 1
148779 567248 1
148779 632633 1
148779 463089 1
148840 148779 0
148779 741225 1
148779 231770 1
148779 356522 1
100662 148779 0
148779 551996 1
148779 715651 1
148779 542712 1
148779 273756 1
965207 148779 0
148779 82...

Manager to Decoder

1
23 1000000 999999
796849 148779 0
148779 819485 1
312064 148779 0
148779 13222 1
148779 567248 1
148779 632633 1
148779 463089 1
148840 148779 0
148779 741225 1
148779 231770 1
148779 356522 1
100662 148779 0
148779 551996 1
148779 715651 1
148779 542712 1
148779 273756 1
965207 148779 0
148779 82...

Decoder to Manager

71125 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #24:

score: 4
Accepted

Test #81:

score: 4
Accepted
time: 1990ms
memory: 212752kb

Manager to Encoder

24 999130 1998260 703682
174218 703682
174218 108035
703682 493485
703682 335073
703682 730671
493485 725548
703829 335073
661753 108035
703682 647830
763891 108035
647830 508805
493485 858725
725548 200797
661753 20322
725548 507852
529299 174218
493485 101760
665475 200797
507852 658807
679277 507...

Encoder to Manager

1
24 999130 1998260
15028 739034 0
30883 267871 0
981734 444803 0
547058 486015 1
471448 917618 0
736944 797904 1
771386 563651 1
704764 151476 1
910261 660732 1
534605 548266 1
894502 869597 1
544312 924239 0
370082 647196 0
19580 780776 1
923217 868120 1
291242 105927 0
190721 144192 0
813255 1319...

Manager to Decoder

1
24 999130 1998260
15028 739034 0
30883 267871 0
981734 444803 0
547058 486015 1
471448 917618 0
736944 797904 1
771386 563651 1
704764 151476 1
910261 660732 1
534605 548266 1
894502 869597 1
544312 924239 0
370082 647196 0
19580 780776 1
923217 868120 1
291242 105927 0
190721 144192 0
813255 1319...

Decoder to Manager

703682 9

result:

points 1.0 Correct, ansewr is 9. Query count = 0

Test #82:

score: 4
Accepted
time: 2045ms
memory: 196588kb

Manager to Encoder

24 999991 1999982 54927
54927 938366
938366 664590
799323 664590
799323 758553
665495 758553
665495 29134
29134 941962
941962 493777
493777 576833
200488 576833
383177 200488
464886 383177
464886 114245
114245 874295
874295 985319
985319 645329
534346 645329
534346 916194
916194 837242
837242 115065...

Encoder to Manager

1
24 999991 1999982
975342 417584 0
820382 729761 1
417584 830190 1
546553 416189 0
910040 593688 0
438859 413125 0
101210 230311 1
854886 417584 0
973142 709103 1
877437 271585 0
68235 43293 0
342966 472605 0
43820 242833 0
149901 569213 0
800337 484892 0
268324 46726 0
934390 545889 1
391132 68172...

Manager to Decoder

1
24 999991 1999982
975342 417584 0
820382 729761 1
417584 830190 1
546553 416189 0
910040 593688 0
438859 413125 0
101210 230311 1
854886 417584 0
973142 709103 1
877437 271585 0
68235 43293 0
342966 472605 0
43820 242833 0
149901 569213 0
800337 484892 0
268324 46726 0
934390 545889 1
391132 68172...

Decoder to Manager

54927 621

result:

points 1.0 Correct, ansewr is 621. Query count = 0

Test #83:

score: 4
Accepted
time: 951ms
memory: 149824kb

Manager to Encoder

24 1000000 999999 705470
165026 705470
357585 165026
357585 215111
215111 831997
606568 831997
606568 186245
186245 990560
990560 919010
963104 919010
136159 963104
26704 136159
26704 137997
393735 137997
393735 740474
740474 738205
852447 738205
888557 852447
419582 888557
419582 322307
322307 4681...

Encoder to Manager

1
24 1000000 999999
856750 515168 0
587045 932796 0
4062 340280 1
309678 730656 1
731231 981970 1
359570 347797 1
349692 654107 1
635713 539152 0
590680 674348 0
407478 347797 1
408389 515168 0
812272 516897 1
271628 347797 1
685067 384763 0
907837 965627 1
643612 430696 1
902027 740362 1
527483 515...

Manager to Decoder

1
24 1000000 999999
856750 515168 0
587045 932796 0
4062 340280 1
309678 730656 1
731231 981970 1
359570 347797 1
349692 654107 1
635713 539152 0
590680 674348 0
407478 347797 1
408389 515168 0
812272 516897 1
271628 347797 1
685067 384763 0
907837 965627 1
643612 430696 1
902027 740362 1
527483 515...

Decoder to Manager

705470 2286

result:

points 1.0 Correct, ansewr is 2286. Query count = 0

Test #84:

score: 4
Accepted
time: 823ms
memory: 126188kb

Manager to Encoder

24 1000000 999999 755971
755971 673463
821836 755971
249636 755971
755971 425264
755971 547698
748891 755971
538796 755971
755971 652490
100496 755971
755971 237454
370498 755971
755971 567523
755971 897986
282292 755971
755971 751638
755971 1300
655823 755971
141655 755971
755971 812725
582427 7559...

Encoder to Manager

1
24 1000000 999999
427501 121178 1
207172 427501 0
961735 427501 0
427501 588021 1
527048 427501 0
427501 722917 1
427501 506479 1
427501 775860 1
791292 427501 0
561010 427501 0
108807 427501 0
386263 427501 0
81312 427501 0
427501 277764 1
31735 427501 0
31825 427501 0
374475 427501 0
427501 3277...

Manager to Decoder

1
24 1000000 999999
427501 121178 1
207172 427501 0
961735 427501 0
427501 588021 1
527048 427501 0
427501 722917 1
427501 506479 1
427501 775860 1
791292 427501 0
561010 427501 0
108807 427501 0
386263 427501 0
81312 427501 0
427501 277764 1
31735 427501 0
31825 427501 0
374475 427501 0
427501 3277...

Decoder to Manager

755971 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0

Subtask #25:

score: 4
Accepted

Test #85:

score: 4
Accepted
time: 2146ms
memory: 212504kb

Manager to Encoder

25 999125 1998250 796022
796022 615330
615330 621206
796022 996510
888967 621206
801851 615330
333641 796022
615330 129079
879920 621206
833607 333641
377834 833607
615330 630076
801851 582148
777181 879920
842476 879920
200558 833607
136957 833607
828302 333641
630076 330936
996510 523240
477345 80...

Encoder to Manager

1
25 999125 1998250
734802 775340 0
125650 531569 1
740279 490193 0
159804 158193 0
483664 829708 1
487267 631264 1
121496 287992 0
527125 355653 1
396795 50521 1
371176 797901 0
648282 403566 1
446272 347347 0
554001 468745 0
924323 72626 0
875058 454264 1
306365 551368 0
847801 821887 1
554741 623...

Manager to Decoder

1
25 999125 1998250
734802 775340 0
125650 531569 1
740279 490193 0
159804 158193 0
483664 829708 1
487267 631264 1
121496 287992 0
527125 355653 1
396795 50521 1
371176 797901 0
648282 403566 1
446272 347347 0
554001 468745 0
924323 72626 0
875058 454264 1
306365 551368 0
847801 821887 1
554741 623...

Decoder to Manager

796022 8

result:

points 1.0 Correct, ansewr is 8. Query count = 0

Test #86:

score: 4
Accepted
time: 2091ms
memory: 206024kb

Manager to Encoder

25 999216 1998432 109277
149426 109277
155886 149426
155886 801502
319396 801502
319396 216935
216935 322100
322100 578908
578908 806649
806649 86273
86273 200401
963111 200401
941857 963111
941857 613597
14440 613597
14440 542423
414872 542423
253733 414872
769588 253733
769588 976597
976597 109738...

Encoder to Manager

1
25 999216 1998432
405084 587799 1
188337 141218 0
533586 670315 1
29192 945947 0
446856 191672 1
665048 303390 0
597759 687925 1
36501 935063 0
774867 678969 1
10833 613325 0
112807 147170 0
333452 955823 1
697556 549760 1
585785 792543 1
8735 693259 0
19772 266892 0
687925 98091 0
555436 30271 0
...

Manager to Decoder

1
25 999216 1998432
405084 587799 1
188337 141218 0
533586 670315 1
29192 945947 0
446856 191672 1
665048 303390 0
597759 687925 1
36501 935063 0
774867 678969 1
10833 613325 0
112807 147170 0
333452 955823 1
697556 549760 1
585785 792543 1
8735 693259 0
19772 266892 0
687925 98091 0
555436 30271 0
...

Decoder to Manager

109277 1621

result:

points 1.0 Correct, ansewr is 1621. Query count = 0

Test #87:

score: 4
Accepted
time: 979ms
memory: 154532kb

Manager to Encoder

25 1000000 999999 832081
824716 832081
824716 198865
198865 989136
989136 494949
415110 494949
764674 415110
764674 537924
537924 314727
314727 229369
229369 490676
81854 490676
81854 678048
95792 678048
95792 526102
526102 499557
931310 499557
931310 210981
210981 485421
395708 485421
395708 538735...

Encoder to Manager

1
25 1000000 999999
508391 387368 1
362298 542291 1
382659 272678 1
701603 144239 1
378333 272678 1
272678 760259 0
863245 628633 1
939780 764839 0
701603 309980 1
766674 208219 0
701603 191085 1
729434 930647 1
998162 701603 0
303305 244536 1
754692 673655 1
272678 84444 0
849686 568390 0
701603 55...

Manager to Decoder

1
25 1000000 999999
508391 387368 1
362298 542291 1
382659 272678 1
701603 144239 1
378333 272678 1
272678 760259 0
863245 628633 1
939780 764839 0
701603 309980 1
766674 208219 0
701603 191085 1
729434 930647 1
998162 701603 0
303305 244536 1
754692 673655 1
272678 84444 0
849686 568390 0
701603 55...

Decoder to Manager

832081 1610

result:

points 1.0 Correct, ansewr is 1610. Query count = 0

Test #88:

score: 4
Accepted
time: 892ms
memory: 126392kb

Manager to Encoder

25 1000000 999999 223985
315131 223985
690357 223985
223985 331688
872240 223985
223985 374049
223985 52896
223985 461319
223985 961822
223985 306356
983114 223985
78251 223985
190785 223985
210034 223985
741197 223985
223985 670699
223985 464002
616499 223985
223985 212717
223985 28206
223985 31093...

Encoder to Manager

1
25 1000000 999999
148625 228273 0
228273 351262 1
228273 886645 1
146564 228273 0
228273 158999 1
280830 228273 0
423602 228273 0
228273 830055 1
213726 228273 0
721141 228273 0
423916 228273 0
708071 228273 0
587353 228273 0
228273 520775 1
228273 335879 1
228273 480922 1
228273 130980 1
367320 2...

Manager to Decoder

1
25 1000000 999999
148625 228273 0
228273 351262 1
228273 886645 1
146564 228273 0
228273 158999 1
280830 228273 0
423602 228273 0
228273 830055 1
213726 228273 0
721141 228273 0
423916 228273 0
708071 228273 0
587353 228273 0
228273 520775 1
228273 335879 1
228273 480922 1
228273 130980 1
367320 2...

Decoder to Manager

223985 2

result:

points 1.0 Correct, ansewr is 2. Query count = 0