QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#83030#2200. Just Arrange the Iconsxiaowuc1AC ✓349ms10904kbC++171.5kb2023-03-01 05:29:502023-03-01 05:29:53

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3312kb

input:

3
11
1 5 1 5 1 5 1 1 1 1 5
6
1 2 2 2 2 1
5
4 3 3 1 2

output:

3
3
4

result:

ok 3 number(s): "3 3 4"

Test #2:

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

input:

10000
4
4 1 2 2
3
1 3 3
1
1
6
4 1 4 5 3 4
5
1 4 1 2 3
1
1
8
2 5 1 3 2 1 4 4
8
6 3 5 6 4 2 3 5
5
5 1 5 1 3
4
2 2 2 1
8
1 2 2 1 3 1 1 2
6
1 1 1 1 2 2
4
3 2 3 2
3
2 2 2
6
1 1 1 1 1 1
4
1 2 3 3
2
2 2
6
1 3 2 2 1 4
3
2 1 3
6
1 1 1 1 1 1
7
1 2 1 3 1 2 3
5
1 1 1 1 1
5
2 2 1 3 1
5
2 3 4 1 3
3
1 1 1
6
3 3 1 ...

output:

3
2
1
5
4
1
5
5
3
3
5
3
2
1
1
3
1
4
3
1
3
1
3
4
1
5
1
3
4
4
2
4
3
7
3
1
2
5
4
4
5
1
5
1
2
1
3
1
1
4
1
3
1
4
5
3
3
2
5
1
1
2
5
1
3
1
5
1
4
2
3
2
2
4
3
6
2
5
2
2
4
1
1
5
1
2
4
3
3
3
3
4
1
3
4
6
3
1
4
1
1
4
1
4
2
1
2
3
2
2
1
2
1
2
1
5
1
3
3
6
1
3
1
2
1
3
4
1
4
1
1
3
6
1
3
3
5
5
2
1
1
4
4
2
1
1
5
5
1
1
...

result:

ok 10000 numbers

Test #3:

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

input:

10000
4
1 4 3 3
7
7 6 2 1 4 6 5
7
5 4 3 5 3 4 7
7
2 1 2 1 2 2 2
9
7 7 5 4 5 9 2 5 7
6
5 6 4 2 3 6
7
1 7 5 5 6 1 2
7
3 1 2 2 4 4 5
1
1
10
5 4 7 4 4 6 3 5 1 1
7
4 4 2 3 1 2 1
3
1 1 2
5
1 1 1 1 1
10
7 1 3 5 5 10 2 5 10 9
10
1 1 1 1 1 1 1 1 1 1
5
1 1 1 1 1
8
2 3 2 2 4 2 4 1
10
1 4 6 1 2 3 2 1 1 4
9
3 1 ...

output:

3
6
4
3
7
5
5
5
1
7
4
2
1
8
1
1
5
6
6
2
4
7
1
6
4
6
4
6
3
3
5
4
3
1
1
8
3
5
3
2
4
3
1
7
2
3
1
5
6
6
2
1
7
4
5
1
1
1
4
4
1
2
1
1
1
5
4
5
2
7
4
3
4
5
6
2
2
1
7
2
6
3
3
5
5
4
4
3
1
4
6
5
6
5
3
5
2
1
4
2
1
1
5
1
2
6
5
3
4
5
2
1
4
4
1
1
5
3
2
1
1
1
2
4
1
4
4
1
3
2
4
4
4
5
1
4
7
2
4
1
3
3
2
6
2
2
2
2
1
3
...

result:

ok 10000 numbers

Test #4:

score: 0
Accepted
time: 14ms
memory: 3444kb

input:

10000
15
3 1 4 3 3 1 2 2 1 1 4 4 2 1 1
7
3 5 6 5 7 1 2
14
3 2 4 1 4 2 4 7 5 7 5 6 4 4
13
8 2 5 12 3 12 6 9 9 1 3 10 4
4
2 1 3 1
3
3 3 2
13
8 8 6 7 7 1 4 7 5 7 1 3 7
4
4 1 2 1
18
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
8
7 1 2 8 1 6 5 4
17
9 2 2 5 14 15 12 7 6 13 1 5 5 7 3 1 11
16
1 4 3 2 1 2 2 5 3 2 3 3...

output:

5
6
9
10
3
2
9
3
1
7
13
9
2
5
6
12
6
1
14
5
10
3
1
10
1
3
1
11
1
2
10
6
6
1
10
12
3
6
10
6
3
10
3
1
12
2
1
5
1
2
6
8
2
9
6
6
7
3
8
11
13
1
12
1
10
5
4
5
6
6
11
8
3
5
8
7
7
5
3
11
9
3
10
10
13
12
7
5
2
6
1
12
8
12
12
3
9
6
1
9
2
2
8
3
3
11
3
3
8
6
3
2
3
6
6
2
5
9
6
10
10
9
12
4
2
4
3
12
10
2
4
10
6
5...

result:

ok 10000 numbers

Test #5:

score: 0
Accepted
time: 43ms
memory: 3400kb

input:

10000
87
12 2 7 16 13 18 8 15 14 18 1 3 16 6 14 10 3 16 12 15 10 5 15 14 6 5 1 3 14 16 16 10 17 7 15 19 6 4 2 8 15 16 15 10 4 15 3 3 2 5 18 3 6 10 3 13 8 5 12 16 13 6 7 16 19 12 19 11 11 14 2 3 2 14 17 16 15 12 11 4 12 7 17 6 8 12 8
43
26 28 1 26 25 2 25 29 40 1 41 27 40 30 8 18 14 29 5 43 25 2 5 20...

output:

33
31
55
11
21
6
6
23
54
57
62
21
18
30
65
47
40
10
34
29
11
29
41
15
19
5
24
34
27
11
44
46
6
16
19
15
48
43
4
63
21
24
31
7
27
54
11
3
23
20
53
31
49
26
58
20
61
32
26
1
4
20
61
18
30
46
34
14
19
38
52
29
39
46
52
46
36
18
6
7
20
64
8
34
25
25
32
48
23
33
67
55
14
25
25
65
47
9
34
28
14
18
12
52
2...

result:

ok 10000 numbers

Test #6:

score: 0
Accepted
time: 150ms
memory: 3388kb

input:

10000
17
5 2 10 3 9 12 8 6 9 10 1 17 17 2 6 11 5
143
81 5 113 139 20 80 2 98 90 75 13 42 5 105 141 140 78 85 29 56 50 50 19 94 116 106 127 12 68 104 9 106 121 25 99 28 49 29 124 64 112 49 79 79 131 82 24 90 21 42 18 20 96 106 52 67 45 75 6 72 67 131 53 138 85 123 65 43 133 123 89 50 41 27 42 102 136...

output:

11
107
39
151
42
84
169
153
162
195
64
147
22
5
5
139
66
21
141
127
103
93
61
56
116
52
200
163
158
18
138
57
148
152
79
9
111
169
8
78
89
78
105
45
108
118
39
187
17
32
74
134
182
137
38
136
17
49
173
8
136
162
82
22
150
64
14
90
50
199
80
48
3
186
150
83
89
87
149
43
9
166
109
123
128
47
128
99
5
...

result:

ok 10000 numbers

Test #7:

score: 0
Accepted
time: 155ms
memory: 10832kb

input:

1
2000000
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:

1667360

result:

ok 1 number(s): "1667360"

Test #8:

score: 0
Accepted
time: 147ms
memory: 10812kb

input:

1
2000000
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:

1

result:

ok 1 number(s): "1"

Test #9:

score: 0
Accepted
time: 123ms
memory: 10900kb

input:

1
2000000
2 1 1 1 1 2 1 2 2 2 1 1 2 1 1 1 1 1 2 2 1 2 2 2 1 2 1 1 2 2 2 2 2 1 2 2 2 1 1 1 2 2 2 2 1 1 2 2 1 2 2 2 2 1 1 1 1 2 2 1 1 2 2 1 1 1 1 2 1 2 2 1 1 2 2 2 2 2 1 1 1 2 2 2 2 1 1 1 1 1 1 1 2 1 1 2 1 2 2 2 1 2 1 1 1 1 2 1 2 1 1 2 1 2 1 1 2 1 2 1 2 1 2 1 1 2 2 2 2 1 1 2 2 1 2 2 1 1 1 1 2 1 2 1 1 ...

output:

364

result:

ok 1 number(s): "364"

Test #10:

score: 0
Accepted
time: 138ms
memory: 10808kb

input:

1
2000000
1 3 1 1 3 2 2 1 2 1 3 2 3 3 1 2 3 3 3 3 2 1 2 1 3 1 1 2 3 2 2 2 2 2 2 3 1 2 3 1 3 2 2 3 3 1 1 3 2 3 2 1 2 3 2 1 2 1 3 3 2 2 2 2 3 3 2 2 1 1 1 2 3 2 1 1 3 3 3 3 3 1 3 2 1 3 2 3 3 1 1 2 2 3 1 1 1 2 3 3 2 2 1 3 3 3 1 2 3 2 3 2 1 1 3 2 1 3 2 3 1 3 2 2 2 3 2 2 2 2 3 3 3 1 1 1 2 1 2 3 1 3 1 1 1 ...

output:

1578

result:

ok 1 number(s): "1578"

Test #11:

score: 0
Accepted
time: 157ms
memory: 10804kb

input:

1
2000000
1 7 10 7 7 2 1 5 9 10 3 2 9 6 8 7 7 7 7 5 6 5 8 3 8 5 4 3 3 1 9 9 5 1 10 8 4 6 2 6 10 6 8 9 8 6 5 4 3 6 1 4 2 8 6 5 1 7 8 8 8 10 3 9 6 6 4 5 5 7 10 2 4 6 1 1 4 9 5 7 4 8 5 9 1 8 4 8 2 8 1 7 10 1 5 5 7 1 3 10 8 8 10 10 6 4 6 4 6 6 6 9 1 9 7 6 3 5 3 4 10 9 3 1 9 1 6 7 9 5 5 5 3 6 9 8 4 3 4 8...

output:

3880

result:

ok 1 number(s): "3880"

Test #12:

score: 0
Accepted
time: 212ms
memory: 10836kb

input:

1
2000000
525 726 5 88 963 257 439 223 478 694 543 312 916 284 636 301 743 812 146 601 244 911 880 839 85 702 899 849 743 960 641 569 620 263 7 371 595 171 436 169 67 221 388 694 995 389 181 804 685 741 173 262 471 900 170 390 521 349 848 168 505 693 111 141 242 992 723 498 888 756 74 654 765 780 74...

output:

45944

result:

ok 1 number(s): "45944"

Test #13:

score: 0
Accepted
time: 276ms
memory: 10868kb

input:

1
2000000
71101 45427 9442 45073 86490 35951 80850 31820 54435 52808 21127 86929 10793 41757 15164 19354 90926 57731 51740 68085 17640 24994 6536 20515 27745 42067 61269 77339 10585 35048 58731 1284 38562 82724 17671 77982 84163 79615 84409 10586 89175 59683 51495 93245 24107 4754 6057 85218 43875 5...

output:

700077

result:

ok 1 number(s): "700077"

Test #14:

score: 0
Accepted
time: 349ms
memory: 10836kb

input:

1
2000000
801695 1775640 1453469 191274 803816 1121038 345546 1039287 577318 1713863 769521 453791 1292511 598329 253920 1148468 1011533 66864 1164254 376796 488928 1951180 1792931 199055 713272 1602560 452956 1405404 1757486 964629 1673256 893413 662604 223653 57757 1528798 1840592 1385248 203459 1...

output:

1432238

result:

ok 1 number(s): "1432238"

Test #15:

score: 0
Accepted
time: 141ms
memory: 10900kb

input:

1
2000000
6 7 6 3 4 4 7 7 4 4 7 1 6 4 6 7 7 4 2 1 4 1 4 3 3 7 6 4 8 6 3 7 4 7 4 7 9 4 2 3 2 7 1 1 2 4 4 8 6 2 6 7 4 6 8 9 4 9 7 6 4 1 2 2 3 7 2 1 6 1 9 5 7 7 2 8 6 4 6 3 4 7 4 8 4 2 1 1 6 1 1 9 7 2 9 7 4 6 7 7 7 7 3 1 4 1 1 4 4 1 3 4 6 1 6 7 4 2 6 7 1 6 6 6 1 10 3 7 1 10 4 7 2 7 2 1 6 2 7 2 8 9 2 7 ...

output:

4918

result:

ok 1 number(s): "4918"

Test #16:

score: 0
Accepted
time: 164ms
memory: 10872kb

input:

1
2000000
10 17 12 1 1 3 6 19 15 19 15 12 19 17 6 7 12 12 19 10 10 17 10 3 10 17 3 12 19 15 12 19 3 3 10 17 5 12 10 6 12 7 4 7 6 12 12 3 17 7 12 7 17 12 17 7 12 19 17 12 17 17 5 17 10 17 7 17 12 6 12 10 13 5 12 10 15 19 17 7 1 12 12 1 17 14 6 3 7 10 4 17 6 6 12 17 15 7 6 12 6 19 4 3 19 7 17 17 7 17 ...

output:

166674

result:

ok 1 number(s): "166674"

Test #17:

score: 0
Accepted
time: 164ms
memory: 10844kb

input:

1
2000000
42 91 59 8 88 52 3 30 82 92 94 4 26 25 89 94 34 41 74 56 68 9 55 41 30 42 4 34 48 55 92 42 49 86 88 67 51 69 5 72 19 89 79 38 34 98 83 59 77 74 86 43 60 43 79 38 76 89 10 60 37 88 10 8 43 34 60 35 85 94 92 69 3 97 72 25 92 83 56 88 72 26 4 69 94 86 82 10 88 34 77 87 52 48 73 95 52 34 43 87...

output:

500034

result:

ok 1 number(s): "500034"

Test #18:

score: 0
Accepted
time: 198ms
memory: 10840kb

input:

1
2000000
435 794 427 782 616 121 960 684 466 293 805 30 944 6 73 740 930 476 384 654 941 487 43 949 518 251 431 845 548 261 758 324 958 266 668 960 249 455 752 377 434 262 12 185 421 7 324 673 859 687 427 131 77 105 209 619 989 308 966 846 964 991 102 916 583 536 424 24 600 803 116 146 28 863 229 9...

output:

400402

result:

ok 1 number(s): "400402"

Test #19:

score: 0
Accepted
time: 222ms
memory: 10772kb

input:

1
2000000
586 177 468 393 220 177 446 732 728 410 645 312 796 409 858 591 177 392 285 442 984 990 848 816 743 124 962 424 986 492 307 452 91 40 562 913 373 124 483 690 791 580 481 899 312 473 381 443 629 791 306 872 650 703 452 112 965 108 27 780 451 41 804 568 240 528 438 61 732 663 310 694 783 93 ...

output:

1000270

result:

ok 1 number(s): "1000270"

Test #20:

score: 0
Accepted
time: 290ms
memory: 10836kb

input:

1
2000000
1028 3949 2498 1526 1170 3680 314 628 3423 3007 708 4151 450 4327 2417 1181 1272 2190 4392 4510 2133 435 191 4062 455 3561 115 3923 3564 4585 3474 1092 986 79 3429 4831 1256 1398 4895 4890 2031 4088 942 1898 2836 4055 86 2076 3798 94 2345 835 16 970 4835 2284 3801 3136 4386 3992 4952 3583 ...

output:

107599

result:

ok 1 number(s): "107599"

Test #21:

score: 0
Accepted
time: 214ms
memory: 10864kb

input:

1
2000000
4931 1565 3038 1225 1423 2455 2084 1225 2473 1107 3624 4369 3720 4226 1340 3210 1555 902 1248 3903 3502 438 143 2589 740 3764 796 2602 2467 4091 4897 4099 4828 4614 4130 2668 3270 3937 2560 1638 3305 4130 4674 2763 4736 2106 2045 719 4294 2865 4931 3281 2065 3532 3130 1591 1409 4329 1332 3...

output:

1001720

result:

ok 1 number(s): "1001720"

Test #22:

score: 0
Accepted
time: 274ms
memory: 10840kb

input:

1
2000000
31473 3811 14151 46789 31488 49245 49794 1623 27462 30975 49036 41625 19053 17385 15722 37272 27234 26859 32613 40685 5667 28198 3519 5050 20683 40571 28561 17850 36119 36908 47700 30568 35803 27756 29780 536 21963 21189 41672 28012 33272 20897 42549 30498 41003 46695 31754 35744 30396 329...

output:

1018550

result:

ok 1 number(s): "1018550"

Test #23:

score: 0
Accepted
time: 267ms
memory: 10904kb

input:

1
2000000
82315 3021 25654 26916 61145 64505 87322 98460 41216 11702 59553 98255 65433 98459 12893 67127 26263 59284 11606 27346 79332 51178 86710 29112 78670 29870 22047 31687 68445 45433 48654 95356 13766 75854 60731 42515 71697 56462 40513 88899 15903 37765 74378 94289 67131 63401 62342 84574 956...

output:

1025299

result:

ok 1 number(s): "1025299"

Test #24:

score: 0
Accepted
time: 317ms
memory: 10816kb

input:

1
2000000
668998 276485 666806 858799 226530 55300 771742 1926261 1128981 1001994 286557 1054358 1413733 179268 747762 1676243 1105071 783003 260649 754711 587326 976348 252312 870801 1398549 1215856 510820 1944545 1750079 1720010 760890 1915555 453796 1908242 853886 878021 970481 1855124 805158 156...

output:

2000000

result:

ok 1 number(s): "2000000"

Test #25:

score: 0
Accepted
time: 26ms
memory: 5028kb

input:

1
499999
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:

374999

result:

ok 1 number(s): "374999"

Test #26:

score: 0
Accepted
time: 158ms
memory: 10812kb

input:

1
2000000
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:

1500000

result:

ok 1 number(s): "1500000"

Test #27:

score: 0
Accepted
time: 139ms
memory: 10800kb

input:

1
1999999
1 2 1 1 1 2 2 1 1 1 2 1 2 1 2 1 1 2 2 1 1 1 2 1 2 2 2 2 1 1 1 2 1 2 1 2 1 1 2 2 2 1 1 2 2 2 2 1 2 2 2 1 1 2 1 1 1 2 2 2 2 1 1 1 1 2 1 2 2 1 2 1 2 2 2 1 1 1 1 2 1 2 1 2 1 1 2 1 2 2 1 2 2 1 1 1 1 2 1 1 1 1 1 1 1 2 1 2 2 1 2 2 1 1 1 1 2 2 1 2 1 1 1 2 1 1 2 2 2 2 1 1 1 2 2 1 2 2 1 2 1 2 2 1 2 ...

output:

2

result:

ok 1 number(s): "2"

Test #28:

score: 0
Accepted
time: 141ms
memory: 10904kb

input:

1
1999998
2 2 1 3 3 3 2 1 2 3 2 1 3 3 3 3 2 3 2 1 3 3 1 2 3 1 3 1 1 2 2 1 3 1 1 2 3 3 1 1 2 2 3 1 2 3 2 1 2 3 2 1 1 1 1 1 3 1 1 3 3 1 2 2 3 1 1 2 2 3 1 2 3 1 1 2 3 2 1 2 3 1 1 3 2 3 3 2 3 2 2 1 1 2 2 2 1 3 3 2 1 3 3 2 3 2 1 2 1 2 1 2 2 3 3 3 3 2 1 1 3 3 3 1 1 1 2 2 2 2 1 2 2 2 2 1 2 3 1 3 2 1 3 1 3 ...

output:

12

result:

ok 1 number(s): "12"

Test #29:

score: 0
Accepted
time: 146ms
memory: 10824kb

input:

1
1999998
3 2 2 1 2 1 4 3 4 3 2 4 2 3 4 3 1 1 4 2 3 3 2 3 1 4 4 4 1 4 3 4 4 2 2 4 2 1 3 4 1 2 3 2 2 3 2 1 2 4 2 4 3 2 4 2 2 2 2 3 3 4 1 4 1 2 2 4 1 2 3 4 4 1 4 2 2 2 4 2 1 3 2 4 3 1 2 2 1 3 3 4 1 4 1 1 1 3 2 1 3 4 1 4 4 1 4 4 2 3 2 3 3 2 4 2 3 2 2 4 2 1 1 4 2 4 4 4 3 3 4 2 1 3 1 3 1 4 3 4 2 4 1 1 4 ...

output:

12

result:

ok 1 number(s): "12"

Test #30:

score: 0
Accepted
time: 39ms
memory: 5028kb

input:

1
499990
1 3 5 3 4 5 3 2 5 5 2 4 2 3 2 2 2 4 5 5 1 3 4 4 4 1 3 5 2 5 5 4 1 2 5 3 2 4 1 3 1 2 5 2 1 5 2 5 5 5 1 2 2 2 4 4 2 5 1 1 2 3 2 5 5 2 3 5 5 4 3 2 1 4 5 1 2 1 5 5 5 2 4 2 5 2 2 4 2 1 5 3 4 1 1 5 3 5 5 4 5 2 2 1 4 3 2 5 5 4 4 1 2 5 5 4 1 5 5 5 4 3 2 5 5 3 3 1 3 3 5 1 4 4 2 5 2 3 1 5 2 4 4 3 5 5...

output:

20

result:

ok 1 number(s): "20"

Test #31:

score: 0
Accepted
time: 222ms
memory: 10852kb

input:

1
1999000
1586 1733 1158 1664 1717 1966 1509 1308 1771 1556 1572 1259 1702 1441 1512 1599 883 1835 1148 1302 1548 552 566 1944 1209 1531 1582 991 1885 348 1379 1277 1966 1182 1843 815 1991 1845 1401 1422 1118 1410 974 727 1731 782 1030 1634 1581 1648 1353 1282 1479 1478 749 1865 1768 1418 711 695 19...

output:

1000000

result:

ok 1 number(s): "1000000"

Test #32:

score: 0
Accepted
time: 218ms
memory: 10776kb

input:

1
1991115
814 1531 1211 1727 1111 1314 720 482 1749 589 1222 1205 1144 1140 1174 957 1138 1312 1469 690 1344 1206 77 823 1781 1133 1802 1641 511 1422 1182 1461 1385 1091 1026 1439 1718 35 1649 1687 1334 409 1262 1397 26 758 1164 864 533 463 1726 1268 1282 1408 1468 579 1350 1563 1219 1766 82 756 109...

output:

133584

result:

ok 1 number(s): "133584"

Test #33:

score: 0
Accepted
time: 174ms
memory: 10844kb

input:

1
2000000
2000000 1999999 1999998 1999997 1999996 1999995 1999994 1999993 1999992 1999991 1999990 1999989 1999988 1999987 1999986 1999985 1999984 1999983 1999982 1999981 1999980 1999979 1999978 1999977 1999976 1999975 1999974 1999973 1999972 1999971 1999970 1999969 1999968 1999967 1999966 1999965 19...

output:

2000000

result:

ok 1 number(s): "2000000"

Test #34:

score: 0
Accepted
time: 152ms
memory: 10864kb

input:

1
1999999
1999999 1999998 1999997 1999996 1999995 1999994 1999993 1999992 1999991 1999990 1999989 1999988 1999987 1999986 1999985 1999984 1999983 1999982 1999981 1999980 1999979 1999978 1999977 1999976 1999975 1999974 1999973 1999972 1999971 1999970 1999969 1999968 1999967 1999966 1999965 1999964 19...

output:

1999999

result:

ok 1 number(s): "1999999"

Test #35:

score: 0
Accepted
time: 119ms
memory: 10900kb

input:

1
1999999
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:

1

result:

ok 1 number(s): "1"

Test #36:

score: 0
Accepted
time: 120ms
memory: 10808kb

input:

1
2000000
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...

output:

1000001

result:

ok 1 number(s): "1000001"

Test #37:

score: 0
Accepted
time: 114ms
memory: 10896kb

input:

1
2000000
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:

1000001

result:

ok 1 number(s): "1000001"

Test #38:

score: 0
Accepted
time: 128ms
memory: 10804kb

input:

1
1999999
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:

1000001

result:

ok 1 number(s): "1000001"

Test #39:

score: 0
Accepted
time: 114ms
memory: 10904kb

input:

1
1999999
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...

output:

1000001

result:

ok 1 number(s): "1000001"

Test #40:

score: 0
Accepted
time: 126ms
memory: 10848kb

input:

1
1999999
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:

1000001

result:

ok 1 number(s): "1000001"

Test #41:

score: 0
Accepted
time: 118ms
memory: 10848kb

input:

1
2000000
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:

10

result:

ok 1 number(s): "10"

Test #42:

score: 0
Accepted
time: 107ms
memory: 10836kb

input:

1
2000000
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:

10

result:

ok 1 number(s): "10"

Test #43:

score: 0
Accepted
time: 123ms
memory: 10836kb

input:

1
2000000
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:

10

result:

ok 1 number(s): "10"