QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#756619#8225. 最小值之和mekoszc100 ✓114ms8744kbC++141.8kb2024-11-16 21:13:062024-11-16 21:13:08

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 0ms
memory: 8684kb

input:

5
14 14 12 13 13

output:

Yes
8 6 0 13 

result:

ok The answer is correct.

Test #2:

score: 11
Accepted
time: 0ms
memory: 8676kb

input:

5
4 4 7 7 4

output:

Yes
1 1 4 1 

result:

ok The answer is correct.

Test #3:

score: 11
Accepted
time: 0ms
memory: 8680kb

input:

5
4 13 14 14 13

output:

Yes
1 4 5 4 

result:

ok The answer is correct.

Test #4:

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

input:

5
11 11 10 5 5

output:

Yes
6 5 0 5 

result:

ok The answer is correct.

Test #5:

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

input:

5
10 10 10 4 4

output:

Yes
4 4 1 1 

result:

ok The answer is correct.

Test #6:

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

input:

5
20 20 17 7 4

output:

Yes
10 7 2 1 

result:

ok The answer is correct.

Test #7:

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

input:

5
12 12 16 19 19

output:

Yes
12 0 8 11 

result:

ok The answer is correct.

Test #8:

score: 11
Accepted
time: 0ms
memory: 8588kb

input:

5
2 2 6 11 11

output:

Yes
2 0 3 8 

result:

ok The answer is correct.

Test #9:

score: 11
Accepted
time: 0ms
memory: 8660kb

input:

5
10 10 8 5 5

output:

Yes
6 4 0 5 

result:

ok The answer is correct.

Test #10:

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

input:

5
24 24 28 28 26

output:

Yes
24 0 15 13 

result:

ok The answer is correct.

Test #11:

score: 11
Accepted
time: 0ms
memory: 8740kb

input:

5
5 5 22 31 31

output:

Yes
5 0 11 20 

result:

ok The answer is correct.

Test #12:

score: 11
Accepted
time: 0ms
memory: 8552kb

input:

5
8 33 38 38 29

output:

Yes
2 11 16 9 

result:

ok The answer is correct.

Test #13:

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

input:

5
16 16 4 12 12

output:

Yes
14 2 0 12 

result:

ok The answer is correct.

Test #14:

score: 11
Accepted
time: 0ms
memory: 8736kb

input:

5
29 29 24 26 26

output:

Yes
17 12 0 26 

result:

ok The answer is correct.

Test #15:

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

input:

5
0 33 33 32 32

output:

Yes
0 33 0 32 

result:

ok The answer is correct.

Test #16:

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

input:

5
20 16 8 25 22

output:

No

result:

ok The answer is correct.

Test #17:

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

input:

5
0 2 3 0 2

output:

No

result:

ok The answer is correct.

Test #18:

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

input:

5
28 23 29 29 24

output:

No

result:

ok The answer is correct.

Test #19:

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

input:

5
0 1 0 4 2

output:

No

result:

ok The answer is correct.

Test #20:

score: 11
Accepted
time: 0ms
memory: 8400kb

input:

5
12 21 21 13 4

output:

No

result:

ok The answer is correct.

Test #21:

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

input:

5
9 22 25 23 12

output:

No

result:

ok The answer is correct.

Test #22:

score: 11
Accepted
time: 0ms
memory: 8584kb

input:

5
6 7 7 6 6

output:

Yes
3 4 0 6 

result:

ok The answer is correct.

Test #23:

score: 11
Accepted
time: 0ms
memory: 8600kb

input:

5
25 25 24 20 20

output:

Yes
8 7 5 5 

result:

ok The answer is correct.

Test #24:

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

input:

5
17 9 8 16 9

output:

No

result:

ok The answer is correct.

Test #25:

score: 11
Accepted
time: 0ms
memory: 8612kb

input:

5
20 5 34 34 23

output:

No

result:

ok The answer is correct.

Test #26:

score: 11
Accepted
time: 0ms
memory: 8476kb

input:

5
15 33 35 35 31

output:

No

result:

ok The answer is correct.

Test #27:

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

input:

5
21 22 23 1 18

output:

No

result:

ok The answer is correct.

Test #28:

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

input:

5
4 2 3 4 2

output:

No

result:

ok The answer is correct.

Test #29:

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

input:

5
16 25 8 19 7

output:

No

result:

ok The answer is correct.

Test #30:

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

input:

5
4 0 8 6 6

output:

No

result:

ok The answer is correct.

Test #31:

score: 11
Accepted
time: 0ms
memory: 8456kb

input:

2
2 3

output:

No

result:

ok The answer is correct.

Test #32:

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

input:

2
2 2

output:

Yes
2 

result:

ok The answer is correct.

Test #33:

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

input:

1
0

output:

Yes

result:

ok The answer is correct.

Test #34:

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

input:

1
233

output:

No

result:

ok The answer is correct.

Subtask #2:

score: 15
Accepted

Dependency #1:

100%
Accepted

Test #35:

score: 15
Accepted
time: 1ms
memory: 8660kb

input:

8
16 16 8 8 9 9 6 6

output:

Yes
16 0 8 0 9 0 6 

result:

ok The answer is correct.

Test #36:

score: 15
Accepted
time: 1ms
memory: 8656kb

input:

8
16 16 9 21 21 23 23 23

output:

Yes
9 2 1 15 1 9 9 

result:

ok The answer is correct.

Test #37:

score: 15
Accepted
time: 2ms
memory: 8656kb

input:

8
10 10 15 15 15 10 10 5

output:

Yes
10 0 6 6 1 6 1 

result:

ok The answer is correct.

Test #38:

score: 15
Accepted
time: 2ms
memory: 8736kb

input:

8
13 13 15 15 24 24 24 10

output:

Yes
7 1 9 1 9 9 2 

result:

ok The answer is correct.

Test #39:

score: 15
Accepted
time: 1ms
memory: 8660kb

input:

8
5 13 16 25 25 24 4 4

output:

Yes
1 3 4 9 8 0 4 

result:

ok The answer is correct.

Test #40:

score: 15
Accepted
time: 1ms
memory: 8548kb

input:

8
1313 1695 1695 1129 1129 711 557 557

output:

Yes
655 1037 1 772 354 0 557 

result:

ok The answer is correct.

Test #41:

score: 15
Accepted
time: 1ms
memory: 8660kb

input:

8
1386 1416 1416 1069 1069 390 645 645

output:

Yes
576 606 78 757 78 0 645 

result:

ok The answer is correct.

Test #42:

score: 15
Accepted
time: 0ms
memory: 8652kb

input:

8
3377 3377 3164 3164 3570 3570 3365 3365

output:

Yes
3377 0 3164 0 3570 0 3365 

result:

ok The answer is correct.

Test #43:

score: 15
Accepted
time: 1ms
memory: 8608kb

input:

8
28167709 33181201 33829300 33829300 21924091 26145199 28398185 28398185

output:

Yes
7562228 10068974 10717073 5481022 1 13072597 15325583 

result:

ok The answer is correct.

Test #44:

score: 15
Accepted
time: 0ms
memory: 8740kb

input:

8
4726918 12793592 12793592 6681214 13995142 22020836 22566624 22566624

output:

Yes
1575638 8665164 2552786 1 4665046 8677893 9223681 

result:

ok The answer is correct.

Test #45:

score: 15
Accepted
time: 1ms
memory: 8664kb

input:

8
9146297 15736298 15736298 16471005 16471005 14187656 14187656 6001415

output:

Yes
2429786 9019787 857345 11326935 857345 9043586 857345 

result:

ok The answer is correct.

Test #46:

score: 15
Accepted
time: 0ms
memory: 8608kb

input:

8
25115296 25115296 22120670 21035156 20603135 28703897 28703897 27553199

output:

Yes
8832173 5837547 5294790 5150783 1 14927295 13776597 

result:

ok The answer is correct.

Test #47:

score: 15
Accepted
time: 1ms
memory: 8672kb

input:

8
22440147 22440147 22626721 22626721 22592252 22592252 19174074 19174074

output:

Yes
22440147 0 22626721 0 22592252 0 19174074 

result:

ok The answer is correct.

Test #48:

score: 15
Accepted
time: 0ms
memory: 8616kb

input:

8
12 0 13 8 18 18 18 0

output:

No

result:

ok The answer is correct.

Test #49:

score: 15
Accepted
time: 0ms
memory: 8608kb

input:

8
3 23 13 18 26 12 25 25

output:

No

result:

ok The answer is correct.

Test #50:

score: 15
Accepted
time: 1ms
memory: 8608kb

input:

8
1353255 1004808 981534 1400692 1246708 409750 1177255 1177255

output:

No

result:

ok The answer is correct.

Test #51:

score: 15
Accepted
time: 1ms
memory: 8520kb

input:

8
96 96 99 99 4 94 39 36

output:

No

result:

ok The answer is correct.

Test #52:

score: 15
Accepted
time: 1ms
memory: 8400kb

input:

8
15 21 0 20 20 15 13 6

output:

No

result:

ok The answer is correct.

Test #53:

score: 15
Accepted
time: 0ms
memory: 8472kb

input:

8
2 1 0 2 6 6 5 1

output:

No

result:

ok The answer is correct.

Test #54:

score: 15
Accepted
time: 1ms
memory: 8604kb

input:

8
7 12 11 11 1 11 4 11

output:

No

result:

ok The answer is correct.

Test #55:

score: 15
Accepted
time: 1ms
memory: 8396kb

input:

8
18 3 27 27 19 10 6 6

output:

No

result:

ok The answer is correct.

Subtask #3:

score: 13
Accepted

Dependency #2:

100%
Accepted

Test #56:

score: 13
Accepted
time: 1ms
memory: 8740kb

input:

14
10 10 2 30 45 50 50 47 47 47 46 33 33 32

output:

Yes
9 1 0 6 11 15 12 2 19 18 0 17 16 

result:

ok The answer is correct.

Test #57:

score: 13
Accepted
time: 1ms
memory: 8668kb

input:

14
0 19 19 16 16 4 0 36 36 36 36 31 31 26

output:

Yes
0 19 0 14 2 0 0 36 0 36 0 18 13 

result:

ok The answer is correct.

Test #58:

score: 13
Accepted
time: 1ms
memory: 8744kb

input:

14
37 38 38 37 28 27 27 28 28 10 17 17 12 4

output:

Yes
10 11 10 7 0 27 0 28 0 3 9 4 1 

result:

ok The answer is correct.

Test #59:

score: 13
Accepted
time: 2ms
memory: 8604kb

input:

14
13 27 33 33 30 30 31 31 20 20 25 25 24 24

output:

Yes
3 10 16 2 22 0 31 0 20 0 25 0 24 

result:

ok The answer is correct.

Test #60:

score: 13
Accepted
time: 1ms
memory: 8740kb

input:

14
50 50 52 52 54 60 62 62 62 33 33 28 34 34

output:

Yes
50 0 47 1 13 15 16 16 0 19 14 0 34 

result:

ok The answer is correct.

Test #61:

score: 13
Accepted
time: 0ms
memory: 8736kb

input:

14
5123 5321 5321 5600 5600 5161 5537 5537 5359 4679 4679 4128 4128 3029

output:

Yes
620 818 398 1078 639 398 916 738 398 398 233 1332 233 

result:

ok The answer is correct.

Test #62:

score: 13
Accepted
time: 1ms
memory: 8664kb

input:

14
340 2315 2315 2251 2251 1200 1366 1366 2831 2831 2864 2864 2812 2680

output:

Yes
170 2145 0 1651 600 0 1366 0 588 569 621 569 536 

result:

ok The answer is correct.

Test #63:

score: 13
Accepted
time: 1ms
memory: 8584kb

input:

14
681 810 2276 2390 2390 1189 2424 2424 2031 1180 2548 2620 2620 221

output:

Yes
132 175 908 1022 17 259 1073 680 256 18 1178 1250 17 

result:

ok The answer is correct.

Test #64:

score: 13
Accepted
time: 1ms
memory: 8548kb

input:

14
37026886 40993600 44483477 44483477 41071802 57414984 57414984 60000010 60000010 64898381 64898381 63120240 63120240 58440430

output:

Yes
9256721 10578959 14029735 10618060 1 57414979 0 60000010 0 64898381 0 33900025 29220215 

result:

ok The answer is correct.

Test #65:

score: 13
Accepted
time: 1ms
memory: 8592kb

input:

14
49671403 50230564 50230564 63423001 63423001 62198273 62452752 62452752 44987219 48671053 49604115 49604115 20314360 20314360

output:

Yes
7965494 8524655 5623402 15453657 14228929 5623402 23088935 5623402 1 24335522 25268584 0 20314360 

result:

ok The answer is correct.

Test #66:

score: 13
Accepted
time: 1ms
memory: 8672kb

input:

14
17008521 17008521 17440120 44338597 44338597 42528453 45138523 45138523 43354927 34182290 34182290 33775196 33775196 32314840

output:

Yes
17008521 0 8720060 35618537 0 14176151 16372984 14589388 0 34182290 0 17617776 16157420 

result:

ok The answer is correct.

Test #67:

score: 13
Accepted
time: 1ms
memory: 8740kb

input:

14
17784224 17784224 16246661 3452639 30562832 30928394 31034175 31034175 17501619 21436456 21436456 5363633 5661668 5661668

output:

Yes
9660889 8123326 1 863158 9899889 10082670 10188451 1 7856868 11791705 1787875 0 5661668 

result:

ok The answer is correct.

Test #68:

score: 13
Accepted
time: 1ms
memory: 8740kb

input:

14
69235639 69235639 68987597 68987597 57039158 57039158 55926434 63346321 63346321 66237443 66237443 64858399 62617841 60839024

output:

Yes
69235639 0 68987597 0 29075941 27963217 0 63346321 0 18302018 16922974 15802695 15209756 

result:

ok The answer is correct.

Test #69:

score: 13
Accepted
time: 1ms
memory: 8476kb

input:

14
87 74 86 89 86 79 79 14 37 9 33 33 38 38

output:

No

result:

ok The answer is correct.

Test #70:

score: 13
Accepted
time: 1ms
memory: 8552kb

input:

14
8 10 24 23 23 19 31 30 15 16 2 23 34 27

output:

No

result:

ok The answer is correct.

Test #71:

score: 13
Accepted
time: 1ms
memory: 8480kb

input:

14
72 72 72 64 72 62 15 15 42 42 6 26 43 25

output:

No

result:

ok The answer is correct.

Test #72:

score: 13
Accepted
time: 1ms
memory: 8532kb

input:

14
124 125 103 108 120 120 121 127 130 130 69 43 48 48

output:

No

result:

ok The answer is correct.

Test #73:

score: 13
Accepted
time: 0ms
memory: 8476kb

input:

14
18 3 16 11 11 24 24 25 25 10 14 17 13 10

output:

No

result:

ok The answer is correct.

Test #74:

score: 13
Accepted
time: 0ms
memory: 8404kb

input:

14
1432833 514825 398091 1958543 1337446 1729822 2090128 1970313 1970313 2487044 1900924 2317778 425241 425241

output:

No

result:

ok The answer is correct.

Test #75:

score: 13
Accepted
time: 0ms
memory: 8456kb

input:

14
24 3 0 31 31 23 9 15 21 25 21 25 27 27

output:

No

result:

ok The answer is correct.

Test #76:

score: 13
Accepted
time: 0ms
memory: 8612kb

input:

14
27 46 64 56 68 68 68 13 74 74 74 51 26 55

output:

No

result:

ok The answer is correct.

Subtask #4:

score: 25
Accepted

Dependency #1:

100%
Accepted

Test #77:

score: 25
Accepted
time: 8ms
memory: 8744kb

input:

49
28 28 28 24 37 37 33 36 36 29 43 43 41 41 29 48 51 51 44 49 50 50 9 9 15 18 18 3 17 17 9 13 17 17 13 13 0 6 6 16 21 25 25 19 7 19 19 17 4

output:

Yes
4 4 2 1 11 7 1 12 5 1 23 1 21 1 3 10 13 8 1 15 16 0 9 0 7 10 1 0 17 0 3 5 9 0 13 0 0 6 0 4 6 10 5 0 2 9 7 1 

result:

ok The answer is correct.

Test #78:

score: 25
Accepted
time: 12ms
memory: 8740kb

input:

49
3 3 29 29 31 31 34 34 34 34 31 22 22 21 21 21 36 36 37 42 42 41 22 22 6 6 19 37 65 71 71 77 78 78 76 76 42 46 46 40 60 60 60 60 60 60 6 6 4

output:

Yes
3 0 29 0 31 0 34 0 17 14 1 10 9 0 21 0 28 2 11 14 13 0 22 0 6 0 4 10 24 30 1 36 37 0 55 21 0 26 20 0 60 0 60 0 60 0 4 2 

result:

ok The answer is correct.

Test #79:

score: 25
Accepted
time: 13ms
memory: 8544kb

input:

49
18 18 18 16 16 59 61 64 64 57 57 78 78 78 78 81 92 92 92 92 89 81 47 64 64 63 59 65 65 63 52 52 34 34 33 8 13 13 17 17 14 16 19 19 13 13 18 18 18

output:

Yes
5 5 4 4 0 19 20 23 1 53 0 78 0 78 0 36 47 1 28 25 21 3 8 15 14 12 0 28 26 2 39 2 12 11 1 0 13 0 10 7 0 8 11 0 13 0 9 9 

result:

ok The answer is correct.

Test #80:

score: 25
Accepted
time: 14ms
memory: 8548kb

input:

50
43 47 47 42 42 41 51 51 57 62 62 61 58 58 67 67 68 68 63 68 68 67 71 71 76 76 76 76 76 76 48 48 48 48 36 36 33 33 4 8 8 6 6 11 11 3 3 10 10 10

output:

Yes
6 10 5 6 5 1 31 1 13 16 15 1 38 1 47 1 27 22 1 25 24 0 71 0 76 0 76 0 76 0 48 0 48 0 36 0 31 2 0 8 0 6 0 11 0 3 0 5 5 

result:

ok The answer is correct.

Test #81:

score: 25
Accepted
time: 6ms
memory: 8548kb

input:

49
12 14 14 16 16 10 18 32 32 30 30 0 0 5 5 4 0 9 9 18 18 18 30 41 43 43 39 39 35 24 26 27 27 6 6 13 13 19 22 22 21 21 44 44 43 43 33 33 31

output:

Yes
3 5 2 8 2 0 9 23 0 30 0 0 0 3 2 0 0 9 0 5 5 1 4 7 9 6 6 5 3 0 13 14 0 6 0 5 2 5 7 6 0 8 31 1 37 1 15 13 

result:

ok The answer is correct.

Test #82:

score: 25
Accepted
time: 7ms
memory: 8628kb

input:

48
13 13 11 3 36 40 40 40 36 35 35 30 18 18 33 33 33 23 20 20 17 19 20 20 0 10 31 31 28 30 30 5 16 16 13 12 12 36 39 39 37 37 25 25 26 26 7 7

output:

Yes
7 5 1 0 9 11 11 9 0 20 15 0 14 1 12 12 7 0 10 7 1 8 9 0 0 5 26 0 14 16 0 1 8 5 1 8 0 18 21 0 37 0 25 0 26 0 7 

result:

ok The answer is correct.

Test #83:

score: 25
Accepted
time: 12ms
memory: 8664kb

input:

49
72 72 71 33 98 98 89 89 174 174 163 163 170 170 82 98 98 202 202 179 164 282 299 299 316 316 300 262 250 250 236 154 140 148 150 150 148 148 131 95 95 106 106 108 108 81 78 78 51

output:

Yes
31 30 11 0 98 0 89 0 174 0 163 0 129 41 0 76 1 102 79 1 48 107 124 1 113 97 78 3 97 83 42 1 40 44 46 1 72 55 0 95 0 106 0 66 39 1 51 24 

result:

ok The answer is correct.

Test #84:

score: 25
Accepted
time: 14ms
memory: 8660kb

input:

50
148 360 360 392 392 399 399 384 350 350 346 346 306 306 314 314 346 346 323 321 174 293 299 304 342 342 340 328 328 227 227 192 330 339 339 318 327 327 326 266 266 182 204 204 67 67 79 79 85 85

output:

Yes
74 286 0 392 0 207 192 0 350 0 137 97 97 1 297 1 101 78 77 28 7 36 37 38 58 56 38 62 0 227 0 48 96 105 90 0 164 163 0 175 91 0 204 0 67 0 79 0 85 

result:

ok The answer is correct.

Test #85:

score: 25
Accepted
time: 8ms
memory: 8740kb

input:

48
200 224 224 200 267 267 259 231 246 246 215 215 196 184 180 180 270 270 270 234 230 233 233 186 114 165 165 160 190 212 212 243 243 239 239 143 143 162 162 262 264 264 246 234 238 238 22 22

output:

Yes
40 64 40 2 71 63 49 4 154 2 59 40 34 3 92 2 66 66 48 4 53 56 31 7 2 44 39 2 54 76 2 159 2 155 2 59 2 78 2 51 53 43 39 0 238 0 22 

result:

ok The answer is correct.

Test #86:

score: 25
Accepted
time: 13ms
memory: 8744kb

input:

49
226 226 216 196 196 158 193 253 253 257 257 257 201 300 300 320 384 392 392 385 385 263 291 291 269 287 287 277 277 487 487 497 497 496 482 507 511 511 503 331 152 173 189 214 214 232 232 221 191

output:

Yes
104 94 2 103 65 1 84 144 1 87 87 59 1 270 2 98 130 138 1 241 119 1 144 122 1 136 126 0 134 344 1 122 121 42 78 87 91 85 41 0 37 44 52 77 1 88 77 62 

result:

ok The answer is correct.

Test #87:

score: 25
Accepted
time: 13ms
memory: 8588kb

input:

49
247 247 231 383 383 381 379 398 398 397 391 195 200 227 227 197 197 339 339 337 344 344 379 388 388 379 343 405 405 412 412 402 402 412 412 398 398 415 430 430 382 382 384 384 341 198 122 124 124

output:

Yes
130 114 1 191 189 0 85 93 92 89 39 0 100 127 0 197 0 339 0 166 173 1 97 106 97 85 0 405 0 412 0 360 3 370 3 268 12 125 140 20 197 20 131 88 19 10 0 124 

result:

ok The answer is correct.

Test #88:

score: 25
Accepted
time: 11ms
memory: 8664kb

input:

48
196 196 284 284 280 280 263 303 387 387 388 388 343 321 321 328 328 283 283 151 157 157 164 164 198 203 203 172 166 178 259 280 294 294 288 243 239 239 235 226 226 330 333 333 302 287 295 295

output:

Yes
64 3 152 3 84 67 3 87 171 3 152 107 3 189 3 196 3 143 11 3 25 3 15 5 23 28 10 8 4 9 26 33 43 37 22 3 57 53 3 94 3 60 63 46 41 0 295 

result:

ok The answer is correct.

Test #89:

score: 25
Accepted
time: 11ms
memory: 8504kb

input:

48
244 256 256 248 253 253 269 269 250 229 229 67 252 322 261 116 372 271 372 322 333 333 393 429 429 428 347 319 294 387 234 352 370 370 317 37 193 398 10 76 215 222 222 208 344 145 171 87

output:

No

result:

ok The answer is correct.

Test #90:

score: 25
Accepted
time: 10ms
memory: 8612kb

input:

50
34 15 33 66 66 66 33 39 9 35 55 29 34 35 51 13 50 50 56 48 44 43 57 57 57 25 50 50 27 27 21 47 35 50 50 55 55 53 7 43 37 55 55 62 62 62 52 21 26 26

output:

No

result:

ok The answer is correct.

Test #91:

score: 25
Accepted
time: 12ms
memory: 8476kb

input:

49
47 64 64 64 59 74 74 3 72 19 67 71 25 61 61 58 50 49 49 58 62 70 70 69 51 70 62 62 62 62 62 54 8 41 41 41 19 40 40 20 8 24 24 20 16 16 16 19 19

output:

No

result:

ok The answer is correct.

Test #92:

score: 25
Accepted
time: 8ms
memory: 8596kb

input:

48
13 13 10 27 27 28 28 18 29 29 26 24 31 31 30 26 12 12 0 0 0 42 42 38 38 38 37 37 27 27 26 60 60 68 70 70 67 67 70 70 67 67 48 49 49 47 47 44

output:

Yes
8 5 0 27 0 19 9 0 12 9 8 0 11 10 8 1 8 0 0 0 0 23 19 0 38 0 37 0 14 13 0 60 0 34 36 0 67 0 70 0 43 24 0 49 0 25 22 

result:

ok The answer is correct.

Test #93:

score: 25
Accepted
time: 13ms
memory: 8608kb

input:

50
22 22 14 24 27 27 25 25 10 47 47 45 41 42 42 44 44 43 43 0 32 32 30 27 27 10 10 14 14 14 4 11 11 9 23 23 20 28 28 22 29 31 1 28 30 30 30 30 27 27

output:

No

result:

ok The answer is correct.

Test #94:

score: 25
Accepted
time: 8ms
memory: 8420kb

input:

49
45 69 69 73 73 73 69 69 34 34 31 47 51 54 54 58 58 56 56 53 42 42 10 10 4 7 7 60 61 61 63 63 64 66 66 62 34 49 49 49 46 40 38 43 43 13 13 10 10

output:

No

result:

ok The answer is correct.

Test #95:

score: 25
Accepted
time: 11ms
memory: 8456kb

input:

48
17 17 16 16 0 27 29 32 32 36 36 39 39 35 33 21 23 23 46 46 46 46 38 38 36 36 34 34 31 33 33 36 36 30 30 28 28 23 19 19 33 37 37 15 38 39 39 0

output:

No

result:

ok The answer is correct.

Test #96:

score: 25
Accepted
time: 12ms
memory: 8604kb

input:

49
18 25 25 24 30 31 31 32 32 31 27 43 43 48 48 53 53 51 39 48 48 47 47 11 11 53 28 24 24 23 21 24 24 24 24 19 38 39 39 38 38 39 42 42 41 36 39 39 37

output:

No

result:

ok The answer is correct.

Subtask #5:

score: 17
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Test #97:

score: 17
Accepted
time: 12ms
memory: 8680kb

input:

49
35 35 43 43 40 52 54 54 52 52 31 11 0 11 27 27 25 25 25 29 29 25 25 23 23 17 17 17 22 22 11 6 0 24 24 36 43 43 43 39 8 8 6 6 0 21 27 27 27

output:

Yes
7 3 15 3 6 12 14 3 24 3 1 0 0 3 12 10 1 21 0 29 0 25 0 23 0 5 5 2 13 2 1 0 0 24 0 9 12 12 10 0 8 0 6 0 0 7 10 10 

result:

ok The answer is correct.

Test #98:

score: 17
Accepted
time: 13ms
memory: 8584kb

input:

49
53 53 65 68 68 70 75 75 70 75 75 66 66 61 61 61 61 79 81 81 87 87 87 84 85 85 80 69 69 73 73 77 77 77 23 23 28 32 32 32 28 28 35 35 31 25 28 28 14

output:

Yes
21 1 17 20 1 18 23 2 18 23 1 34 1 29 1 19 2 18 20 3 22 22 2 16 17 14 1 37 1 41 1 23 23 0 15 2 8 10 10 0 8 5 12 8 5 0 21 7 

result:

ok The answer is correct.

Test #99:

score: 17
Accepted
time: 10ms
memory: 8740kb

input:

50
3 3 28 29 29 22 22 30 32 34 34 33 39 39 35 17 29 30 30 29 29 27 27 23 23 40 40 82 82 81 81 78 80 80 80 61 61 56 68 69 69 68 50 36 13 13 7 7 14 14

output:

Yes
3 0 14 15 0 22 0 6 7 9 2 7 12 8 1 3 9 10 0 29 0 27 0 23 0 40 0 82 0 81 0 17 18 18 3 13 8 5 11 12 11 5 3 0 13 0 7 0 14 

result:

ok The answer is correct.

Test #100:

score: 17
Accepted
time: 13ms
memory: 8672kb

input:

49
39 39 35 29 36 45 45 45 45 40 41 47 47 47 16 16 16 16 17 17 18 20 20 33 43 55 55 73 73 75 76 76 69 63 63 42 42 42 48 50 50 41 41 42 44 44 4 11 11

output:

Yes
10 6 3 2 7 16 2 14 9 2 7 10 10 0 16 0 16 0 17 0 9 11 0 11 16 28 0 73 0 26 27 23 0 42 21 0 42 0 24 26 0 41 0 21 23 0 2 9 

result:

ok The answer is correct.

Test #101:

score: 17
Accepted
time: 12ms
memory: 8740kb

input:

48
98 101 165 185 185 516 520 550 550 390 386 645 668 668 676 676 691 691 677 658 658 521 553 553 525 464 406 476 513 513 414 414 464 501 501 492 590 590 591 591 462 462 416 200 266 278 304 304

output:

Yes
19 20 52 72 1 134 136 166 92 1 45 172 195 46 329 46 202 188 2 301 55 87 117 89 68 54 0 238 275 0 410 1 154 177 168 0 590 0 591 0 254 208 0 50 72 78 104 

result:

ok The answer is correct.

Test #102:

score: 17
Accepted
time: 9ms
memory: 8548kb

input:

48
233 233 353 558 565 565 529 529 458 323 400 456 501 501 517 517 339 373 373 335 335 419 419 395 334 334 340 340 295 147 147 362 362 377 377 379 379 264 264 251 152 152 70 162 208 208 198 198

output:

Yes
195 1 42 113 120 63 134 63 37 9 100 128 173 1 329 151 1 335 1 297 1 203 179 1 296 1 174 129 1 109 1 324 1 339 1 341 1 120 107 0 117 35 0 81 127 0 198 

result:

ok The answer is correct.

Test #103:

score: 17
Accepted
time: 10ms
memory: 8660kb

input:

49
842 842 917 917 927 927 929 930 930 745 745 613 576 576 560 815 815 893 907 937 937 869 883 883 883 883 848 848 729 780 780 803 803 800 800 561 561 560 629 629 627 627 585 634 634 643 655 655 388

output:

Yes
813 2 888 2 898 2 451 452 2 425 293 1 287 271 1 796 1 292 299 329 0 432 446 1 877 1 481 362 0 780 0 803 0 800 0 281 280 0 629 0 613 2 161 210 65 190 202 64 

result:

ok The answer is correct.

Test #104:

score: 17
Accepted
time: 10ms
memory: 8660kb

input:

50
649 765 765 751 765 765 898 898 955 955 941 941 995 995 978 916 881 881 844 768 740 740 735 661 652 605 605 586 586 560 465 465 411 492 492 428 428 385 477 477 594 594 564 564 497 526 526 515 463 463

output:

Yes
67 132 118 17 283 16 420 16 477 16 390 23 185 168 137 21 164 127 89 21 88 83 46 43 16 127 16 75 49 15 15 0 90 171 77 120 77 0 477 0 594 0 314 247 1 267 256 0 463 

result:

ok The answer is correct.

Test #105:

score: 17
Accepted
time: 14ms
memory: 8608kb

input:

50
9757021 9757021 9279087 10211787 10211787 13159399 13159399 12592915 12592915 10743184 10743184 11075654 13281929 13281929 13197920 13365343 14008687 14515635 14515635 14452939 12634082 15780207 15780207 15663442 15196550 13950446 12389587 12774326 12774326 10499331 10499331 10443669 4834240 4834...

output:

Yes
5117443 4639509 3 10211715 3 13159327 3 12592843 3 10743108 4 3691862 4837004 4752995 3 3341320 3555768 3840590 3777894 1 2113825 3208495 3091730 2858284 2442916 2064926 1 12774290 1 5277479 5221817 1 2425420 2408785 1 2192722 1997124 0 8601617 0 11780108 1 2550068 2791953 2503590 2244076 149940...

result:

ok The answer is correct.

Test #106:

score: 17
Accepted
time: 13ms
memory: 8592kb

input:

49
3140091 4599712 4599712 4306933 3855850 3855850 3982474 3982474 12583623 15412358 15412358 15121551 15112361 14133071 14270248 14270248 14074890 14460929 14460929 9136003 12828613 12828613 12718829 11763511 10600063 14347165 15864793 15864793 16488871 16505450 16505450 12803475 12803475 12075780 ...

output:

Yes
1046697 1922897 1630118 0 3855850 0 3982450 4 2516723 3525917 3235110 3230515 2904085 0 7232784 7037426 2 9892901 4567975 5 3625264 3515480 3037821 2650005 2 7173562 8691190 3 8244415 8260994 2 6765566 6037871 1 4908734 3989462 3793756 0 12135083 0 6227083 6138571 0 10116982 0 3138115 3857026 35...

result:

ok The answer is correct.

Test #107:

score: 17
Accepted
time: 12ms
memory: 8584kb

input:

48
7860438 12158478 13753704 13771006 13771006 18767757 18927795 18968593 18968593 18560763 18649287 18649287 18224800 18224800 15243518 15243518 15175681 9471368 9471368 8990283 8990283 7894916 7633966 8802718 8802718 3876185 3876185 3822869 3822869 1212984 3582842 3582842 5846236 7012301 7012301 7...

output:

Yes
1965104 3397784 4195397 4212699 2 6255911 6335930 6376728 1 9280369 9368893 2 18224773 2 7655665 7587828 1 9471347 1 3770491 2675124 2544649 0 8802718 0 3876185 0 3216377 606492 0 3582842 0 2923118 4089183 0 3855189 3583201 0 6248929 0 2498257 3465649 0 3484142 3552847 0 7483656 

result:

ok The answer is correct.

Test #108:

score: 17
Accepted
time: 10ms
memory: 8668kb

input:

50
8562640 8562640 8791060 8953930 9955044 9955044 9558730 7820204 7504730 7504730 12381579 12439159 12439159 10733532 10733532 11677206 12477244 12477244 11307156 11046660 13033970 13033970 12141178 15057332 16705610 16782829 16782829 15921686 15014152 14466729 14582484 14582484 15253074 15253074 1...

output:

Yes
1859608 1117172 1359886 1414176 2112890 1716576 1117172 0 7504730 0 6190780 6248360 1 10733512 1 3954071 4754109 3769046 1 3682206 5122257 4229465 5 3013619 3693699 3770918 3301737 3002824 1 7233355 7349110 0 9532429 5720642 1 6447132 6224381 0 13384794 0 6978248 0 7879076 0 2599559 3265183 2577...

result:

ok The answer is correct.

Test #109:

score: 17
Accepted
time: 13ms
memory: 8404kb

input:

50
16 26 54 22 22 25 25 37 37 37 36 36 34 35 35 51 6 11 9 36 12 12 23 3 49 49 48 23 47 47 11 11 18 7 44 44 5 44 44 18 5 52 57 20 57 48 52 53 0 0

output:

No

result:

ok The answer is correct.

Test #110:

score: 17
Accepted
time: 11ms
memory: 8612kb

input:

48
10 30 28 54 46 32 14 14 16 16 25 25 58 40 40 37 55 20 63 59 61 61 53 53 53 50 50 42 42 21 21 36 24 16 36 19 60 28 30 30 22 36 35 12 31 31 26 23

output:

No

result:

ok The answer is correct.

Test #111:

score: 17
Accepted
time: 11ms
memory: 8548kb

input:

48
5092766 5227138 5227138 5238104 7971031 7971031 7903225 7197892 7197892 6605419 2479643 2479643 9424971 9554015 9554015 10267184 13617473 9605729 10316478 10316478 14221231 2075244 7396399 15160740 15505829 15505829 15796933 6369046 1709256 14327010 14327010 14114028 5147104 9312032 9312032 15981...

output:

No

result:

ok The answer is correct.

Test #112:

score: 17
Accepted
time: 12ms
memory: 8612kb

input:

49
8884683 8884683 9151162 9151162 7571437 7571437 10077005 10077005 11445047 11445047 11861700 11861700 11795572 10927878 2505781 2855773 4458081 4458081 4106198 3325132 6504551 6504551 9625607 7059089 8322561 8322561 7631437 6776593 7507105 7507105 7015845 3624049 5711859 5711859 5688065 5688065 5...

output:

No

result:

ok The answer is correct.

Test #113:

score: 17
Accepted
time: 7ms
memory: 8532kb

input:

48
16 24 24 26 26 26 32 32 30 26 26 32 34 34 29 29 26 30 30 20 5 5 27 39 39 76 39 59 67 67 66 66 77 80 80 79 79 75 65 77 77 85 85 85 85 65 0 0

output:

No

result:

ok The answer is correct.

Test #114:

score: 17
Accepted
time: 14ms
memory: 8612kb

input:

50
7744445 8225578 8900877 8900877 13083017 13083017 12156080 12945934 12945934 14277370 14331387 14331387 12887705 12887705 12977812 12977812 9845822 7720338 7720338 7506879 7506879 9795777 9795777 8982663 8492451 8864389 9088182 9088182 10244216 10444212 10809269 10809269 6897821 11852797 11852797...

output:

No

result:

ok The answer is correct.

Test #115:

score: 17
Accepted
time: 11ms
memory: 8608kb

input:

48
37 42 42 71 71 71 74 74 78 78 83 83 86 86 90 90 92 92 81 81 81 81 81 63 70 70 72 72 7 64 63 63 58 58 55 69 69 66 66 63 61 62 62 55 55 55 47 47

output:

No

result:

ok The answer is correct.

Test #116:

score: 17
Accepted
time: 12ms
memory: 8608kb

input:

48
51 13 13 8 8 35 35 33 27 34 34 34 31 31 34 53 53 52 52 52 34 34 58 62 62 60 60 57 57 56 40 43 43 17 17 17 17 17 17 14 17 17 15 25 28 28 28 28

output:

No

result:

ok The answer is correct.

Subtask #6:

score: 19
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #117:

score: 19
Accepted
time: 100ms
memory: 8744kb

input:

79
19 19 22 22 53 54 54 51 42 42 42 46 54 56 56 57 57 0 60 60 57 58 58 60 60 43 36 44 46 46 36 51 62 62 73 73 73 73 66 66 78 78 75 75 70 70 72 72 71 66 66 64 76 76 76 70 70 66 53 53 61 61 62 63 63 64 74 74 72 74 74 6 13 13 6 0 7 7 0

output:

Yes
19 0 17 1 14 15 13 10 0 34 2 14 18 20 0 57 0 0 60 0 15 16 7 25 8 6 0 16 18 12 0 18 29 1 57 1 57 1 50 1 62 1 59 1 54 1 29 28 0 34 32 0 38 38 0 37 33 0 53 0 47 2 25 26 2 18 24 22 0 71 3 0 10 3 0 0 7 0 

result:

ok The answer is correct.

Test #118:

score: 19
Accepted
time: 97ms
memory: 8652kb

input:

79
282 282 272 272 262 262 225 283 295 295 470 503 503 481 481 482 482 537 579 637 637 635 611 611 589 232 244 244 575 617 617 583 750 760 763 763 723 323 460 460 472 499 499 456 251 612 665 665 658 658 728 1048 1048 1036 1062 1081 1081 993 993 1036 1047 1047 1042 1042 936 379 386 510 510 510 452 54...

output:

Yes
49 39 39 3 69 32 4 61 73 3 156 189 3 320 3 303 5 85 99 129 127 14 204 182 11 2 107 2 197 239 5 79 123 128 131 114 27 5 60 56 64 91 56 15 3 154 184 177 2 175 210 530 2 301 314 333 2 856 2 369 380 43 425 319 42 1 77 128 128 99 3 227 224 9 0 194 0 166 

result:

ok The answer is correct.

Test #119:

score: 19
Accepted
time: 102ms
memory: 8676kb

input:

79
842 860 860 800 821 821 776 852 852 826 526 537 537 613 613 591 695 714 714 612 612 759 759 766 767 767 862 879 879 812 811 811 691 742 742 709 570 570 727 727 715 715 715 639 744 744 688 718 718 660 662 662 914 924 924 931 957 968 968 700 516 516 790 874 874 838 832 840 840 752 752 802 802 763 7...

output:

Yes
389 407 1 368 389 1 224 275 249 4 209 220 4 501 3 164 216 235 3 507 3 654 3 332 333 2 268 285 243 1 432 312 2 354 321 1 505 1 662 1 230 230 192 1 368 312 1 356 298 1 597 1 420 430 3 235 248 259 158 1 451 1 182 235 199 196 0 840 0 752 0 802 0 763 0 670 0 693 

result:

ok The answer is correct.

Test #120:

score: 19
Accepted
time: 104ms
memory: 8584kb

input:

79
329 329 281 249 404 420 420 369 369 392 392 557 557 575 575 550 518 596 617 617 622 622 434 471 471 432 348 417 455 455 455 431 431 417 389 389 657 657 757 757 801 801 781 799 832 832 813 617 417 518 518 515 800 800 803 897 897 892 892 741 741 708 708 784 784 913 913 909 893 854 854 721 721 739 7...

output:

Yes
147 99 83 0 202 218 0 369 0 392 0 553 1 213 188 172 0 298 319 0 405 217 0 243 204 4 83 106 125 125 1 155 141 127 0 189 457 1 745 1 782 2 149 155 181 162 108 68 0 518 0 256 541 1 400 494 0 892 0 741 0 708 0 780 1 309 305 297 0 854 0 721 0 739 0 752 0 754 

result:

ok The answer is correct.

Test #121:

score: 19
Accepted
time: 109ms
memory: 8608kb

input:

80
280 343 343 314 346 400 400 374 700 703 703 701 775 781 785 785 709 568 568 428 487 487 465 534 534 690 690 707 707 875 880 880 865 865 671 693 693 634 634 419 248 271 271 425 425 420 446 446 440 404 463 463 450 211 211 588 607 607 596 596 476 468 468 312 312 400 696 696 707 707 665 639 639 581 6...

output:

Yes
22 68 39 4 44 84 58 4 241 244 4 99 123 126 130 101 4 245 105 3 283 3 132 201 3 486 3 503 3 337 342 3 429 235 3 476 4 318 103 4 16 39 5 107 102 4 89 83 65 2 161 148 2 55 2 217 236 2 281 161 2 312 2 156 2 123 419 2 296 254 3 270 212 2 465 2 153 161 184 

result:

ok The answer is correct.

Test #122:

score: 19
Accepted
time: 106ms
memory: 8584kb

input:

79
4344566 4344566 4392490 4392490 3661350 8301250 8550653 8550653 8227586 8029005 8029005 8676001 8676001 8637017 7388113 7388113 7066469 6721808 6721808 6822410 7510966 7510966 7330185 7603857 7781551 7781551 6425568 6425568 8798124 8798124 8526926 8548356 8548356 7034606 6115554 6485901 6613093 6...

output:

Yes
4344566 0 2561815 1830675 0 2779360 3028763 2742528 1 8029001 0 4357491 4318507 1 3854877 3533233 0 6721808 0 3411205 4099761 0 1907931 2044767 2222461 1606392 0 2141856 3463733 3192535 0 4011794 2498044 2038518 0 2161967 2225563 2368480 0 2896214 3511217 3266310 0 5070542 5092326 0 4851886 4504...

result:

ok The answer is correct.

Test #123:

score: 19
Accepted
time: 114ms
memory: 8584kb

input:

80
4001784 5031118 5031118 4954008 4834368 5110383 6054273 6127588 6127588 4737880 5565252 5565252 5112865 5112865 3175750 3668523 3668523 3126372 6125234 6191811 6191811 5259774 4874618 5401246 5401246 4473366 4473366 3879108 6428238 6531556 6531556 6446736 5392707 5392707 8336909 8685073 9355583 9...

output:

Yes
1333928 1887150 1810040 0 971698 1063703 1535648 1608963 947576 0 5565252 0 3524990 1587875 0 2105337 1563186 0 2185988 2252565 1753258 0 2437309 2963937 0 2533812 1939554 0 2142746 2236815 2151995 0 5392659 6 1321091 1408132 1636535 1771073 1621836 904446 826996 0 3797148 3443285 0 3891822 3523...

result:

ok The answer is correct.

Test #124:

score: 19
Accepted
time: 99ms
memory: 8740kb

input:

78
7171858 7518898 7518898 6920968 6778162 6702376 6702376 6184460 6795806 7054432 7445914 7445914 4071004 4112391 4112391 4364260 4364260 3568715 3536239 2932567 2998165 2998165 4710702 4710702 4463635 5731834 5731834 5710338 5710338 5703023 3548998 3548998 2592923 2249556 2673412 2763857 2763857 2...

output:

Yes
1867562 2214602 1742117 1694515 5 6702259 4 1546090 1749872 1879185 2270667 2 2035457 2076844 2 1990500 1194955 1178717 2 1466237 1531835 3 2478838 2231771 2 5731742 2 2108958 2101643 374912 1502668 546593 374911 4 940002 1030447 793306 2 1307847 2048654 2 333966 675540 989241 1147944 1278452 38...

result:

ok The answer is correct.

Test #125:

score: 19
Accepted
time: 110ms
memory: 8548kb

input:

80
3407223 3407223 3228519 3293117 5125209 5125209 4785524 5167120 5167120 3397982 4768600 4768600 7045049 7080483 7080483 6781759 6564089 6564089 6621981 6621981 6081502 3654410 3545216 4053900 4053900 2999936 1886570 1435112 3126790 3126790 5461254 5574059 5574059 5347721 5420627 5426621 5426621 2...

output:

Yes
1792962 1614258 1 1646557 3478649 0 2392762 2774358 0 1698991 3069609 0 2392230 2427664 2260585 2 6564081 0 2676727 2136248 922702 886304 0 2119911 1065947 509264 358778 0 3126790 0 2730627 2843432 0 1551497 1587950 1593944 693230 0 3808323 3543749 0 7474145 0 6414070 0 2312010 2624355 2646249 0...

result:

ok The answer is correct.

Test #126:

score: 19
Accepted
time: 95ms
memory: 8464kb

input:

79
41 41 40 26 44 25 47 1 32 16 43 43 13 42 28 31 86 0 79 79 81 81 73 87 87 87 87 43 82 82 73 60 65 65 65 49 49 49 49 53 59 65 66 66 47 52 29 39 31 44 50 33 6 6 26 26 28 79 64 43 67 67 67 60 43 43 44 44 49 49 49 37 9 9 12 17 25 16 16

output:

No

result:

ok The answer is correct.

Test #127:

score: 19
Accepted
time: 105ms
memory: 8476kb

input:

80
12989592 12991065 12991065 12680716 16474396 16564984 16564984 16638476 16638476 15406546 15272805 14235541 15900663 14062541 11807081 15261721 15473740 15473740 7211952 14656228 15230209 15230209 14658676 14429600 14987839 15293734 3279039 15857991 15491876 15752775 15758624 2258554 13498858 676...

output:

No

result:

ok The answer is correct.

Test #128:

score: 19
Accepted
time: 90ms
memory: 8480kb

input:

78
8989436 8989436 9257286 9571614 9571614 7924809 9127152 7724396 6510796 8717614 4919875 5952458 6133678 6505828 6505828 6403694 9836248 6526230 9546166 9451195 9451195 9360756 8875608 7454100 6619118 9790658 9016513 9744135 9782589 9782589 7524358 8565780 8565780 8725953 8897218 8897218 8657751 7...

output:

No

result:

ok The answer is correct.

Test #129:

score: 19
Accepted
time: 95ms
memory: 8480kb

input:

79
14 18 18 6 28 28 28 24 16 16 38 39 39 38 20 16 24 24 24 24 24 24 26 26 21 21 20 20 20 18 19 19 10 59 59 58 54 56 56 43 52 34 34 16 16 14 10 24 24 23 13 18 19 19 9 9 41 53 53 57 58 58 36 48 48 54 54 54 52 17 18 18 9 21 21 31 33 33 29

output:

No

result:

ok The answer is correct.

Test #130:

score: 19
Accepted
time: 91ms
memory: 8476kb

input:

78
1176077 1812394 1812394 2688716 2688716 2585370 1359834 2380971 2380971 2379244 1031088 3727030 7971496 7971496 7614594 8317387 8317387 7832498 7984236 7984236 8089704 9220509 9220509 9209420 8459214 7787160 4433778 4433778 4078414 7618043 10009049 10009049 10015442 10015442 9887462 8302458 74290...

output:

No

result:

ok The answer is correct.

Test #131:

score: 19
Accepted
time: 104ms
memory: 8616kb

input:

79
3320325 3320325 3214910 7797215 4672431 4672431 4248536 6437810 6437810 5876824 5876824 6818791 6818791 6733856 7194230 7194230 5902019 5902019 5717788 7237502 7237502 7007635 7344622 7344622 8438997 8487937 8487937 8243423 5186689 7011248 7011248 7137048 7137048 6810662 6810662 6551287 5136245 6...

output:

No

result:

ok The answer is correct.

Test #132:

score: 19
Accepted
time: 98ms
memory: 8604kb

input:

78
2473925 4383788 4383788 3909900 4297454 4307319 4307319 2318855 3560720 3560720 3255273 3218197 7206973 7206973 7724580 7724580 8481860 8614365 8614365 8040007 8040007 5701146 8528813 8528813 8500703 8500703 9574940 9732660 10542957 10542957 10377410 10381110 10381110 9324218 9324218 5227694 5227...

output:

Yes
357086 1548960 1075072 357087 1268849 1278714 331241 4 1396656 1091209 1072671 4 7206781 4 7724388 4 4240836 4373341 4 5189340 2850479 4 8528621 4 8500503 6 3191584 3270444 4080741 4 5188611 5192311 4 9324026 4 5227502 4 1892206 2198071 2454760 2264902 1 8327849 1 6372554 1 3617775 5501695 1 439...

result:

ok The answer is correct.

Test #133:

score: 19
Accepted
time: 98ms
memory: 8552kb

input:

78
7017053 7201667 7201667 5861085 4841157 6544604 7432894 7432894 7233462 6955746 6955746 7019589 7019589 6899007 7189181 7189181 6478031 6700193 8868742 8868742 8867831 8830275 8770884 8113988 6673663 6673663 5735854 6588043 6588043 6309470 4806016 4806016 6086359 6086359 6115792 6115792 6071123 6...

output:

Yes
2531679 2716293 1953695 0 806859 1374674 1918535 1719103 806860 2921444 1 3570082 3449500 0 7189181 0 925433 962460 1448929 1448018 1429240 1409443 1245219 0 3805736 2867927 0 3433308 3154735 0 4806016 0 6086359 0 6115792 0 6071094 2 3413665 3207815 2 2279865 1965598 1426136 2 1272864 1784936 18...

result:

ok The answer is correct.

Test #134:

score: 19
Accepted
time: 91ms
memory: 8592kb

input:

78
66 66 84 87 87 88 100 100 102 103 103 88 96 96 96 96 87 97 100 100 97 91 115 115 121 121 120 120 119 112 112 101 92 70 72 72 74 74 74 66 66 64 64 59 59 60 65 65 64 62 62 17 17 16 6 0 22 22 21 21 6 8 11 11 30 30 28 33 33 31 44 44 43 45 45 30 30 0

output:

Yes
34 1 25 28 2 27 39 1 25 26 18 3 56 1 37 28 1 18 21 18 2 18 42 3 41 6 20 19 8 21 10 7 4 0 72 0 37 37 0 66 0 64 0 59 0 20 23 22 0 62 0 8 7 2 0 0 22 0 18 3 0 4 7 0 16 14 0 16 14 1 21 20 0 45 0 30 0 

result:

ok The answer is correct.

Test #135:

score: 19
Accepted
time: 106ms
memory: 8740kb

input:

80
20 20 58 61 63 64 64 61 61 60 58 58 49 49 44 44 45 45 30 35 35 24 41 41 40 40 28 29 39 39 45 45 45 19 19 8 8 38 38 38 46 46 46 47 47 32 37 37 41 41 38 32 41 43 43 43 46 46 20 26 38 39 39 30 32 32 46 46 45 48 52 52 52 32 32 27 20 21 21 18

output:

Yes
15 1 14 15 16 17 0 31 30 0 58 0 49 0 44 0 30 15 0 23 12 0 41 0 26 14 0 13 23 1 21 21 0 19 0 8 0 19 19 0 23 23 0 31 16 0 37 0 22 19 0 8 11 12 12 0 46 0 5 7 13 14 0 15 17 0 46 0 9 10 12 12 3 11 6 0 7 8 6 

result:

ok The answer is correct.

Test #136:

score: 19
Accepted
time: 91ms
memory: 8664kb

input:

78
0 2 2 17 31 31 31 23 23 19 19 22 23 23 18 18 10 10 8 26 26 26 26 25 34 34 33 18 18 33 33 35 38 38 31 35 35 36 36 36 32 32 28 34 46 46 46 51 51 48 52 52 48 48 53 58 58 57 59 59 59 59 50 37 37 45 45 50 54 54 52 47 45 47 47 36 36 36

output:

Yes
0 2 0 5 12 12 1 19 0 19 0 11 12 0 18 0 6 4 0 26 0 12 11 1 16 15 0 18 0 25 2 11 14 9 0 35 0 18 18 0 32 0 7 9 15 15 0 27 24 0 52 0 44 1 17 20 19 0 59 0 34 25 0 37 0 27 2 7 10 8 6 5 6 8 4 0 36 

result:

ok The answer is correct.

Extra Test:

score: 0
Extra Test Passed