QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#630729#4096. 코딩 테스트Matutino100 ✓1801ms357524kbC++172.7kb2024-10-11 20:09:402024-10-11 20:09:42

Judging History

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

  • [2024-10-11 20:09:42]
  • 评测
  • 测评结果:100
  • 用时:1801ms
  • 内存:357524kb
  • [2024-10-11 20:09:40]
  • 提交

answer

#include<bits/stdc++.h>
#define reg register
#define int long long
inline int min(reg int x,reg int y){return x<y?x:y;}
inline bool cmin(reg int &x,reg int y){return x>y?x=y,1:0;}
const int N=5e5+10,INF=1e18;
int n,m,a[N],b[N],idx,rt[N],lim[N];
struct Line{
	int k,b;
	inline int operator()(const int &A)const{return k*A+b;}
	inline Line operator+(const Line &A)const{return {k+A.k,b+A.b};}
}tmp,tmp2;
struct Node{Line pre,suf,sum,mn; int t;}tr[N<<5];
int ls[N<<5],rs[N<<5];
inline int upd(reg Line &A,reg Line B,reg int x){
	if (A(x)>B(x)) std::swap(A,B);
	return A.k<=B.k?INF:(B(x)-A(x))/(A.k-B.k)+x+1; 
}
inline Node merge(reg Node A,reg Node B,reg int x){
	reg Node C={A.pre,B.suf,A.sum+B.sum,A.mn,min(A.t,B.t)};
	cmin(C.t,upd(C.suf,B.sum+A.suf,x)),cmin(C.t,upd(C.pre,A.sum+B.pre,x));
	cmin(C.t,upd(C.mn,B.mn,x)),cmin(C.t,upd(C.mn,A.suf+B.pre,x));
	return C;
}
void build(reg int &o,reg int l,reg int r){
	o=++idx; if (l==r) return tmp={-1,a[l]+b[l]},tmp2={-1,a[l]+b[l]+b[l-1]},tr[o]={tmp,tmp2,tmp,tmp2,INF},void();
	reg int mid=l+r>>1; build(ls[o],l,mid),build(rs[o],mid+1,r),tr[o]=merge(tr[ls[o]],tr[rs[o]],0);
}
void modify(reg int &o,reg int pre,reg int l,reg int r,reg int x){
	tr[o=++idx]=tr[pre],ls[o]=ls[pre],rs[o]=rs[pre]; if (l==r) return; reg int mid=l+r>>1;
	if (tr[ls[o]].t==x) modify(ls[o],ls[pre],l,mid,x); if (tr[rs[o]].t==x) modify(rs[o],rs[pre],l,mid,x); 
	tr[o]=merge(tr[ls[o]],tr[rs[o]],x);
}
Node query(reg int o,reg int l,reg int r,reg int L,reg int R,reg int x){
	if (L<=l&&r<=R) return tr[o]; reg int mid=l+r>>1;
	if (R<=mid) return query(ls[o],l,mid,L,R,x); if (L>mid) return query(rs[o],mid+1,r,L,R,x);
	return merge(query(ls[o],l,mid,L,R,x),query(rs[o],mid+1,r,L,R,x),x);
}
#undef int
std::vector<int> testset(std::vector<int> A, std::vector<int> B, std::vector<int> L, std::vector<int> U){
	std::vector<int> res;
	#define int long long
	n=A.size(); for (reg int i=1;i<=n;i++) a[i]=A[i-1],i<n?b[i]=B[i-1]:0;
	build(rt[m=1],1,n),lim[m]=0;
	while (1){
		if (tr[rt[m]].t>1000000000) break;
		lim[m+1]=tr[rt[m]].t,modify(rt[m+1],rt[m],1,n,lim[m+1]),m++;
	}
	lim[m+1]=1e9;
	// for (reg int i=1;i<=m;i++) std::cerr<<lim[i]<<" "; std::cerr<<"\n";
	// assert(0);
	for (reg int i=0;i<L.size();i++){
		// std::cerr<<"<< "<<i<<"\n";
		reg int l=1,r=m,now,pl=L[i]+1,pr=U[i]+1;
		while (l<=r){
			reg int mid=l+r>>1;
			if (query(rt[mid],1,n,pl,pr,lim[mid]).mn(lim[mid])>=0) l=mid+1,now=mid; else r=mid-1;
		}
		// std::cerr<<now<<"\n";
		// std::cerr<<"qwq\n";
		reg int ans; l=lim[now],r=lim[now+1]-1;
		while (l<=r){
			reg int mid=l+r>>1;
			if (query(rt[now],1,n,pl,pr,mid).mn(mid)>=0) l=mid+1,ans=mid; else r=mid-1;
		}
		res.push_back(ans);
	}
	return res;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 3
Accepted

Test #1:

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

input:

2 1
746 733
619
0 1

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
1049

result:

ok 2 lines

Test #2:

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

input:

3 1
620 302 785
59 605
0 2

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
679

result:

ok 2 lines

Test #3:

score: 3
Accepted
time: 487ms
memory: 199868kb

input:

100000 100000
85 25 780 928 387 223 750 400 72 245 24 189 172 110 18 2 18 53 578 143 175 117 40 143 2 308 297 201 531 265 10 117 68 13 763 171 288 107 338 815 16 767 533 57 343 63 936 886 2 220 832 302 203 431 8 158 886 16 43 471 103 441 3 349 228 29 84 110 396 36 276 139 13 321 71 36 5 34 59 730 69...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
893
205
67
1121
1029
468
632
325
466
370
618
1722
379
160
444
211
492
131
561
348
298
282
829
465
613
572
432
297
412
535
1106
754
192
291
1164
435
737
1078
395
557
12
729
268
141
454
968
812
697
835
571
528
203
159
444
204
341
920
769
734
1310
337
204
932
556
33...

result:

ok 100001 lines

Test #4:

score: 3
Accepted
time: 546ms
memory: 199052kb

input:

100000 100000
593 696 4 127 111 10 342 630 380 126 136 361 16 511 56 193 131 289 292 54 218 75 144 262 409 446 428 15 96 71 56 38 99 35 174 553 37 117 827 187 137 15 9 55 704 119 477 70 251 219 833 498 233 127 94 53 128 201 286 128 16 532 236 24 38 895 213 513 240 221 41 770 269 499 271 160 227 12 4...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
176
828
597
165
169
445
459
787
172
930
611
645
454
735
500
644
287
437
365
347
286
554
365
915
564
791
22
658
275
476
706
579
390
263
331
171
416
442
534
377
210
153
281
245
452
159
773
755
439
115
781
449
37
568
441
261
607
222
128
210
195
125
209
497
86
251
38...

result:

ok 100001 lines

Test #5:

score: 3
Accepted
time: 478ms
memory: 201304kb

input:

100000 100000
610 525 738 808 913 811 459 795 540 643 308 759 486 194 549 916 168 999 501 576 699 540 922 919 768 78 851 878 313 874 239 309 100 1000 220 654 922 858 119 482 645 963 125 511 730 329 105 193 931 444 442 1000 28 664 254 555 597 150 292 311 928 195 39 849 201 323 345 985 82 653 35 298 9...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
1183
755
992
1803
620
904
1460
387
1320
573
752
915
581
890
1381
993
1695
1470
1340
1222
1271
836
1519
890
1091
2394
1052
1101
930
1024
546
1331
1414
1697
1235
1261
1670
1605
367
839
1183
1290
1417
633
2291
864
1639
1884
1474
1551
220
407
902
1011
719
1671
1643
1...

result:

ok 100001 lines

Test #6:

score: 3
Accepted
time: 519ms
memory: 205996kb

input:

100000 100000
534 445 777 649 627 525 630 634 82 950 103 189 934 533 535 576 553 282 760 148 675 916 49 254 484 0 822 975 980 829 409 239 824 16 564 872 282 897 454 318 259 35 639 945 752 953 972 582 661 911 442 777 628 32 863 868 549 373 79 968 367 283 986 850 420 183 111 802 529 998 462 543 945 15...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
270
967
1254
1076
847
893
1262
1079
728
1284
315
1372
1339
1267
1445
962
1502
1297
1377
1646
691
1222
425
779
654
1020
850
1229
984
1468
646
1270
1257
1431
541
1324
399
1456
266
1228
664
744
879
918
463
1446
1033
1355
1032
1477
758
1344
883
747
984
1149
888
1201
...

result:

ok 100001 lines

Test #7:

score: 3
Accepted
time: 226ms
memory: 152968kb

input:

100000 100000
996 987 1000 1000 995 1000 956 997 1000 960 983 995 1000 1000 1000 959 1000 993 991 976 986 1000 796 988 939 982 999 967 996 981 1000 983 952 1000 1000 994 998 892 1000 895 1000 988 999 952 994 1000 985 998 995 992 991 1000 990 984 961 1000 993 996 889 999 968 982 998 899 965 999 1000 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
2975
2487
2879
2244
2984
2388
2303
2164
2879
2259
2474
2484
2138
2479
2930
2281
2442
2394
2292
2822
2425
2866
2453
2466
2888
2450
2989
2461
2460
2214
2461
2398
2959
2989
2455
2480
2744
2282
2866
2244
2264
2490
2297
2300
2278
2448
2425
2492
2161
2169
2973
2470
287...

result:

ok 100001 lines

Test #8:

score: 3
Accepted
time: 233ms
memory: 153620kb

input:

100000 100000
998 1000 995 998 997 999 950 988 981 999 735 977 973 967 1000 996 1000 984 999 976 912 978 1000 993 942 996 992 996 997 1000 999 994 987 1000 1000 983 893 813 984 998 989 991 909 918 968 995 1000 1000 1000 976 993 999 999 1000 1000 998 957 999 974 998 944 998 999 839 945 998 998 993 99...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
2275
2247
2210
2240
2238
2302
2329
2271
2224
2307
2250
2257
2278
2294
2272
2298
2319
2255
2253
2289
2262
2254
2256
2245
2311
2323
2288
2217
2315
2310
2276
2277
2326
2208
2297
2195
2292
2275
2300
2208
2286
2259
2326
2252
2295
2309
2263
2200
2270
2275
2280
2230
215...

result:

ok 100001 lines

Test #9:

score: 3
Accepted
time: 210ms
memory: 131208kb

input:

100000 100000
998 997 979 985 1000 941 999 1000 925 980 999 999 996 997 1000 999 995 1000 997 999 991 1000 997 1000 1000 919 895 1000 987 1000 999 1000 987 960 1000 953 1000 993 935 963 999 941 1000 993 982 974 997 1000 988 980 1000 976 988 990 997 998 795 997 1000 984 999 928 1000 1000 1000 999 941...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
2261
2989
2290
2898
2314
2467
2974
2958
2975
2308
2313
2830
2303
2322
2477
2330
2477
2309
2414
2968
2936
2452
2997
2299
2995
2281
2286
2288
2326
2808
2447
2986
2275
2998
2995
2453
2484
2926
2477
2290
2307
2446
2311
2493
2889
2320
2483
2992
2929
2963
2434
2498
299...

result:

ok 100001 lines

Test #10:

score: 3
Accepted
time: 196ms
memory: 131576kb

input:

100000 100000
984 968 971 986 993 1000 953 988 1000 1000 1000 985 970 1000 959 1000 997 967 1000 1000 964 996 850 983 930 999 1000 997 1000 958 1000 993 1000 998 1000 976 1000 997 879 992 994 981 1000 1000 988 996 992 1000 972 993 1000 1000 1000 1000 993 1000 999 998 984 976 933 999 965 1000 959 967...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
2252
2249
2208
2300
2284
2293
2306
2322
2306
2316
2288
2254
2142
2323
2324
2261
2290
2316
2321
2304
2279
2289
2309
2325
2311
2292
2321
2324
2265
2323
2323
2320
2306
2318
2266
2330
2279
2265
2317
2292
2314
2313
2302
2305
2317
2293
2323
2301
2194
2322
2323
2306
229...

result:

ok 100001 lines

Subtask #2:

score: 15
Accepted

Test #11:

score: 15
Accepted
time: 226ms
memory: 351608kb

input:

100000 100
19808256 24285218 35700559 40271678 34848402 69357487 68150704 33167327 11009744 51263605 95965914 99915162 98938894 25021047 41422333 21862896 68096319 74258633 12048507 49456137 34627666 2028097 39447833 88604280 58491153 12515029 84711345 70929241 88589416 4246292 47068575 45272978 203...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
3433250
3433250
3433250
3433250
6853805
3433250
3433250
3433250
9902417
50171137
3440995
3433250
3433250
3433250
3433250
3433250
3440995
3433250
3433250
3433250
3440995
8010470
3433250
3433250
10706953
3433250
3433250
3433250
3433250
3433250
3433250
3433250
34332...

result:

ok 101 lines

Test #12:

score: 15
Accepted
time: 202ms
memory: 344236kb

input:

100000 100
88921421 99159549 93816734 72130021 96471468 89534281 92956917 92652520 94338754 99863235 99504357 92733129 67148282 99991598 98200140 89661108 99619071 99871162 93032209 98704373 98556888 68858432 99926054 99434030 99007615 96916459 86485887 98774714 92174853 89083931 79005091 99971472 9...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
133927502
155648888
133927502
155648888
155648888
133927502
155648888
133927502
133927502
155648888
174139225
155648888
133927502
133927502
133927502
133927502
133927502
133927502
133927502
164356276
133927502
133927502
133927502
174973218
133927502
133927502
133...

result:

ok 101 lines

Test #13:

score: 15
Accepted
time: 215ms
memory: 332424kb

input:

100000 100
99734214 99853669 99614609 99918192 96454897 99996685 99098030 93989335 96585609 99996695 98678066 99900592 99494392 99626642 99210853 99961421 99987995 99653875 99592931 99987711 99812612 99987799 98743364 99919644 99125267 99998801 97887938 99382342 99962374 99853232 98756057 99997548 9...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
198003283
198173206
198225435
198003283
198025309
198003283
198003283
198032626
198003283
198311576
198025309
198256611
198003283
198003283
198173206
198032626
198003283
198539948
198032626
198003283
198032626
198003283
198003283
198003283
198040768
198025309
198...

result:

ok 101 lines

Test #14:

score: 15
Accepted
time: 232ms
memory: 319608kb

input:

100000 100
99982075 99945005 99999993 99999407 99999872 99999415 99999726 100000000 99987465 99995262 99999470 99996049 99998857 99298344 99990597 99989903 99758575 99974392 98921822 99908251 99998463 99995643 99963584 99458099 99933018 99999195 99352604 99800551 99977580 99994686 99990057 99999990 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199800476
199805496
199800476
199800476
199800476
199800476
199800476
199800476
199800476
199807625
199800476
199807255
199810970
199800476
199800476
199800476
199800476
199800476
199800476
199800476
199800476
199800476
199807640
199815600
199800476
199803693
199...

result:

ok 101 lines

Test #15:

score: 15
Accepted
time: 207ms
memory: 274868kb

input:

100000 100
99999934 99999995 99999991 99999865 99958637 99999917 99996758 99999998 99974500 99999089 99999906 99998406 99998960 99999897 99999911 99973867 99991317 99999861 99999034 99995700 99995890 99999870 99999815 99998962 99999996 99998725 99999610 99999956 100000000 99998973 99999999 99999978 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199991330
199976655
199983745
199977521
199976035
199976035
199982726
199976035
199977406
199976035
199977204
199976035
199976580
199976035
199977149
199976526
199976275
199977209
199976035
199976035
199977586
199976036
199976854
199976037
199976342
199977329
199...

result:

ok 101 lines

Test #16:

score: 15
Accepted
time: 155ms
memory: 225048kb

input:

100000 100
99999941 99998366 99999998 99999950 99999981 100000000 99999989 99999808 99999992 99999992 100000000 99998306 99999978 100000000 100000000 99996483 99997908 100000000 99999992 99999934 99999748 100000000 100000000 99999065 100000000 99999989 99999639 99997301 99999985 99999191 100000000 9...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200000855
199997888
199999767
199997868
199997885
199997895
199998314
199998090
199998250
199998710
199997932
199999317
199997909
200000361
199997911
199998443
199998336
200033706
199998547
199998766
199998617
200003658
199998068
199999645
199997852
200000359
199...

result:

ok 101 lines

Test #17:

score: 15
Accepted
time: 121ms
memory: 154428kb

input:

100000 100
99999999 99999973 100000000 99999999 99999922 100000000 99998545 100000000 99999968 99999687 100000000 100000000 99999913 100000000 99999999 99999977 99999999 100000000 99999986 99999997 99999953 100000000 99999997 99999981 99999996 100000000 100000000 100000000 99996744 100000000 1000000...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200000635
200001265
200001598
200002506
200000824
200001658
200000867
200000886
200006590
200002150
200002776
200003603
200000996
200002587
200000883
200000747
200000883
200002961
200000754
200001317
200005283
200000862
200004396
200000971
200001748
200004680
200...

result:

ok 101 lines

Test #18:

score: 15
Accepted
time: 67ms
memory: 98900kb

input:

100000 100
100000000 99999981 99999998 100000000 100000000 99999997 100000000 100000000 100000000 100000000 100000000 100000000 100000000 99999993 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200001373
200001988
200016266
200000961
200001656
200002524
200002202
200001319
200001841
200001307
200011455
200001483
200001147
200004554
200001365
200009513
200001135
200022270
200015495
200001499
200007381
200001130
200001060
200001103
200001044
200001016
200...

result:

ok 101 lines

Test #19:

score: 15
Accepted
time: 42ms
memory: 71028kb

input:

100000 100
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 99999823 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200003271
200004868
200001141
200003596
200002857
200002218
200001122
200001043
200003641
200005408
200002055
200001347
200001534
200009056
200002130
200003155
200001200
200001080
200005448
200001701
200001459
199998994
200032293
200007217
200002156
200004262
200...

result:

ok 101 lines

Test #20:

score: 15
Accepted
time: 23ms
memory: 56356kb

input:

100000 100
100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 99999999 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200002318
200002692
200001521
200023435
200255101
200004244
200002091
200001069
200001090
200001668
200001601
200001195
200013277
200001213
200001315
200001175
200003211
200001743
200006207
200001393
200005432
200003276
200001822
200001386
200005366
200001053
200...

result:

ok 101 lines

Test #21:

score: 15
Accepted
time: 232ms
memory: 345064kb

input:

100000 100
99984106 98775782 96191446 99952406 71532281 99397001 99291317 99932001 96567743 99206998 99502871 94324129 95918554 88026690 73694208 98870169 99843678 95859885 93424130 99923516 99972577 99956507 99781005 95071555 99965875 98882480 90226562 99758425 99983535 87472212 99984133 99998690 9...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
169182463
169182463
169182463
169182463
169182463
185536912
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169182463
169...

result:

ok 101 lines

Test #22:

score: 15
Accepted
time: 245ms
memory: 345240kb

input:

100000 100
99961070 97653306 95437902 99864084 86083999 99856542 90657394 98955840 99431000 99957220 99976207 99917863 99999565 99967250 99318017 87959311 98958345 89080821 90435278 96231780 98760564 85579929 99999028 99939837 99829756 93711710 99413822 98118268 99237234 90996961 95142150 99562867 9...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
185621182
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187406979
187...

result:

ok 101 lines

Test #23:

score: 15
Accepted
time: 203ms
memory: 331624kb

input:

100000 100
99998679 99999498 99964852 99997581 99685010 99988165 99998680 99236510 99945447 99990311 99995274 99997294 99996653 99975373 99999222 99989265 99999798 99999838 98802089 99989066 99981359 99089135 99986393 99949212 99999093 99999865 99999920 99868700 99995994 99981255 99663165 99991527 9...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199583895
199...

result:

ok 101 lines

Test #24:

score: 15
Accepted
time: 259ms
memory: 334696kb

input:

100000 100
99998507 99999999 99980744 99969223 99987011 99998433 99999945 99960890 99996715 99999557 99902522 99999958 99991507 99928929 99751987 99999692 99790657 99977186 99998924 99924793 99737783 99985294 99288863 99997525 99973984 99865452 99940105 99873247 99375922 99556798 99842604 99985586 9...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199592295
199...

result:

ok 101 lines

Test #25:

score: 15
Accepted
time: 163ms
memory: 285152kb

input:

100000 100
99999967 99594396 99999803 99999990 99977895 99999998 99999999 99998925 99999841 99997906 99999997 99999953 99999994 99999958 100000000 99967338 99999995 99952330 99965891 99999993 99999421 99999305 99993239 100000000 99996045 99976201 99997787 99999956 99995688 99999623 99999995 99999568...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199976603
199976617
199976497
199976431
199976618
199976819
199976729
199976605
199976729
199976521
199976548
199976536
199976754
199976455
199976729
199976557
199976460
199976460
199976729
199976460
199976617
199976548
199976431
199976783
199976888
199976497
199...

result:

ok 101 lines

Test #26:

score: 15
Accepted
time: 179ms
memory: 276044kb

input:

100000 100
99999987 99995613 99997997 99998338 99999966 99974132 99999968 99999991 99999977 100000000 99999948 99999800 99999687 99988541 99998264 99999821 99993977 99999997 99998398 99999971 99994114 99998729 100000000 99999875 100000000 99999951 99999688 99999999 99999949 99999464 99999614 9999999...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199976297
199976297
199976343
199976343
199976297
199976343
199976336
199976297
199976336
199976297
199976336
199976336
199976336
199976336
199976343
199976297
199976297
199976297
199976343
199976343
199976336
199976297
199976343
199976297
199976343
199976343
199...

result:

ok 101 lines

Test #27:

score: 15
Accepted
time: 135ms
memory: 198936kb

input:

100000 100
99999998 99999774 99999038 99999994 99999976 100000000 100000000 100000000 99999977 100000000 99999942 99996336 100000000 100000000 99999250 99999994 100000000 99999863 99999976 100000000 99999729 99999996 100000000 100000000 99999679 99999999 99999992 100000000 100000000 100000000 999999...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199999506
199999660
199999569
199999585
199999689
199999564
199999588
199999690
199999711
199999700
199999739
199999747
199999608
199999575
199999504
199999553
199999666
199999546
199999702
199999631
199999664
199999695
199999520
199999624
199999617
199999713
199...

result:

ok 101 lines

Test #28:

score: 15
Accepted
time: 148ms
memory: 195300kb

input:

100000 100
99999964 99995600 99999997 99999990 99999999 99999999 99999988 100000000 99999998 100000000 100000000 99999993 99999979 100000000 100000000 99999973 99999086 100000000 99999848 99999992 99999991 99999463 99999783 99997941 100000000 99999850 100000000 99999932 99999967 99999994 100000000 1...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199999526
199999517
199999479
199999531
199999531
199999494
199999483
199999513
199999537
199999485
199999528
199999485
199999478
199999499
199999476
199999500
199999474
199999509
199999527
199999511
199999505
199999514
199999512
199999516
199999529
199999543
199...

result:

ok 101 lines

Test #29:

score: 15
Accepted
time: 74ms
memory: 120724kb

input:

100000 100
99999998 100000000 100000000 100000000 99999996 99999980 99999606 100000000 100000000 100000000 100000000 99999998 100000000 99999999 100000000 99999999 100000000 99999998 100000000 99999647 100000000 100000000 99999999 100000000 99999991 99999994 100000000 99999997 100000000 100000000 10...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200000959
200001044
200001083
200001021
200000990
200000910
200000935
200001043
200001115
200001028
200001064
200001062
200001036
200001024
200000950
200000946
199998902
200001045
200001063
200001050
200001079
200000962
200000929
200000984
200000969
200000982
200...

result:

ok 101 lines

Test #30:

score: 15
Accepted
time: 82ms
memory: 115404kb

input:

100000 100
100000000 100000000 99999986 100000000 99999963 100000000 100000000 99999890 100000000 100000000 100000000 99999999 99999999 100000000 100000000 100000000 100000000 100000000 99999998 99999999 100000000 100000000 100000000 100000000 100000000 100000000 99999901 99999889 100000000 10000000...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200000938
200000945
200000924
200000944
200000906
200000938
200000933
200000936
200000921
200000925
200000912
200000937
200000945
200000907
200000914
200000938
200000928
200000941
200000902
200000941
200000927
200000915
200000945
200000920
200000934
200000910
200...

result:

ok 101 lines

Subtask #3:

score: 36
Accepted

Test #31:

score: 36
Accepted
time: 806ms
memory: 31240kb

input:

5000 100000
93608251 16211038 93349835 94727166 27749929 28580474 39398397 58978075 32539760 49630110 14330110 62149976 63372420 45530888 44815920 40624609 4942456 35245376 9509556 17318048 91459277 83937735 82541206 16905922 22994630 56339982 33531160 45581398 67402358 51369287 2786263 53237145 830...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
14700204
21288935
6977271
6977271
12647030
6977271
6977271
6977271
12647030
6977271
6977271
6977271
6977271
6977271
6977271
6977271
12647030
12647030
6977271
6977271
12647030
6977271
6977271
6977271
12647030
37448760
6977271
14700204
6977271
12647030
6977271
6977...

result:

ok 100001 lines

Test #32:

score: 36
Accepted
time: 773ms
memory: 32340kb

input:

5000 100000
82828123 95799582 43820359 90127238 56235887 78150460 93507009 96591806 86423481 94895084 82100076 94194957 91441292 90209583 97860572 97698652 68557340 99706593 34044897 93238691 86202199 88683188 86559347 93076047 73141247 97130836 89727854 98129702 85630933 80894303 73045164 85475297 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
126575860
126575860
126575860
143701045
126575860
170613823
143701045
143701045
126575860
126575860
172861749
126575860
126575860
126575860
126575860
126575860
143701045
143519126
126575860
143701045
133698077
126575860
152649240
126575860
152649240
152649240
126...

result:

ok 100001 lines

Test #33:

score: 36
Accepted
time: 662ms
memory: 27060kb

input:

5000 100000
96012616 99429813 99624750 99381014 99980502 99993037 99703586 99988048 99965210 99995994 99025192 84244649 97417197 99892788 99916470 99938573 96446673 99989453 85387315 99888398 99291260 99601349 91417592 99813237 99635623 92171538 96939941 99632513 99336374 98693179 98680317 99927733 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
190737948
191089420
190737948
190737948
190737948
193216637
192474531
198593332
190737948
190737948
190103821
190103821
190737948
190737948
190737948
192474531
191089420
190737948
191089420
190737948
190737948
190737948
190737948
190737948
190737948
190737948
190...

result:

ok 100001 lines

Test #34:

score: 36
Accepted
time: 643ms
memory: 32696kb

input:

5000 100000
99978725 97985760 99891087 99988604 99999807 98436639 99985292 99818187 99802110 99996115 99767504 99998401 99984142 99997383 99810342 99995097 98415433 99501601 99914594 98590782 99683661 99943693 99533008 99859805 99707573 99367915 99474753 99983916 99997167 98891838 99807634 99698506 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
198480881
198291296
198117670
198118365
198291296
198118365
198291296
198118365
198731701
198118365
198118365
198291296
198118365
198118365
198118365
198118365
198118365
198340225
198118365
199319379
198162408
198409770
198118365
198991009
198291296
198291296
198...

result:

ok 100001 lines

Test #35:

score: 36
Accepted
time: 591ms
memory: 27044kb

input:

5000 100000
99986950 99924484 99934484 99717257 99971564 99998421 99978242 99895349 96749877 99997733 99993399 99919842 99998954 99999449 99998116 99933290 99617595 99995807 99998100 99980424 99998867 99918225 99970258 99684050 99998452 99999220 99999506 99996872 99824516 99997016 99683701 99999926 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199686196
199807313
199639454
199642418
199906533
199638768
199843110
199624132
199632837
199624132
199624132
199663148
199928583
199687670
199624132
200459148
199679834
199922294
199643504
199738578
199505764
199690967
199624132
199671888
199624132
199635012
199...

result:

ok 100001 lines

Test #36:

score: 36
Accepted
time: 566ms
memory: 29080kb

input:

5000 100000
99999716 99999957 99999766 99999362 99994650 99983426 99982710 99992590 99970275 99999417 99923465 99997667 99999313 99969772 99999965 99999765 99999932 99970260 99971602 99998087 99995083 99990390 99999965 99999903 99999983 99987568 99764871 99988931 99999921 99999997 99948237 99997572 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200012937
199928913
199941598
199927017
199943363
200017855
200246008
199948078
199925951
199947905
199928097
199951853
199926393
199951747
200459076
199948116
199964966
199962331
200136933
199925034
200004530
199958929
199926718
200330875
199977900
199928348
199...

result:

ok 100001 lines

Test #37:

score: 36
Accepted
time: 527ms
memory: 32340kb

input:

5000 100000
99999533 99999866 100000000 99970378 99999161 99999464 99999996 99998365 99964169 99997634 99999993 99999473 100000000 99999941 99999972 99999401 99937711 99999481 99977698 99999786 99999937 99998392 99999993 99988404 99999902 99996253 99999751 99999452 99997119 99999997 99999992 9999930...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200032680
199997335
200003854
200094192
200012569
200216900
200024050
200048503
200007926
200024448
200000731
200001613
200003651
200010947
199997617
200153052
200001803
200043401
199999942
200010043
200171395
200057532
200008012
200004766
200031196
200010272
200...

result:

ok 100001 lines

Test #38:

score: 36
Accepted
time: 525ms
memory: 32264kb

input:

5000 100000
99999758 100000000 99603367 100000000 99999999 100000000 99997096 99999979 99965697 99999966 99999223 99998539 100000000 99999877 99999998 99999824 99999844 99999997 99999233 99999899 100000000 99999991 99957113 99999944 99999962 99999740 99999980 99999868 99999997 99999974 99999881 9999...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200019761
200150122
200041029
200122551
200297709
200015025
200842849
200027110
200015462
200023781
200330518
200147441
200024630
200078993
200033450
200016166
200026914
200017349
200046663
200019371
200017421
200047651
200028709
200037039
200014686
200038815
200...

result:

ok 100001 lines

Test #39:

score: 36
Accepted
time: 546ms
memory: 24636kb

input:

5000 100000
100000000 99999901 100000000 99999544 99998079 99998457 99999993 99999999 99999988 99999995 100000000 99999998 99990071 99998619 99999919 99999651 100000000 99999972 99999998 99999998 99999943 100000000 99999985 100000000 99999690 100000000 99998970 99999404 100000000 100000000 99997512 ...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200334858
200024712
200019014
200065522
200069977
200046162
224998883
200033514
201189765
200021347
200026764
200039384
200065482
200047927
200132766
200046145
200034834
200129514
200088211
200052188
200028371
200914980
200090338
200034837
200024336
200074799
200...

result:

ok 100001 lines

Test #40:

score: 36
Accepted
time: 556ms
memory: 22504kb

input:

5000 100000
99999997 99972589 99999989 99999998 100000000 100000000 100000000 99999999 99999997 100000000 100000000 99999986 100000000 100000000 100000000 100000000 100000000 100000000 99999259 99999908 99999912 99999966 99999861 100000000 99999910 99999938 100000000 99999975 99999998 100000000 9999...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200102904
200023462
200030554
200029853
200035517
200097747
200052047
200032106
200096592
200077847
200031232
200031513
202380483
200026141
200025215
200028172
200419991
200068586
200028405
200036541
200022617
200072713
200118037
200047356
200082748
200042939
200...

result:

ok 100001 lines

Test #41:

score: 36
Accepted
time: 472ms
memory: 26088kb

input:

5000 100000
100000000 34490431 34500526 34510574 34520605 34530624 34540623 34550606 34560573 34570531 34580483 34590430 34600376 34610320 34620262 34630201 34640138 34650072 34660004 34669936 34679865 34689789 34699708 34709624 34719539 34729449 34739356 34749262 34759167 34769072 34778975 34788874...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99117098
99020632
99019531
99034786
99026379
99021290
99089284
99036804
99023789
99020470
99270639
99109623
99019388
99031205
99020786
99083581
99052312
99025409
99024581
99023703
99025787
99296577
99022511
99018632
99019939
99021042
99020623
99041599
99028376
99...

result:

ok 100001 lines

Test #42:

score: 36
Accepted
time: 452ms
memory: 32996kb

input:

5000 100000
100000000 63746319 63756413 63766483 63776550 63786599 63796640 63806670 63816697 63826722 63836744 63846760 63856767 63866766 63876761 63886729 63896682 63906631 63916571 63926510 63936448 63946380 63956295 63966210 63976124 63986031 63995933 64005832 64015728 64025617 64035497 64045374...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99045423
99015355
99014713
99203257
99016588
99090518
99019463
99017344
99033260
99029813
99151503
99014785
99015880
99019194
99014905
99042875
99026871
99016538
99016863
99021238
99031573
99014618
99020248
99014986
99022724
99014978
99017384
99019945
99033071
99...

result:

ok 100001 lines

Test #43:

score: 36
Accepted
time: 465ms
memory: 30932kb

input:

5000 100000
100000000 40082058 40102071 40122065 40142048 40162022 40181974 40201922 40221868 40241807 40261723 40281621 40301509 40321386 40341258 40361119 40380975 40400824 40420669 40440507 40460340 40480163 40499981 40519787 40539590 40559382 40579169 40598944 40618712 40638472 40658225 40677974...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99024128
99022762
99031040
99049415
99026395
99022715
99023798
99024489
99055741
99023890
99027801
99031139
99023003
99030425
99035240
99026628
99030935
99031906
99022761
99024415
99077964
99030756
99027615
99023150
99034631
99031133
99067501
99030131
99028727
99...

result:

ok 100001 lines

Test #44:

score: 36
Accepted
time: 421ms
memory: 32572kb

input:

5000 100000
100000000 54900931 54921022 54941078 54961120 54981139 55001127 55021106 55041076 55061005 55080930 55100849 55120767 55140672 55160564 55180425 55200282 55220129 55239972 55259796 55279611 55299415 55319212 55339003 55358787 55378561 55398322 55418083 55437843 55457600 55477355 55497109...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99022059
99056614
99021410
99021145
99022437
99021145
99022012
99053074
99021657
99035443
99021256
99025053
99081374
99023212
99021728
99032240
99027767
99036278
99021717
99041735
99021522
99045989
99044987
99210799
99021146
99021145
99021556
99021269
99026498
99...

result:

ok 100001 lines

Test #45:

score: 36
Accepted
time: 431ms
memory: 32972kb

input:

5000 100000
100000000 40640921 40670926 40700905 40730875 40760834 40790786 40820704 40850611 40880509 40910391 40940265 40970120 40999959 41029779 41059593 41089395 41119191 41148974 41178743 41208499 41238250 41267992 41297701 41327394 41357060 41386719 41416377 41446030 41475679 41505305 41534923...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99069952
99026839
99027439
99033653
99053605
99060673
99071644
99118736
99026794
99026794
99124005
99032123
99027126
99039913
99030478
99030857
99029123
99027317
99026821
99027744
99026833
99029923
99027824
99026923
99030128
99026794
99026794
99031897
99097361
99...

result:

ok 100001 lines

Test #46:

score: 36
Accepted
time: 433ms
memory: 32272kb

input:

5000 100000
100000000 41022674 41052707 41082678 41112642 41142602 41172553 41202486 41232385 41262275 41292151 41322014 41351863 41381707 41411545 41441378 41471196 41501012 41530819 41560621 41590390 41620157 41649913 41679640 41709357 41739066 41768743 41798411 41828071 41857726 41887367 41917006...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99028492
99028492
99030502
99030106
99266486
99080075
99030419
99032835
99028492
99028714
99028518
99035564
99038776
99028862
99032121
99031353
99242152
99074511
99028835
99081583
99029058
99032337
99028492
99236456
99148891
99028878
99102174
99266463
99030264
99...

result:

ok 100001 lines

Test #47:

score: 36
Accepted
time: 436ms
memory: 32236kb

input:

5000 100000
100000000 41199794 41239810 41279783 41319711 41359633 41399526 41439411 41479267 41519105 41558934 41598754 41638555 41678345 41718120 41757886 41797643 41837382 41877094 41916785 41956446 41996093 42035732 42075356 42114965 42154566 42194143 42233708 42273259 42312803 42352328 42391844...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99028547
99028528
99030712
99028528
99028528
99031045
99028528
99028528
99028528
99028528
99041049
99154301
99028528
99032626
99028528
99028607
99028545
99028528
99029287
99028528
99029112
99040780
99031452
99042631
99075758
99028593
99028528
99028528
99028528
99...

result:

ok 100001 lines

Test #48:

score: 36
Accepted
time: 429ms
memory: 27032kb

input:

5000 100000
100000000 47816681 47856717 47896677 47936628 47976566 48016499 48056400 48096251 48136097 48175900 48215688 48255453 48295214 48334966 48374707 48414444 48454141 48493829 48533502 48573170 48612828 48652465 48692098 48731713 48771320 48810917 48850503 48890069 48929634 48969191 49008716...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99025572
99029621
99026252
99049460
99025572
99025572
99025572
99037725
99025572
99025572
99035194
99027480
99226501
99064901
99025572
99025572
99065398
99035806
99025681
99025572
99025608
99077539
99054897
99025572
99244538
99025572
99031732
99061316
99031290
99...

result:

ok 100001 lines

Test #49:

score: 36
Accepted
time: 415ms
memory: 28288kb

input:

5000 100000
100000000 33286406 33336419 33386369 33436277 33486170 33536029 33585880 33635713 33685529 33735329 33785122 33834900 33884676 33934405 33984103 34033783 34083438 34133075 34182693 34232287 34281841 34331393 34380940 34430478 34479995 34529486 34578966 34628417 34677831 34727236 34776606...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99031342
99031342
99065680
99043925
99031342
99031342
99031342
99034359
99059108
99031342
99031342
99031342
99031342
99031342
99043608
99048202
99031342
99065661
99031342
99032653
99040965
99031877
99031342
99031342
99031342
99031745
99031342
99031405
99032076
99...

result:

ok 100001 lines

Test #50:

score: 36
Accepted
time: 400ms
memory: 26996kb

input:

5000 100000
100000000 34657949 34707964 34757908 34807830 34857744 34907639 34957510 35007352 35057186 35106998 35156805 35206599 35256348 35306093 35355790 35405479 35455158 35504801 35554424 35604018 35653602 35703181 35752715 35802234 35851737 35901232 35950684 36000119 36049545 36098959 36148353...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99110202
99032176
99047827
99125141
99049462
99031795
99031795
99031795
99046190
99035590
99031795
99060172
99032975
99031795
99036639
99031795
99031795
99031807
99031795
99031795
99032545
99031795
99055011
99035829
99031795
99045662
99031946
99316138
99031795
99...

result:

ok 100001 lines

Subtask #4:

score: 23
Accepted

Test #51:

score: 23
Accepted
time: 967ms
memory: 357524kb

input:

100000 100000
8220608 27643636 9653375 7527483 4568995 4937547 27001430 10512886 14865249 54452685 31213146 1223559 25266797 9367382 5798933 1485258 33036920 2988776 5046089 41823731 6136379 20608943 10327625 90179994 75745370 21933251 3376845 19790905 52189711 21570452 18938610 18445540 26257950 24...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
617226
813308
813308
813308
1952290
813308
1952290
813308
1952290
813308
813308
813308
813308
813308
1952290
1952290
813308
813308
813308
813308
813308
813308
1952290
813308
617226
813308
617226
813308
617226
813308
813308
813308
1952290
1952290
813308
813308
813...

result:

ok 100001 lines

Test #52:

score: 23
Accepted
time: 1029ms
memory: 352004kb

input:

100000 100000
20064301 36298252 65183256 41735566 86742251 75730152 79413846 70215535 9761253 77663056 27844196 58275854 37145780 18138436 8522436 6277386 84781610 20771918 16119135 2788611 23503452 88327349 84869872 69655360 73181922 46177938 4492762 48373586 68647254 5425714 31941645 90384835 8299...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
4223832
4797393
4223832
4797393
4797393
4797393
4797393
4797393
4797393
4797393
4223832
14763014
4797393
4797393
4797393
14763014
4797393
4223832
4223832
4223832
4797393
4797393
4797393
4797393
4223832
4797393
4797393
4797393
4797393
4797393
4797393
4797393
47973...

result:

ok 100001 lines

Test #53:

score: 23
Accepted
time: 904ms
memory: 347072kb

input:

100000 100000
99777653 96589509 86543160 99811736 94517655 99491563 95371808 96237464 98289654 99357174 92538157 98842173 99307799 99760379 94886210 98912706 97180752 98533047 99810585 99960660 67036672 91480360 99993538 99808134 99518079 91646185 95005027 99992343 97426218 98691392 98845722 9990438...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
181931955
181931955
181931955
181931955
181931955
189143154
181931955
188168334
188168334
190035377
190035377
181931955
181931955
188168334
181931955
181931955
190716658
181931955
181931955
181931955
181931955
181931955
181931955
188168334
181931955
181931955
181...

result:

ok 100001 lines

Test #54:

score: 23
Accepted
time: 720ms
memory: 315792kb

input:

100000 100000
99999523 99999940 99999578 99998393 99999718 99996990 99993472 99999604 99999813 99998052 99996275 99999731 100000000 99999901 99971236 99999970 99999949 99999928 99997964 99999576 99992924 99999936 95903433 99912313 99999808 99999997 99986119 99997187 99990090 99999981 99992018 999677...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199618869
199...

result:

ok 100001 lines

Test #55:

score: 23
Accepted
time: 484ms
memory: 124052kb

input:

100000 100000
100000000 99999993 100000000 100000000 99999996 100000000 99999998 100000000 99999998 99999993 99999995 100000000 99999946 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 99999998 100000000 100000000 100000000 99999999 99999999 100000...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199998903
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199999892
199...

result:

ok 100001 lines

Test #56:

score: 23
Accepted
time: 538ms
memory: 308008kb

input:

100000 100000
96683899 20105194 20370895 20623078 20793706 20954790 21115351 21263396 21405392 21534071 21654974 21766644 21872569 21978111 22081375 22179627 22277227 22369868 22460298 22548316 22635748 22722805 22806396 22888881 22970391 23050461 23125557 23200282 23274155 23347935 23421122 2349360...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582
112156291
99669667
99669582
112156291
99669582
112156291
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582
99669582...

result:

ok 100001 lines

Test #57:

score: 23
Accepted
time: 571ms
memory: 301704kb

input:

100000 100000
91848846 23148052 23387452 23618734 23848141 24052554 24248455 24440477 24610624 24778920 24946290 25110936 25275279 25429462 25578128 25722389 25856257 25982659 26106868 26219454 26326607 26430570 26531346 26630653 26723393 26814546 26900745 26986810 27072717 27157921 27242999 2732796...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
104465075
112780121
104465075
112780121
104465075
112780121
104465075
104465075
104465075
104465075
112780121
112780121
112780121
104465075
112780121
112780121
104465075
112080434
104465075
112780121
112780121
112780121
104465075
112078800
110217549
104465075
112...

result:

ok 100001 lines

Test #58:

score: 23
Accepted
time: 529ms
memory: 304776kb

input:

100000 100000
98176888 22249936 22694017 23133551 23463941 23776709 24066020 24269780 24471765 24639421 24780262 24905006 25024334 25140861 25251874 25360135 25464519 25564905 25663407 25760591 25857566 25953938 26047756 26140198 26229763 26315109 26399010 26480390 26561542 26642369 26722908 2680284...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
102078761
102346077
102078761
102346077
102346077
102346077
102346077
102346077
102346077
102346077
102078761
102078761
102346077
102346077
102078761
102346077
102078761
102078761
102346077
102078761
102346077
102078761
102078761
102346077
102346077
102346077
102...

result:

ok 100001 lines

Test #59:

score: 23
Accepted
time: 561ms
memory: 308032kb

input:

100000 100000
99844333 23137581 23601064 24057757 24451458 24773035 25082911 25370934 25645767 25915952 26180657 26434304 26685155 26932610 27178553 27402601 27606413 27799276 27991192 28168675 28343483 28517415 28674475 28830810 28984408 29132036 29274039 29408769 29540051 29670918 29800093 2992901...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
102935651
102814517
101628445
102814517
102814517
102814517
100500884
101648023
102814517
102814517
101647964
100500884
102814517
102814517
103293494
102814517
102859548
100500884
101628445
101650486
101628445
101628445
122576396
102814517
100500884
100789903
102...

result:

ok 100001 lines

Test #60:

score: 23
Accepted
time: 589ms
memory: 300812kb

input:

100000 100000
98509837 44816129 45158048 45458753 45724673 45933464 46122294 46288771 46446376 46603789 46756522 46906913 47047367 47184605 47312745 47440773 47565900 47669826 47772492 47869572 47960714 48049586 48137165 48224385 48311553 48396208 48477672 48556215 48632705 48708901 48783990 4885662...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
144131425
101653808
101653808
102953821
101653808
102572744
102572744
101653808
102953821
101653808
102572744
100636719
102572744
101653808
101653808
102601348
102953821
102572744
102572744
101653808
102572744
102953821
102953821
102578010
100636719
101653808
101...

result:

ok 100001 lines

Test #61:

score: 23
Accepted
time: 534ms
memory: 307744kb

input:

100000 100000
97879221 12692853 12768165 12839911 12903229 12960824 13017230 13073104 13127673 13182227 13234643 13286196 13337681 13389125 13438881 13487670 13536359 13584604 13632580 13679457 13725392 13770987 13816338 13861429 13906421 13951224 13995891 14040543 14085171 14129775 14174355 1421891...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
105562441
101913063
101913063
105562356
105562356
101913063
105571880
101913063
101913063
101913063
105562356
101913063
105562356
101913063
101913063
101913063
101913063
101913063
101913063
101913063
105639944
101913063
101913063
105562356
105697910
101913063
101...

result:

ok 100001 lines

Test #62:

score: 23
Accepted
time: 572ms
memory: 305828kb

input:

100000 100000
98640816 36018357 36400692 36735246 37068934 37378984 37615841 37841680 38031989 38222098 38381781 38541243 38684848 38826120 38960518 39091039 39220625 39331669 39441647 39548799 39652950 39756609 39855027 39952226 40049083 40145224 40240494 40325930 40410558 40494379 40573872 4064974...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
102295932
108238563
99905444
99905444
102295932
135468022
104469437
108238563
99905444
104469437
99905444
99905444
99905444
135461893
104469437
135503874
99905444
99905550
99905444
99905444
108242398
99905444
108242519
99905444
104469437
99905444
104469437
102295...

result:

ok 100001 lines

Test #63:

score: 23
Accepted
time: 597ms
memory: 308752kb

input:

100000 100000
99113280 49806339 50017347 50180799 50340765 50457290 50558480 50648325 50737959 50827161 50902372 50973349 51035804 51097491 51159017 51220356 51281138 51340839 51400037 51458685 51516630 51574386 51631709 51688893 51745768 51802523 51858203 51913853 51969469 52025037 52080572 5213607...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100928629
142010603
100928629
101539987
101539094
101539094
100928629
101539094
100928629
100928629
100945216
101539094
100928629
100928629
101539094
100928629
100928629
100928629
100928629
100928629
100928629
100931082
100928629
101539094
100928629
101539094
101...

result:

ok 100001 lines

Test #64:

score: 23
Accepted
time: 559ms
memory: 311468kb

input:

100000 100000
99140395 6876817 7522808 8129537 8624326 9001499 9361651 9675644 9987979 10237534 10486081 10726470 10956987 11148870 11335217 11514392 11689435 11859939 12028600 12197180 12344794 12485084 12623757 12756959 12886616 13007300 13121515 13228097 13329687 13429890 13527412 13621432 137134...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
101193577
101643983
101643983
101643983
101193577
101643983
101643983
105899685
101643983
101193577
101643983
101643983
105908517
101643983
101643983
101643983
101860014
101643983
101643983
101727661
101643983
101193577
105899685
101643983
101643983
101643983
101...

result:

ok 100001 lines

Test #65:

score: 23
Accepted
time: 590ms
memory: 303884kb

input:

100000 100000
94680965 28703450 28988378 29239101 29456986 29632639 29804054 29974019 30119527 30262552 30404270 30532275 30659696 30780153 30898287 31010645 31112752 31210739 31307942 31401706 31494746 31587342 31679684 31762617 31844702 31926256 32007180 32088024 32165754 32242921 32319477 3239593...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99915958
99915958
99915958
99915958
100793197
99915958
99915958
99915958
99915958
100793197
100793199
101054880
100793197
99915958
99915958
101054880
99915958
99915958
99915958
99915958
100793197
99915958
99915958
100793197
99915958
128337968
99915958
128313040
9...

result:

ok 100001 lines

Test #66:

score: 23
Accepted
time: 596ms
memory: 310536kb

input:

100000 100000
96627472 30415947 30890452 31319811 31747721 32172711 32449753 32719416 32985226 33218757 33442265 33660129 33869958 34079523 34254533 34425775 34578832 34729291 34879592 35021583 35163434 35298850 35431578 35556311 35680656 35800896 35918719 36036323 36150266 36254902 36355113 3645086...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100325299
103352078
100325299
102636534
100325299
117898809
102636534
103350679
100325299
102636534
100325299
102636534
102636534
103350679
103350679
102636534
103374451
100325299
100368398
116227792
100325299
100325299
102636534
116306032
100349559
100325299
102...

result:

ok 100001 lines

Test #67:

score: 23
Accepted
time: 569ms
memory: 307628kb

input:

100000 100000
99666004 12535695 12962713 13318246 13657207 13911646 14098796 14270011 14433022 14583457 14724442 14865070 14999300 15128983 15246225 15361432 15473670 15585354 15687606 15789688 15891613 15990066 16087887 16185134 16280546 16374808 16467040 16557066 16645619 16733433 16821112 1690861...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
103389336
108863342
101963916
103389336
109025887
103389336
111892919
101963916
103389336
101967833
101963916
101963916
101963916
101963916
103389336
101963916
101963916
101963916
108890189
101963916
101963916
101963916
103389336
103916177
101963916
101963916
103...

result:

ok 100001 lines

Test #68:

score: 23
Accepted
time: 518ms
memory: 310064kb

input:

100000 100000
98428556 17832321 18235232 18601190 18925907 19205293 19449109 19683522 19891896 20089308 20263655 20436821 20594942 20749397 20900324 21047204 21179892 21310017 21438940 21567186 21695351 21805261 21907202 22006286 22100559 22193809 22286181 22375936 22464115 22549578 22634764 2271871...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100489326
117146921
117146905
100489326
100489326
100489326
117219488
117146905
100489326
100489326
100489326
117146905
100489326
100489326
100489326
100489326
100489326
100489326
100489326
100489326
100489326
100489326
100489326
100489326
100489326
100489326
100...

result:

ok 100001 lines

Test #69:

score: 23
Accepted
time: 583ms
memory: 301136kb

input:

100000 100000
97753311 21970650 22303497 22555993 22786135 23008094 23203542 23386132 23551233 23715353 23875321 24034352 24183667 24329457 24473459 24596627 24717757 24834114 24946490 25058063 25167111 25275648 25382275 25488329 25592361 25696194 25799048 25900726 26001438 26101881 26201661 2629838...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
101652843
109076082
101652843
101652843
106461345
99979738
109076082
101652843
109076082
101652843
109076082
101652843
109076082
109076082
101652843
100025996
101652843
101652843
101015420
101652843
101662248
101652843
109091722
101652843
101652843
101652843
1016...

result:

ok 100001 lines

Test #70:

score: 23
Accepted
time: 597ms
memory: 306172kb

input:

100000 100000
98741437 36495369 37136486 37447275 37749517 37994282 38237806 38455472 38664600 38872627 39074719 39274427 39471145 39665780 39854779 40038332 40213383 40362408 40511214 40638487 40756306 40869635 40980074 41087630 41192272 41294875 41392847 41489409 41579653 41664488 41748676 4182673...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
103204042
101372675
101372675
101213145
101213145
103204042
101213145
101066274
104806917
116416938
101213145
101372675
101372675
101372675
135772600
101372675
110864471
101372675
101213145
110783784
101050846
101372675
101213145
103204042
101372675
101372675
101...

result:

ok 100001 lines

Subtask #5:

score: 23
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Test #71:

score: 23
Accepted
time: 1716ms
memory: 354068kb

input:

100000 100000
8220608 27643636 9653375 7527483 4568995 4937547 27001430 10512886 14865249 54452685 31213146 1223559 25266797 9367382 5798933 1485258 33036920 2988776 5046089 41823731 6136379 20608943 10327625 90179994 75745370 21933251 3376845 19790905 52189711 21570452 18938610 18445540 26257950 24...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
813308
1472057
1700105
1360671
813308
1377951
925865
617226
3720326
617226
813308
1700105
1258981
1377951
1360671
813308
1472057
1472057
617226
617226
925865
925865
813308
813308
813308
617226
1472057
1258981
617226
617226
813308
813308
617226
813308
617226
81330...

result:

ok 100001 lines

Test #72:

score: 23
Accepted
time: 1801ms
memory: 353968kb

input:

100000 100000
20064301 36298252 65183256 41735566 86742251 75730152 79413846 70215535 9761253 77663056 27844196 58275854 37145780 18138436 8522436 6277386 84781610 20771918 16119135 2788611 23503452 88327349 84869872 69655360 73181922 46177938 4492762 48373586 68647254 5425714 31941645 90384835 8299...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
8804448
4223832
4223832
4223832
6999128
4223832
8804448
6999128
6999128
6999128
6999128
4223832
4223832
10288779
4223832
4223832
4223832
4223832
4223832
6999128
4223832
6999128
4223832
6999128
4223832
4223832
6999128
4223832
4223832
8804448
4223832
4223832
699912...

result:

ok 100001 lines

Test #73:

score: 23
Accepted
time: 1660ms
memory: 346996kb

input:

100000 100000
99777653 96589509 86543160 99811736 94517655 99491563 95371808 96237464 98289654 99357174 92538157 98842173 99307799 99760379 94886210 98912706 97180752 98533047 99810585 99960660 67036672 91480360 99993538 99808134 99518079 91646185 95005027 99992343 97426218 98691392 98845722 9990438...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
187946275
185133816
181931955
185133816
185133816
181931955
181931955
187531348
181931955
181931955
185133816
181931955
181931955
188168334
181931955
181931955
181931955
181931955
181931955
187531348
181931955
185133816
187531348
190203950
181931955
181931955
188...

result:

ok 100001 lines

Test #74:

score: 23
Accepted
time: 1355ms
memory: 310400kb

input:

100000 100000
99999523 99999940 99999578 99998393 99999718 99996990 99993472 99999604 99999813 99998052 99996275 99999731 100000000 99999901 99971236 99999970 99999949 99999928 99997964 99999576 99992924 99999936 95903433 99912313 99999808 99999997 99986119 99997187 99990090 99999981 99992018 999677...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
199903124
199904507
199903124
199947127
199903124
199903124
199903124
199903461
199910849
199903124
199903361
199908617
199903124
199903140
199906559
199914216
199903900
199911788
199903900
199903124
199903124
199903124
199903124
199912659
199903124
199968239
199...

result:

ok 100001 lines

Test #75:

score: 23
Accepted
time: 728ms
memory: 116800kb

input:

100000 100000
100000000 99999993 100000000 100000000 99999996 100000000 99999998 100000000 99999998 99999993 99999995 100000000 99999946 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 100000000 99999998 100000000 100000000 100000000 99999999 99999999 100000...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
200334406
200001492
200003467
200008334
200003212
200004604
200001294
200005989
200011565
200000999
200001497
200001257
200001002
200001240
200002461
200001527
200001518
200063335
200028656
200000919
200020986
200001633
200001618
200001099
200002290
200002487
200...

result:

ok 100001 lines

Test #76:

score: 23
Accepted
time: 1028ms
memory: 303952kb

input:

100000 100000
92551144 1973095 2261525 2511454 2760314 2950328 3139897 3325879 3507072 3665314 3819060 3971675 4118673 4257227 4389293 4516544 4638777 4758010 4876096 4990941 5105703 5218120 5329655 5438159 5546618 5654060 5755590 5856567 5957303 6055270 6151840 6247340 6340960 6433529 6525774 66176...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922970
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
100922174
105541434
100922174
100...

result:

ok 100001 lines

Test #77:

score: 23
Accepted
time: 951ms
memory: 308448kb

input:

100000 100000
96430853 27893110 28671831 29122589 29432806 29719164 29996562 30245625 30489320 30707579 30922356 31119022 31310936 31500284 31688298 31869885 32042326 32204614 32361633 32518224 32674598 32828646 32977959 33121401 33261683 33398267 33534228 33668946 33792718 33911772 34028375 3414495...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100854308
100854308
100854308
100854308
100854308
100854308
100854308
100854308
100854308
100854308
100854308
100854308
100854308
100854308
112461251
100854308
101946370
100854308
100854308
100854308
100854308
101946370
100854308
100854308
100854308
100854308
100...

result:

ok 100001 lines

Test #78:

score: 23
Accepted
time: 1004ms
memory: 300204kb

input:

100000 100000
97081397 24146910 24409849 24658887 24904766 25119907 25324228 25520582 25699581 25852839 26001079 26136665 26269588 26392867 26507473 26618361 26728658 26838745 26941647 27041735 27141415 27239839 27335910 27430757 27525455 27617973 27707736 27795970 27881042 27964516 28046632 2812864...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100109908
100109908
100109908
100109908
104274441
103733868
100109908
100109908
100109908
100109908
103733868
103733868
100109908
100109908
100109908
100109908
104272096
100109908
100109908
100109908
100109908
100109908
100109908
100109908
100109908
100109908
100...

result:

ok 100001 lines

Test #79:

score: 23
Accepted
time: 964ms
memory: 300976kb

input:

100000 100000
99692339 59496632 59802898 60098088 60350793 60588905 60767762 60946018 61093478 61233294 61368909 61468973 61568093 61665149 61756227 61846345 61935337 62017514 62096949 62173374 62247434 62319846 62391117 62460123 62527010 62593678 62659357 62724204 62787350 62849737 62910972 6297218...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100742324
100...

result:

ok 100001 lines

Test #80:

score: 23
Accepted
time: 1089ms
memory: 305084kb

input:

100000 100000
99605264 18092062 18410075 18665941 18879128 19067905 19245705 19421165 19577804 19731315 19883164 20024634 20162977 20299454 20432894 20565003 20688530 20811912 20933651 21054688 21174281 21291309 21405010 21516859 21628648 21740312 21851698 21960582 22068382 22175060 22281228 2238369...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99890316
99890316
99890316
99890316
99890316
99890316
99890316
99925147
99890316
99890316
99890316
99890316
99890316
99890316
99890316
99890316
100264645
99890316
99890316
99890316
99890316
99890316
99890316
99890316
99890316
99890316
99890316
99890316
99890316
9...

result:

ok 100001 lines

Test #81:

score: 23
Accepted
time: 973ms
memory: 306016kb

input:

100000 100000
99489988 18856603 19522093 19813961 20056580 20262278 20449826 20613593 20756203 20893786 21024457 21153612 21271694 21383228 21480173 21576661 21666954 21756167 21843219 21929745 22011380 22092571 22173205 22248279 22321602 22393579 22464740 22535825 22605918 22675721 22745196 2281432...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100103943
100103943
100103943
100103943
100103943
105163690
100103943
100103943
100103943
105163690
104590823
100103943
105163690
100103943
100103943
100103943
100103943
105163690
103602763
100141836
100103943
104568777
100103943
100103943
105163690
100103943
100...

result:

ok 100001 lines

Test #82:

score: 23
Accepted
time: 1049ms
memory: 309784kb

input:

100000 100000
99219888 26593962 27219992 27815848 28381800 28827089 29255608 29640614 30015248 30364028 30691816 31014330 31305716 31580222 31833270 32079305 32276000 32445256 32604989 32740023 32874870 33003913 33129029 33248917 33367938 33485705 33595803 33705136 33812898 33919233 34024282 3412873...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
102429932
101562263
101614165
102429932
101562263
102429932
105372513
102655402
102429932
102655402
102429932
101607044
101562263
102429932
102429932
102429932
102690652
101562263
102429932
101562263
102429932
101588524
101562263
102429932
105372513
107354586
101...

result:

ok 100001 lines

Test #83:

score: 23
Accepted
time: 1035ms
memory: 306016kb

input:

100000 100000
99608306 32188383 32506996 32794373 33020453 33212754 33347838 33475118 33597523 33717508 33832669 33943819 34054658 34163057 34260416 34354873 34442120 34525607 34606028 34683176 34758038 34832790 34906626 34977943 35045142 35110803 35175253 35239500 35301426 35361867 35422039 3548182...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
101097421
101306973
101306973
101114208
101104029
101306973
101115337
101098119
101133295
101306973
101306973
101306973
101306973
101306973
101306973
101306973
101306973
101306973
101115208
101310513
101097161
102162779
101306973
101306973
101306973
101306973
101...

result:

ok 100001 lines

Test #84:

score: 23
Accepted
time: 1041ms
memory: 309144kb

input:

100000 100000
96061941 42227595 42417469 42582042 42736373 42884402 43006505 43119834 43232332 43337112 43428026 43513536 43596584 43672170 43745463 43817652 43889402 43959784 44029290 44098497 44165959 44229280 44292322 44354389 44415669 44476229 44536179 44596030 44655189 44712980 44770132 4482611...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99737892
99737892
108830426
99737892
99737892
99737892
99737892
99737892
99739099
99737892
99737892
99737892
99737892
99737892
99737892
99737892
99737892
99737892
99737892
99737892
99737892
99737892
107116311
99737892
99737892
99737892
99737892
99737892
99737892
...

result:

ok 100001 lines

Test #85:

score: 23
Accepted
time: 958ms
memory: 305644kb

input:

100000 100000
99744100 12664552 13088981 13498549 13739433 13977329 14183533 14385255 14576276 14759844 14936937 15113390 15272726 15427492 15581148 15734496 15884731 16027363 16159010 16289986 16420005 16549788 16678507 16795418 16909463 17016725 17121877 17226894 17324452 17421992 17518960 1761524...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
104258191
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103413208
103...

result:

ok 100001 lines

Test #86:

score: 23
Accepted
time: 994ms
memory: 307036kb

input:

100000 100000
99947918 26576909 27158399 27592417 27952080 28266161 28554477 28835523 29116125 29374378 29600494 29820629 30020732 30218323 30414562 30591765 30767103 30922870 31062485 31198516 31332506 31462181 31586941 31709738 31831087 31947942 32054812 32160779 32266726 32371597 32473589 3257486...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100868599
100472554
100883582
100868599
100868599
100480257
100868599
100868599
100868599
100472554
101779208
100868599
100472914
100868599
100472554
100868599
100868599
100868599
100868599
100868599
100868599
100868599
120291968
100912582
100868599
100868599
100...

result:

ok 100001 lines

Test #87:

score: 23
Accepted
time: 1027ms
memory: 305748kb

input:

100000 100000
96524454 37490330 37715862 37902304 38077494 38249957 38417149 38568370 38705140 38839099 38964078 39084379 39202736 39306651 39409638 39510379 39609009 39706387 39803092 39898637 39984440 40067635 40146534 40223664 40300637 40373295 40443119 40511615 40579458 40646978 40714341 4078150...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
100191534
100172016
100173243
100186680
100750608
100172016
100172016
100750608
100750608
100750608
100172016
100782233
100173033
100750608
100172016
100172016
100172016
100172016
100174413
100172016
100750608
100750608
100172016
100750608
100172136
102116016
100...

result:

ok 100001 lines

Test #88:

score: 23
Accepted
time: 1072ms
memory: 309452kb

input:

100000 100000
94854176 53510468 53732695 53953405 54152365 54310056 54447597 54584791 54720272 54849288 54972895 55093281 55209257 55315487 55421240 55513560 55604216 55694617 55774175 55847501 55918115 55988639 56051893 56113515 56174193 56233580 56290421 56346674 56401816 56456432 56509886 5656326...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
99759629
99759629
99759629
99759629
109166290
99759629
99759629
99759629
99762222
99759629
99759629
99759629
99759629
109166290
109166290
99759629
99759629
99759629
99759629
99759629
99759629
99759629
99759629
99759629
109166290
109166290
99759629
99759629
997596...

result:

ok 100001 lines

Test #89:

score: 23
Accepted
time: 1083ms
memory: 309244kb

input:

100000 100000
97760198 36314435 36455829 36576190 36686982 36793464 36879541 36959618 37035733 37109266 37182750 37253918 37324409 37393105 37461016 37528851 37596365 37663618 37730391 37795916 37861269 37924697 37987570 38049765 38111864 38173810 38232580 38291023 38349277 38407128 38464919 3852261...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
101047393
101047393
101047393
101080194
101047393
101047393
107232176
101047393
101047393
101047393
101047393
101047393
101047393
101047393
101047393
101047393
101047393
107658995
101047393
101047393
101047393
101047393
101047393
101047393
101047393
101047393
101...

result:

ok 100001 lines

Test #90:

score: 23
Accepted
time: 1025ms
memory: 299860kb

input:

100000 100000
99768275 16132750 16238897 16340656 16434078 16522348 16607186 16683974 16758869 16831981 16904285 16976133 17047769 17118763 17189537 17259840 17329918 17399698 17469388 17539032 17608630 17678179 17747685 17817145 17886559 17955904 18025203 18094456 18163673 18232845 18301968 1837104...

output:

e4bc1609-b8fd-4286-b31c-e5e8e5765738
101402044
101402044
100832367
100832367
101736310
100832367
100843976
100832367
100832367
100832367
100832367
100832367
101402044
100832367
100832367
101736310
100832367
101402044
101402044
101402044
101736310
100832367
100832367
100832367
121775009
101736310
100...

result:

ok 100001 lines