QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#304968#6337. Mizuyokan 2hyforces0 1287ms13392kbC++203.6kb2024-01-14 10:41:062024-01-14 10:41:06

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 6
Accepted
time: 1ms
memory: 3416kb

input:

170
581553716 290776853 145388421 581553716 168947671 936760822 849346471 126291564 133104657 125887494 136786623 123143788 137803872 129733949 849346471 880499329 202732710 611312524 152828126 305656257 611312524 121295297 6875889 74507235 419967909 333601507 281557968 740824934 370412466 185206229...

output:

59
56
61
61
56
37
42
46

result:

ok 8 numbers

Test #2:

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

input:

200
517847507 258923750 129461870 517847507 106915073 712580593 512811829 12657894 12715954 12534704 12759073 12554236 12685369 12563357 12817887 12534566 12752501 12518874 12746471 12524663 12730053 12586182 12803851 12628464 12778716 12645600 12701929 12550298 12754947 12548765 12765210 12592487 1...

output:

118
162
114
113
143
105
109
165
139
152

result:

ok 10 numbers

Test #3:

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

input:

156
689580506 344790254 172395128 689580506 344790254 689580506 344790252 172395125 86197561 86197567 86197565 86197566 43098784 86197566 86197565 86197567 86197561 172395125 344790252 689580506 344790254 689580506 172395128 344790254 689580506 3985467 453082635 861305238 430652620 215326311 8613052...

output:

19
26
27
21
15
11

result:

ok 6 numbers

Test #4:

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

input:

200
545371756 272685879 136342940 545371756 272685879 545371756 272685877 136342937 68171467 68171474 68171472 68171473 34085737 68171473 68171472 68171474 68171467 136342937 272685877 545371756 272685879 545371756 136342940 272685879 545371756 327464463 455363267 859187150 429593576 214796789 85918...

output:

27
36
25
26
16
11
15
21
19
22

result:

ok 10 numbers

Test #5:

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

input:

200
433494437 165580141 63245986 24157817 9227465 3524578 1346269 514229 196418 75025 28657 10946 4181 1597 610 233 89 34 13 5 2 1 1 1 3 8 21 55 144 377 987 2584 6765 17711 46368 121393 317811 832040 2178309 5702887 14930352 39088169 102334155 267914296 701408733 863735928 433494437 165580141 632459...

output:

5
13
5
5
8
5
13
5
5
6

result:

ok 10 numbers

Test #6:

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

input:

187
433494437 165580141 63245986 24157817 9227465 3524578 1346269 514229 196418 75025 28657 10946 4181 1597 610 233 89 34 13 5 2 1 1 1 3 8 21 55 144 377 987 2584 6765 17711 46368 121393 317811 832040 2178309 5702887 14930352 39088169 102334155 267914296 701408733 868260277 433494437 165580141 632459...

output:

4
36
18
10
19
11
3
29

result:

ok 8 numbers

Test #7:

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

input:

200
942616273 418940008 209470430 104734784 104734784 104735481 523675545 247785 701408733 267914296 102334155 39088169 14930352 5702887 2178309 832040 317811 121393 46368 17711 6765 2584 987 377 144 55 21 8 3 1 1 1 2 5 13 34 89 233 610 1597 4181 10946 28657 75025 196418 514229 1346269 3524578 92274...

output:

5
21
8
5
9
8
20
17
5
5

result:

ok 10 numbers

Test #8:

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

input:

200
641304094 22086510 5470810 2634455 1317187 658631 329083 126285 49415 22321 11410 5273 359 133 50 20 9 3 3 3 9 30 79 220 585 1226 2467 4851 27355 76469 202803 2836339 8307675 16614893 38701275 77401954 154804637 309608784 619217509 353775485 433494437 165580141 63245986 24157817 9227465 3524578 ...

output:

5
13
9
9
9
4
12
12
11
5

result:

ok 10 numbers

Test #9:

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

input:

200
433494437 165580141 63245986 24157817 9227465 3524578 1346269 514229 196418 75025 28657 10946 4181 1597 610 233 89 34 13 5 2 1 1 1 3 8 21 55 144 377 987 2584 6765 17711 46368 121393 317811 832040 2178309 5702887 14930352 39088169 102334155 267914296 701408733 693739790 701408733 267914296 102334...

output:

5
5
5
4
5
3
9
19
9
16

result:

ok 10 numbers

Test #10:

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

input:

200
811426933 198737194 91129973 45564654 22782332 6305563 3152428 1219185 505660 252621 43570 21857 11092 2766 1419 327 118 44 15 3 1 1 3 6 14 31 76 196 509 1034 4036 8138 52164 104730 208684 713957 1933360 8238658 16477615 107607533 306345216 612690552 5165 701408733 267914296 102334155 39088169 1...

output:

5
5
5
5
4
3
17
22
11
22

result:

ok 10 numbers

Test #11:

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

input:

170
81553716 641270070 76671075 423535716 81513969 349346472 918947671 643372070 434082866 664656456 639157656 473824723 263466558 960408345 313957771 754077653 952732710 111312524 68261315 315588907 511788074 951463287 402771182 51452283 4352857 86643186 343917032 740824934 31237226 361281509 99056...

output:

60
20
67
55
72
66
47
18

result:

ok 8 numbers

Test #12:

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

input:

200
517847507 845063523 900782365 733754788 868260277 512811830 106915073 2556529 228137609 242594414 695501734 1446343 933668801 559293539 298824117 637105802 625215851 312386451 100447359 186927021 376963403 300653848 857052812 501599341 349295044 922104431 840182910 996573394 684887153 779348052 ...

output:

74
97
31
53
14
45
2
64
10
10

result:

ok 10 numbers

Test #13:

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

input:

200
207011 5261 1269645 3 96 1 4 756365306 891 2889 217238 15 4594 1 3 2 549508340 1 1 136 1461 302855 31140693 1185 5912463 27 9682000 9146 17 29626226 67558 219081 1 1 59 554 8 19 6460 712 1679713 276643 180049 1692 165 4841589 687013 268 8364 3911918 39604 6 1 5 1 3809 1 15127 316 256 1 7976975 3...

output:

34
65
53
10
122
46
52
17
22
85

result:

ok 10 numbers

Test #14:

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

input:

200
1666954 16680286 22901801 24466766 25555269 26161708 27126835 29636964 31147832 33483487 33499511 41450462 45371756 45456600 46543021 56856009 57776244 71330394 73522260 75003115 75139522 87658971 89596930 90333745 96481088 104215633 105317004 107865475 109822289 113787517 119366225 126358977 13...

output:

38
33
29
26
85
58
22
2
2
26

result:

ok 10 numbers

Test #15:

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

input:

200
1 1 1 2 3 3 13 35 59 77 94 184 512 17627 21953 72401 106196 287525 4542970 7279146 18367441 51140154 158988562 398832640 755575138 427135579 227921831 113319106 26153265 20515329 4485571 210791 163801 111341 72315 49834 27931 18398 5104 2849 2092 1486 435 433 331 12 10 4 1 1 1 1 1 1 3 14 39 69 2...

output:

32
30
33
49
42
49
2
24
71
30

result:

ok 10 numbers

Test #16:

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

input:

200
9090695 11261989 37978393 39759789 40717103 59342651 63521565 64602365 72486441 81550503 84429832 87685388 93947754 116330271 118375950 126832034 129591929 130580129 133304510 135979600 147563274 149207928 159091959 161016266 162216627 170224776 170937882 171692206 173801085 191657773 198611062 ...

output:

20
65
120
25
107
16
61
31
38
15

result:

ok 10 numbers

Test #17:

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

input:

200
1 1 4 74 102 849 1698 3260 9919 12317 43630 49428 107277 226806 397526 699137 1279153 3198955 3772748 5013933 13296103 24002309 50457720 61144874 228889568 370255655 602076780 1 32368 8634 332 116286 7577464 86346 27 1 25330811 56141 32 5 28466 6483802 774045913 5163615 6 21131 22 3346 2793 3237...

output:

8
20
43
27
52
79
31
22
27
81

result:

ok 10 numbers

Test #18:

score: -6
Wrong Answer
time: 1ms
memory: 3376kb

input:

200
956397794 956397794 606227355 606227355 434852959 434852959 754338473 754338473 989995218 989995218 858627911 858627911 852085951 852085951 280865784 280865784 63369558 63369558 388670577 388670577 563870055 563870055 264046824 264046824 313555037 313555037 112186895 112186895 368002737 36800273...

output:

1
2
116
2
21
1
106
1
2
2

result:

wrong answer 3rd numbers differ - expected: '2', found: '116'

Subtask #2:

score: 0
Skipped

Dependency #1:

0%

Subtask #3:

score: 0
Skipped

Dependency #2:

0%

Subtask #4:

score: 0
Wrong Answer

Test #59:

score: 32
Accepted
time: 336ms
memory: 10708kb

input:

185137
895278847 447639418 223819705 895278847 25847602 892542542 725274571 68345857 72124244 67050536 71135605 66549838 72378749 66083078 72261084 67667076 70423484 68942136 725274571 798132375 68764887 958288578 703862250 55104628 58120315 54690522 57110282 54279470 56516680 54581941 58474132 5445...

output:

59
26
80
55
43
41
79
37
57
79
69
29
31
25
26
76
32
25
27
36
34
39
67
40
67
71
45
40
49
52
64
61
29
40
39
34
41
19
28
51
31
43
62
23
31
26
73
39
63
36
53
27
46
56
30
67
60
37
71
22
42
59
67
87
16
27
20
38
14
64
20
19
41
34
55
53
15
51
43
29
71
60
49
9
76
18
86
29
73
61
38
46
21
62
20
20
67
71
83
82
5...

result:

ok 46660 numbers

Test #60:

score: 0
Accepted
time: 373ms
memory: 13160kb

input:

250000
667582288 333791140 166895569 667582288 99573823 970008947 834597000 12471817 12607290 12487687 12576099 12465363 12618633 12513272 12580300 12472038 12635499 12521112 12568109 12475947 12596996 12534373 12566264 12457253 12610586 12463726 12606038 12490882 12599220 12538123 12628955 12536981...

output:

479
432
209
299
73
389
201
103
301
236
132
294
176
319
309
76
223
90
292
372
428
240
403
469
459
298
330
139
178
264
119
140
215
116
231
90
412
284
131
272
101
103
400
413
410
403
94
165
115
157
134
443
128
125
239
297
140
283
111
409
430
224
112
194
279
224
410
414
275
110
282
285
168
146
216
318
2...

result:

ok 50000 numbers

Test #61:

score: 0
Accepted
time: 386ms
memory: 13212kb

input:

250000
686918541 343459266 171729631 686918541 162600005 909519391 751917777 1531698 1533456 1531623 1534143 1532545 1533883 1531702 1533707 1532628 1533520 1532278 1533729 1531461 1534213 1531804 1532982 1531815 1532983 1532627 1534082 1532622 1533761 1531583 1533895 1532427 1533015 1532299 1533382...

output:

3543
1850
1040
1576
2987
3193
1551
1318
3629
1026
2588
756
2167
3104
2934
2232
2279
961
2073
811
2729
2236
1198
2875
3166
1205
924
1942
2610
1286
3039
1881
953
864
3285
3160
1722
2892
1046
2827
1211
721
689
2659
2676
2659
2569
2931
2691
730
2489
1744
2854
1273
2449
1871
2381
1446
1191
1685
1864
3156...

result:

ok 50000 numbers

Test #62:

score: 0
Accepted
time: 562ms
memory: 13376kb

input:

250000
976592750 488296376 244148189 976592750 488296376 976592750 488296374 244148186 122074092 122074097 122074095 122074096 61037049 122074096 122074095 122074097 122074092 244148186 488296374 976592750 488296376 976592750 244148189 488296376 976592750 409633549 365786823 658104030 329052016 1645...

output:

1676
14308
250
20
65921
11
2622
167
26899
20
38597
92
15
129
22
22
16
1516
23
20
547
1207
236
35
190
45
16
32
58
151
1453
1662
10957
54
11
25155
3732
21
7261
21
11
11
313
492
19130
35
183
11
278
204
88
20218
18716
16
34
17
11163
11119
31310
17732
10615
25
18
46
32
4099
42
19
49
1980
111
29
85
11352
...

result:

ok 50000 numbers

Test #63:

score: 0
Accepted
time: 1229ms
memory: 13248kb

input:

250000
433494437 165580141 63245986 24157817 9227465 3524578 1346269 514229 196418 75025 28657 10946 4181 1597 610 233 89 34 13 5 2 1 1 1 3 8 21 55 144 377 987 2584 6765 17711 46368 121393 317811 832040 2178309 5702887 14930352 39088169 102334155 267914296 701408733 832370892 433494437 165580141 632...

output:

5
20527
13813
12640
5973
6627
7069
11696
3176
743
9502
9651
5168
12925
9086
5870
7603
4712
6054
12275
3079
567
17691
8753
18989
10222
3905
12784
5672
5261
16777
12767
12599
710
2037
12534
67
6568
2435
7722
3260
12523
9693
4839
2287
7474
9667
7564
16286
16217
16360
2251
14978
16296
2616
16392
2213
22...

result:

ok 50000 numbers

Test #64:

score: 0
Accepted
time: 1229ms
memory: 13252kb

input:

250000
629015262 148490267 56718968 21667403 8283034 3182614 1263973 608969 304640 152514 76011 30718 14995 14903 14903 45771 654641 1918244 5100904 13384710 35051977 91771730 240262526 480525026 6 701408733 267914296 102334155 39088169 14930352 5702887 2178309 832040 317811 121393 46368 17711 6765 ...

output:

5
36339
13911
19286
3660
4681
10043
7041
30819
14337
9965
25379
25453
7873
13072
17743
2735
7889
16263
11239
10436
5115
5059
6691
9460
31463
5417
15517
4861
14363
1522
20925
12229
6376
17425
13285
1104
30779
5369
3157
12741
10219
28037
20085
13922
5264
32494
13281
1421
6989
5905
26721
6539
7853
7407...

result:

ok 50000 numbers

Test #65:

score: 0
Accepted
time: 1055ms
memory: 13252kb

input:

250000
433494437 165580141 63245986 24157817 9227465 3524578 1346269 514229 196418 75025 28657 10946 4181 1597 610 233 89 34 13 5 2 1 1 1 3 8 21 55 144 377 987 2584 6765 17711 46368 121393 317811 832040 2178309 5702887 14930352 39088169 102334155 267914296 701408733 697398399 701408733 267914296 102...

output:

5
10231
1137
7150
57
5245
157
3237
2097
843
8970
6499
1971
3113
660
3781
1632
4129
6473
3761
5067
1954
409
187
3408
3909
2322
2891
1659
101
4923
1111
6545
2732
4227
3405
1759
5893
3927
8351
2578
9037
7277
3047
3383
603
5199
6254
1554
2216
182
1592
4217
1857
3723
2869
3219
2238
595
2123
4179
351
1403...

result:

ok 50000 numbers

Test #66:

score: 0
Accepted
time: 1105ms
memory: 13252kb

input:

250000
825678540 412839226 67009950 33504747 14057451 7028952 1638368 580395 102658 51791 25635 9824 4051 2019 413 143 10 1 1 1 5 7 15 32 65 131 284 755 1552 5869 16313 119179 238772 477628 1057273 2694946 5389923 19447437 86457554 172914871 345829452 1 701408733 267914296 102334155 39088169 1493035...

output:

5
12101
8451
3573
7577
245
4531
6275
3379
1307
5305
9989
7247
851
9007
7227
969
2199
3385
4663
8179
2551
569
8184
2019
3823
6333
11711
3629
3521
9699
3215
8311
5116
5978
1589
3871
10720
7387
8498
4716
377
5839
1951
9253
447
2283
7156
2889
3567
8761
1855
3439
2679
3883
865
7479
6979
7983
5647
8181
91...

result:

ok 50000 numbers

Test #67:

score: 0
Accepted
time: 866ms
memory: 10912kb

input:

188505
161345686 5272726 714528027 303063022 84492369 534113481 792252188 164283975 162313449 429912221 14219758 414229179 242444828 851607918 25274802 504797668 196462116 690674600 420521253 943836246 444633976 765650635 131678296 423786907 850936945 815497569 864339547 916526157 678444069 80949711...

output:

23038
26627
102
38201
14683
60803
4440
39818
2480
43408
24408
102154
36200
47462
60169
4720
39764
11411
15994
22236
55816
118602
62026
22197
53904
15825
456
55582
41704
20818
48957
4300
8904
130792
20334
80972
50689
85487
80824
23161
62713
12500
26503
41007
36111
40201
26840
49212
37010
66216
62558
...

result:

ok 45304 numbers

Test #68:

score: -32
Wrong Answer
time: 1124ms
memory: 13264kb

input:

250000
668792486 819967669 185244105 716798479 36347021 787749381 656305037 504045666 968115889 389944065 3024533 164612811 421903182 710395001 514512490 833575927 443953856 960891208 102245625 814182891 445873403 44535173 241289630 268490286 915860468 986749029 577708538 37809692 69651472 318196424...

output:

93960
80156
6109
128483
68581
151822
90629
71783
24794
3956
32622
54596
58211
62701
27712
70630
46216
16941
38132
141970
15851
15890
144528
43251
63357
31693
136189
64943
28496
78990
63582
93422
14101
149536
110390
96531
18874
29680
20428
71009
7577
76959
74511
38
22544
124233
47428
44537
72333
1171...

result:

wrong answer 6136th numbers differ - expected: '3', found: '177640'

Subtask #5:

score: 0
Wrong Answer

Test #76:

score: 29
Accepted
time: 344ms
memory: 12672kb

input:

235469
96936 48463 24226 96936 25951 73765 63933 7121 7884 7166 7731 7464 7559 7300 7767 7314 63933 88750 6093 115886 111307 16371 17529 15944 17376 16099 18186 15910 111307 116042 13997 111982 95565 10713 11748 10849 11375 11093 11406 10874 11810 11197 95565 98914 1302 65917 16473 32953 65917 15943...

output:

34
56
73
61
41
13
74
46
33
33
14
53
36
46
18
63
65
79
72
15
20
57
66
83
19
46
62
58
44
76
76
68
41
56
9
29
59
73
64
21
63
33
29
62
27
36
20
65
54
71
29
47
13
32
48
74
64
75
79
17
24
49
20
41
57
17
23
67
67
18
19
54
63
74
72
45
61
30
27
60
33
36
49
49
24
56
42
60
20
53
32
75
44
57
17
34
71
45
25
39
2...

result:

ok 44829 numbers

Test #77:

score: 0
Accepted
time: 355ms
memory: 13392kb

input:

250000
88054 44025 22011 88054 6068 106051 104212 1356 1371 1362 1370 1361 1371 1358 1371 1357 1364 1354 1367 1362 1371 1361 1365 1359 1363 1357 1370 1361 1366 1360 1363 1357 1369 1358 1367 1358 1371 1355 1371 1359 1371 1360 1370 1359 1371 1357 1363 1357 1370 1355 1371 1360 1366 1355 1368 1358 1364 ...

output:

146
118
301
455
177
65
187
177
317
351
366
219
382
117
178
136
157
405
245
166
285
271
202
376
120
97
326
95
369
194
221
167
206
73
197
372
117
237
176
128
69
101
449
215
261
410
85
169
257
312
285
297
227
181
423
298
205
371
416
343
301
406
122
335
296
222
190
365
429
433
205
389
223
227
281
357
16...

result:

ok 50000 numbers

Test #78:

score: 0
Accepted
time: 427ms
memory: 13356kb

input:

250000
107093 53547 26774 107093 53547 107093 53545 26771 13384 13391 13389 13390 6696 13390 13389 13391 13384 26771 53545 107093 53547 107093 26774 53547 107093 58591 28809 92235 46118 23060 92235 46118 92235 46116 23057 11527 11533 11531 11532 5767 11532 11531 11533 11527 23057 46116 92235 46118 9...

output:

9568
808
4144
8755
1970
11
17
23
3994
32
805
39362
74
5599
555
20
378
53993
1013
635
4061
5169
11047
156
50274
9903
118
906
732
107
48
24
1477
15
11
327
41341
653
25
370
11
11
45
32
643
97
108
11
196
4733
187
36723
15
593
7660
180
36058
19
46023
489
18525
18
3151
25946
64
728
3398
92
15
249
40
7170
...

result:

ok 50000 numbers

Test #79:

score: 0
Accepted
time: 1171ms
memory: 13256kb

input:

250000
46368 17711 6765 2584 987 377 144 55 21 8 3 1 1 1 2 5 13 34 89 233 610 1597 4181 10946 28657 75025 64095 46368 17711 6765 2584 987 377 144 55 21 8 3 1 1 1 2 5 13 34 89 233 610 1597 4181 10946 28657 75025 8717 46368 17711 6765 2584 987 377 144 55 21 8 3 1 1 1 2 5 13 34 89 233 610 1597 4181 109...

output:

5
33729
13755
7100
10935
1153
12073
5109
4299
9876
31215
18413
3763
8845
11361
425
12511
19165
19280
9727
8095
10455
17266
11872
5917
12524
25852
10185
13907
7411
2601
7002
9908
18185
4439
5293
5855
22592
10326
14810
5086
4221
8897
20479
19672
4056
13219
1566
6502
11003
7254
11555
24651
4090
8385
19...

result:

ok 50000 numbers

Test #80:

score: 0
Accepted
time: 1142ms
memory: 13256kb

input:

250000
116471 39170 19513 9853 4612 2251 1123 565 276 135 66 31 12 5 1 1 4 7 20 38798 77689 3 75025 28657 10946 4181 1597 610 233 89 34 13 5 2 1 1 1 3 8 21 55 144 377 987 2584 6765 17711 46368 158 66462 32941 16638 8286 4033 1489 542 126 47 22 22 25 72 198 408 975 2508 68958 20482 45351 22349 8739 3...

output:

5
57541
33364
2574
39464
9595
49573
3919
35173
10867
27977
37923
18475
20493
20953
16469
4607
20673
35380
14399
11421
16423
13689
27105
24804
4917
7649
32023
599
2537
7196
7613
11501
39886
353
13279
23041
54981
37881
9901
29757
20919
19160
25621
22355
12110
15607
10621
14983
2935
14871
13299
2508
37...

result:

ok 50000 numbers

Test #81:

score: 0
Accepted
time: 1097ms
memory: 13372kb

input:

250000
75025 28657 10946 4181 1597 610 233 89 34 13 5 2 1 1 1 3 8 21 55 144 377 987 2584 6765 17711 46368 78800 46368 17711 6765 2584 987 377 144 55 21 8 3 1 1 1 2 5 13 34 89 233 610 1597 4181 10946 28657 75025 83435 46368 17711 6765 2584 987 377 144 55 21 8 3 1 1 1 2 5 13 34 89 233 610 1597 4181 10...

output:

5
16803
4131
3774
13
4243
1236
2020
9656
5867
2013
13423
15991
8094
6872
10637
966
6749
3193
2035
1223
9350
13177
950
2985
5049
1837
15373
7279
6464
4076
5118
11890
11489
857
1499
5541
14170
3298
7397
1761
7055
9518
13190
6316
13774
7665
7112
11771
11934
2526
6233
5906
259
2151
5654
1261
4304
3834
4...

result:

ok 50000 numbers

Test #82:

score: 0
Accepted
time: 1098ms
memory: 13352kb

input:

250000
56056 11677 1760 845 181 67 24 9 4 2 2 7 18 45 112 315 662 2474 5004 10367 22140 44426 100497 20581 46368 17711 6765 2584 987 377 144 55 21 8 3 1 1 1 2 5 13 34 89 233 610 1597 4181 10946 28657 75025 3251 116770 58379 29289 8514 4244 2110 480 230 111 57 28 10 5 2 1 1 1 6 19 252 775 1579 9995 2...

output:

5
20609
1228
2598
3189
6838
409
623
11761
4300
13627
5743
1923
6529
611
4519
6057
3729
6385
15005
3269
7794
11634
6301
1823
497
13113
9449
7285
9300
2115
7302
10093
10177
1285
412
13581
2717
12220
6922
15333
8124
17210
4101
1925
16843
3941
8710
14745
3189
4856
14015
4247
5059
1498
1613
6541
12055
13...

result:

ok 50000 numbers

Test #83:

score: 0
Accepted
time: 1113ms
memory: 13252kb

input:

250000
39045 71804 52340 38535 113076 47221 45724 9198 10181 75151 96087 106559 115565 7064 13975 107885 53087 45431 44259 13221 38233 50837 111142 45639 67994 16464 71615 119048 39946 81593 32739 60478 37202 105974 47956 98679 4776 16831 159 57080 42149 27009 83345 76779 8454 96706 13982 97975 1174...

output:

5992
142093
59862
36122
40645
97862
77272
46935
51396
94974
62649
15367
45502
11530
156531
29500
90508
41041
129498
41433
45392
100391
81691
54646
49202
141568
19402
55594
42744
41564
72439
64060
148348
125869
50705
147490
2206
28415
10794
43629
34460
718
78798
37926
114953
30275
41544
128396
66610
...

result:

ok 50000 numbers

Test #84:

score: 0
Accepted
time: 1137ms
memory: 13384kb

input:

250000
601 2508 36 381 42 29025 38 1 1 15798 459 4699 7460 227 3 1 2 1 12 91179 1580 3 269 26 1271 42 231 2 5 113 2 3012 57 1 4 219 23622 1 36 3458 2 7 264 1 47 2072 4846 3 2822 907 1 28709 20 1 4 2 56983 2333 87333 15959 1621 36 1 1783 55 11 6335 38 701 8 95 180 1687 1 29680 81601 86 26818 199 521 ...

output:

133613
56
34740
128535
1513
13446
4778
21719
382
14159
80885
105686
80549
19630
17129
48083
43668
23463
31835
39762
69552
126565
61745
51208
7268
86088
72601
11444
59093
42602
34881
7939
83278
47352
22972
9001
97449
40713
27493
22950
98620
17031
57587
62089
68478
109094
91568
137783
58663
33553
8382...

result:

ok 50000 numbers

Test #85:

score: 0
Accepted
time: 984ms
memory: 13200kb

input:

250000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

23333
121572
44626
73181
109561
30181
32991
118656
4873
55943
5514
42335
15414
46166
79130
52351
56358
9071
71183
103590
45099
20014
60917
71669
80556
529
25684
104201
29564
38492
83779
30812
35034
21328
44950
65369
125219
149080
1340
41245
63888
50038
15669
55481
30603
34104
14659
57318
5539
34081
...

result:

ok 50000 numbers

Test #86:

score: 0
Accepted
time: 1287ms
memory: 13148kb

input:

250000
1 23 39 42 257 261 498 579 748 1249 3893 3973 5381 14706 15027 5867 3177 2222 651 559 309 197 147 37 37 29 1 1 1 1 1 1 1 1 1 2 5 21 26 50 84 88 12646 56668 114782 96939 60736 8994 5986 5697 1767 873 207 70 28 19 10 7 5 2 1 1 3 5 11 42 182 843 1494 1569 3261 3285 11815 17000 49519 84604 13980 ...

output:

42955
70133
14669
55898
19932
37878
32155
48554
69706
33244
90461
16609
32653
42768
48981
78902
1508
69875
43887
32191
53262
45405
4152
39322
15524
19575
46400
80008
30877
71194
59791
16973
50107
3507
93288
23609
38464
961
23466
5807
70099
42894
2461
93936
91515
98716
12540
45980
6496
4975
46386
560...

result:

ok 50000 numbers

Test #87:

score: -29
Wrong Answer
time: 1071ms
memory: 13252kb

input:

250000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

14789
20493
34995
72569
142648
8049
22435
5976
90118
39845
48831
91499
18538
9062
1337
93011
45380
65840
2461
94264
28658
37265
35458
5897
25236
108278
50018
118445
78737
7371
60138
10142
55024
40900
17233
80884
54829
8573
198
19567
113554
45032
60765
120737
65797
105870
53115
94608
37018
8371
16200...

result:

wrong answer 30270th numbers differ - expected: '1', found: '140703'

Subtask #6:

score: 0
Skipped

Dependency #1:

0%