QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#367345 | #7977. 彩虹航线 | zaozao_zmx | 14 | 369ms | 61560kb | C++14 | 3.6kb | 2024-03-25 21:20:34 | 2024-03-25 21:20:36 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 1
Accepted
Test #1:
score: 1
Accepted
time: 11ms
memory: 21808kb
input:
150 150 1 144 5 1 141 54 1 26 120 1 148 68 1 136 62 1 114 1 1 33 136 1 85 100 1 97 124 1 84 66 1 107 81 1 82 135 1 112 44 1 20 89 1 50 32 1 52 94 1 89 88 1 3 57 1 130 23 1 140 150 1 96 37 1 122 38 1 41 63 1 99 85 1 13 95 1 142 47 1 95 4 1 69 17 1 27 119 1 73 93 1 108 43 1 54 18 1 37 76 1 67 114 1 40...
output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
result:
ok construction is correct.
Test #2:
score: 0
Accepted
time: 0ms
memory: 21940kb
input:
150 150 1 117 132 96 147 4 114 67 57 60 62 94 20 48 117 68 31 144 27 19 44 121 3 51 92 83 52 67 26 125 56 8 124 75 125 31 52 79 8 21 132 14 136 77 111 45 134 136 145 129 73 85 122 92 143 59 76 36 60 127 115 102 126 133 10 106 32 93 35 106 75 47 102 45 140 41 44 108 146 25 98 106 140 116 76 143 3 87 ...
output:
96 114 60 20 68 27 121 92 67 56 75 52 21 136 45 145 85 143 36 115 133 32 106 102 41 146 106 76 87 90 116 15 147 51 35 85 15 83 43 105 89 12 89 140 103 114 135 78 93 80 87 93 19 7 125 132 96 96 99 48 1 63 3 6 146 116 48 9 126 6 106 64 74 84 16 23 119 51 7 83 96 56 94 97 27 15 51 106 95 32 70 103 75 8...
result:
ok construction is correct.
Test #3:
score: 0
Accepted
time: 9ms
memory: 21988kb
input:
150 10 1 35 145 1 145 88 2 130 14 1 111 142 1 138 99 1 76 73 1 101 79 1 147 137 2 65 64 1 108 8 2
output:
1 2 1 1 1 1 1 2 1 2
result:
ok construction is correct.
Subtask #2:
score: 2
Accepted
Test #4:
score: 2
Accepted
time: 68ms
memory: 31568kb
input:
75 5625 150 11 6 680849 150419 731361 419631 223710 806977 837589 529911 568337 456216 515190 302854 672904 388629 548276 803173 770491 610684 550790 786097 253610 446581 705772 610053 637171 567249 365794 571846 431219 213414 466432 53255 748825 765338 761154 556712 159152 463622 706471 49434 59624...
output:
680849 124290 15612 557737 158942 192385 235793 769152 494833 786656 706961 179562 623504 384637 319911 538589 646445 182654 133375 167919 839028 430986 258463 733043 257852 48954 707925 759615 180153 738866 820974 796839 189152 345287 456191 534808 784528 237066 609402 13774 376476 28448 500736 422...
result:
ok construction is correct.
Test #5:
score: 0
Accepted
time: 49ms
memory: 31600kb
input:
75 5625 150 55 59 136 110 80 141 34 72 121 2 116 38 39 16 56 20 147 81 58 64 24 83 73 30 127 97 128 35 77 96 54 21 106 57 32 115 133 84 50 103 94 45 68 53 31 8 55 44 89 41 36 150 3 28 9 98 66 49 119 101 114 112 82 11 22 124 134 107 105 90 88 145 87 135 26 79 37 122 10 15 104 27 18 120 7 13 46 139 40...
output:
136 70 130 75 32 38 29 13 120 56 97 142 123 49 21 26 86 54 23 113 5 99 89 138 22 110 132 18 18 52 54 72 116 90 58 18 96 47 88 108 104 18 17 26 8 9 56 32 91 136 28 149 82 131 44 75 15 38 127 44 48 130 68 90 138 138 149 93 119 114 93 131 64 140 10 144 80 16 71 12 57 90 54 6 130 118 76 112 117 75 110 1...
result:
ok construction is correct.
Test #6:
score: 0
Accepted
time: 48ms
memory: 28288kb
input:
75 3750 150 1 29 15545 372923 77579 125076 509966 151564 332286 414939 296369 227609 9580 52174 99587 224186 2679 309545 38096 115252 281893 44718 259941 187595 500086 197842 267668 399469 254416 114691 268905 112134 257669 210411 135373 423915 537194 17707 204354 99757 234452 307155 82087 64190 309...
output:
15545 258915 129165 67229 472693 552406 146697 431843 406863 35443 208315 69147 134764 359917 406564 442868 153849 561136 548027 144054 467222 294395 349382 107391 408985 66032 380560 26261 109427 501390 539633 14950 439552 107122 536161 57467 29094 387263 16280 49644 358553 243796 156602 320287 976...
result:
ok construction is correct.
Test #7:
score: 0
Accepted
time: 37ms
memory: 28384kb
input:
75 3750 150 43 71 86 127 132 6 139 123 83 37 85 103 52 102 4 148 111 34 110 66 42 130 150 149 53 45 137 129 2 5 87 79 146 47 9 98 96 54 17 126 81 115 7 105 117 119 101 144 74 23 44 19 84 97 50 13 22 94 78 63 134 40 142 76 109 95 12 138 112 72 136 24 77 31 32 118 124 135 68 104 16 1 93 106 128 51 20 ...
output:
86 137 88 73 47 118 34 94 117 47 74 114 91 148 38 70 34 89 1 71 57 30 101 71 53 58 134 119 95 94 49 122 102 6 109 139 126 46 120 19 148 29 72 65 20 8 46 15 15 130 76 71 105 148 51 125 120 115 46 31 107 23 27 53 63 96 102 29 110 54 72 56 81 100 136 20 32 95 110 11 102 12 107 6 59 98 21 108 50 65 7 14...
result:
ok construction is correct.
Subtask #3:
score: 11
Accepted
Test #8:
score: 11
Accepted
time: 9ms
memory: 22108kb
input:
150 300 2 81 6 1 2 64 88 1 2 5 76 2 1 22 9 2 1 32 142 1 2 97 32 2 1 18 87 1 2 146 100 2 1 56 139 1 2 61 109 2 1 124 105 2 1 126 145 1 2 16 19 1 2 16 138 2 1 131 111 2 1 145 111 2 1 59 59 2 1 89 43 1 2 2 38 1 2 63 149 2 1 46 48 1 2 140 131 1 2 86 10 2 1 116 40 1 2 123 38 2 1 75 109 2 1 131 142 1 2 9 ...
output:
2 2 1 2 2 1 2 2 1 1 1 1 1 2 2 1 1 2 2 2 1 1 1 2 1 2 1 1 1 1 2 2 2 2 2 2 1 1 2 2 1 2 1 2 1 2 1 1 2 2 2 1 1 1 1 1 2 1 2 2 2 1 2 1 1 2 1 2 2 1 1 1 1 1 2 2 1 2 1 2 1 2 2 1 2 1 1 1 2 1 1 2 1 2 2 1 1 1 1 1 1 1 2 1 2 1 2 1 2 2 2 2 2 1 2 1 1 2 1 2 1 1 2 2 1 2 1 2 1 1 2 2 2 2 2 2 1 1 2 1 2 2 2 2 2 1 2 1 1 2 ...
result:
ok construction is correct.
Test #9:
score: 0
Accepted
time: 4ms
memory: 22320kb
input:
150 300 2 60 122 3 1 114 17 2 1 21 19 3 1 134 75 3 1 64 81 2 1 52 33 1 3 45 27 1 2 148 91 2 1 110 100 1 2 100 74 2 3 53 130 3 2 59 19 3 1 149 108 3 1 19 92 1 3 85 66 3 2 80 89 3 2 16 4 2 3 39 90 2 3 53 102 3 1 20 21 3 1 21 112 1 3 76 98 1 2 7 130 3 1 140 129 2 3 139 100 3 1 127 77 1 3 136 113 3 2 54...
output:
3 1 3 3 2 1 2 2 1 2 2 1 3 1 2 3 2 2 3 1 1 2 1 2 3 1 3 1 2 3 2 3 2 2 2 1 2 1 1 2 3 1 3 3 3 1 2 1 3 3 1 2 1 1 1 3 1 3 2 1 3 2 1 3 1 3 3 2 1 2 2 3 2 2 2 1 1 3 1 2 3 1 1 3 2 1 3 2 1 1 1 1 1 1 3 3 3 1 1 3 3 2 2 1 2 1 2 2 3 2 2 3 2 3 2 1 2 2 3 2 3 2 3 1 2 2 3 3 1 2 1 1 3 1 2 3 3 3 3 2 3 1 1 1 1 1 2 1 1 1 ...
result:
ok construction is correct.
Test #10:
score: 0
Accepted
time: 9ms
memory: 23764kb
input:
150 300 2 27 132 4 3 36 120 3 4 100 77 2 3 139 62 2 1 106 59 2 3 33 69 2 3 111 14 4 2 90 140 1 2 38 63 2 4 76 49 1 4 49 26 4 2 50 100 2 4 116 7 3 4 143 127 3 4 43 105 3 1 65 72 3 4 94 111 1 2 70 72 1 2 49 107 3 2 92 27 4 2 42 119 4 1 42 46 2 1 88 143 4 3 79 99 2 3 3 84 4 1 85 13 4 2 38 67 1 3 43 31 ...
output:
4 3 2 2 2 2 4 1 4 1 4 2 3 3 3 3 1 1 3 4 4 2 4 2 4 4 1 2 4 1 3 2 1 2 3 4 3 3 1 4 1 2 1 1 1 4 1 2 1 1 1 2 1 2 3 3 4 2 3 1 2 2 1 2 1 3 1 2 4 4 4 2 1 1 4 2 1 2 1 3 4 3 2 4 1 1 4 2 3 4 2 3 3 4 2 3 1 3 4 2 4 3 4 2 3 2 1 2 4 2 3 1 4 4 1 4 4 2 3 4 1 2 1 3 2 3 2 3 3 4 4 2 2 4 3 2 1 3 2 3 1 4 4 1 3 1 2 2 1 2 ...
result:
ok construction is correct.
Test #11:
score: 0
Accepted
time: 14ms
memory: 23628kb
input:
150 300 2 87 61 2 16 114 49 13 10 25 34 13 18 19 62 2 6 44 60 10 14 132 71 20 18 40 51 13 17 67 25 13 18 125 40 19 14 82 53 19 8 66 118 19 3 38 136 6 12 150 135 14 7 75 53 10 1 54 33 4 8 69 19 8 5 129 72 13 17 149 74 14 10 136 117 1 18 13 80 4 18 107 11 13 18 41 14 3 10 15 90 3 11 104 43 6 18 52 80 ...
output:
2 13 13 2 10 20 13 13 19 19 19 6 14 10 4 8 13 14 1 4 13 3 3 6 10 12 14 2 7 7 16 1 19 6 10 8 9 12 7 5 14 8 12 3 19 5 2 17 13 16 5 12 18 4 4 9 20 17 11 11 16 4 8 12 19 20 20 15 16 2 8 8 6 10 16 16 6 2 17 9 6 4 11 16 18 12 2 18 16 4 7 20 16 11 11 7 17 11 5 9 20 4 3 12 11 7 14 17 2 19 12 1 15 2 19 13 10...
result:
ok construction is correct.
Test #12:
score: 0
Accepted
time: 4ms
memory: 22160kb
input:
150 300 2 46 114 441 328 119 80 69 102 9 78 444 336 8 47 230 59 60 140 548 248 147 131 36 399 68 86 447 183 97 13 461 318 31 93 536 570 35 41 237 149 53 77 156 95 123 119 562 202 94 26 519 23 129 128 438 80 74 139 454 108 92 68 559 399 140 61 11 178 106 137 15 575 140 15 22 289 65 50 263 546 9 45 31...
output:
441 69 444 230 548 36 447 461 536 237 156 562 519 438 454 559 11 15 22 263 31 195 67 389 27 283 415 253 30 535 552 302 507 41 549 414 291 324 239 404 185 284 118 295 201 463 12 264 277 502 64 583 167 154 150 197 46 368 467 594 548 468 467 172 299 551 260 203 301 598 113 270 101 199 429 242 172 594 2...
result:
ok construction is correct.
Test #13:
score: 0
Accepted
time: 0ms
memory: 22172kb
input:
150 150 2 138 25 1 2 71 40 2 1 146 116 1 2 110 122 2 1 59 36 1 2 147 145 2 1 80 88 2 1 38 13 1 2 137 6 1 2 57 84 2 1 25 84 2 1 125 75 2 1 73 128 1 2 94 69 2 1 27 18 1 2 89 119 1 2 8 131 1 2 62 3 1 2 32 67 2 1 77 77 2 1 78 6 1 2 142 70 2 1 61 16 2 1 21 129 2 1 2 126 1 2 136 128 1 2 141 35 2 1 65 78 1...
output:
2 2 1 1 1 2 2 1 1 2 1 2 1 2 1 1 2 1 2 2 2 2 2 2 1 2 2 2 2 1 2 2 1 2 1 1 1 1 2 1 2 2 1 2 2 1 2 2 1 1 2 1 1 1 2 2 2 1 1 1 2 2 1 1 2 1 2 2 2 1 1 1 2 1 2 1 2 1 1 1 1 1 2 2 1 1 1 2 1 1 2 2 2 2 1 2 1 2 1 1 1 2 1 1 2 2 1 1 1 2 1 1 2 1 1 2 2 2 1 1 1 1 2 1 2 1 2 2 2 2 2 1 1 1 2 1 1 2 2 2 1 1 1 2 2 1 1 2 2 1
result:
ok construction is correct.
Test #14:
score: 0
Accepted
time: 6ms
memory: 21932kb
input:
150 150 2 73 97 3 2 50 90 3 1 106 133 1 3 2 65 1 2 47 141 3 2 75 24 1 2 93 85 2 1 14 12 3 2 53 15 2 1 136 120 1 3 68 49 1 2 13 127 2 3 26 87 1 3 78 79 1 3 130 97 3 1 3 8 3 1 55 3 3 1 122 27 3 1 39 51 2 3 72 64 2 3 85 98 2 1 148 18 2 1 90 110 3 1 21 89 2 1 116 75 1 2 52 99 1 2 41 29 1 3 60 130 2 1 10...
output:
3 3 1 1 3 2 2 3 1 1 1 2 1 1 1 3 3 3 2 2 1 2 3 2 1 1 1 2 2 3 3 1 3 3 2 2 2 1 3 1 1 3 3 1 2 2 3 3 2 1 1 3 2 3 3 3 3 3 3 1 3 1 1 1 3 3 1 3 3 3 2 2 1 1 2 3 2 2 2 2 2 2 1 3 1 2 3 2 2 3 3 2 2 3 1 1 1 1 2 3 3 1 3 2 1 2 2 3 3 2 1 1 1 1 1 3 3 2 3 3 1 3 2 3 3 2 2 3 3 3 2 3 2 1 2 2 3 2 2 1 3 2 1 2 2 1 1 2 1 3
result:
ok construction is correct.
Test #15:
score: 0
Accepted
time: 14ms
memory: 23960kb
input:
150 150 2 134 2 3 4 139 116 2 4 100 69 1 4 45 66 4 2 24 64 2 3 93 43 4 2 137 144 1 3 40 105 1 4 134 108 2 4 98 40 3 1 20 144 3 1 11 51 3 2 101 89 1 3 46 53 1 2 39 23 1 3 109 40 2 3 30 7 2 3 142 6 1 3 38 112 4 2 108 28 1 2 111 32 1 4 28 49 4 2 89 14 2 4 65 143 4 3 43 8 1 2 92 56 4 2 106 53 2 4 117 14...
output:
3 2 1 4 2 2 1 1 2 3 3 3 1 1 1 2 2 1 4 1 1 4 2 4 1 4 2 2 2 4 4 3 1 4 4 3 4 2 2 3 1 3 4 4 3 4 1 2 4 1 3 4 4 2 2 2 2 4 2 2 1 3 3 1 3 1 1 1 3 3 3 1 1 2 1 3 1 2 2 2 2 2 2 3 2 3 3 1 3 1 3 3 4 4 3 4 1 4 4 1 1 3 4 2 1 2 4 3 1 2 3 2 4 1 1 3 1 3 2 4 3 1 1 2 4 4 4 1 2 3 4 2 3 3 1 3 2 4 2 2 3 2 3 1 4 2 1 2 2 4
result:
ok construction is correct.
Test #16:
score: 0
Accepted
time: 9ms
memory: 21824kb
input:
150 150 2 42 118 2 5 44 13 7 14 95 7 20 11 92 142 11 19 96 150 10 18 11 52 6 18 66 48 1 13 17 5 13 16 91 22 8 20 19 71 15 6 73 61 10 5 50 63 3 14 101 143 20 5 52 114 12 17 111 60 19 9 20 4 6 7 54 63 16 18 31 31 9 4 33 148 10 8 37 32 17 19 60 57 20 8 31 136 8 1 65 87 19 4 138 72 6 17 71 112 8 20 83 3...
output:
2 7 20 19 10 6 1 13 8 15 10 3 20 12 19 6 16 9 10 17 20 8 19 6 8 11 2 18 2 8 13 10 2 19 8 11 1 20 9 10 18 20 15 3 9 4 8 13 14 17 13 9 19 16 1 19 10 8 5 16 18 9 8 18 20 17 20 7 15 16 5 8 1 3 5 7 10 5 14 7 8 15 9 15 6 17 5 16 5 7 20 20 1 17 12 11 16 5 20 14 2 13 20 18 6 7 17 10 9 3 15 16 15 19 18 20 10...
result:
ok construction is correct.
Test #17:
score: 0
Accepted
time: 6ms
memory: 22376kb
input:
150 150 2 137 126 61 39 96 140 224 95 145 72 296 11 23 92 241 36 98 129 102 20 90 41 85 39 41 113 188 148 93 131 282 107 10 76 23 225 8 16 16 124 115 135 270 30 20 129 88 48 110 125 94 272 101 98 56 238 106 116 125 110 73 138 234 193 22 127 245 8 58 29 8 140 86 36 212 170 40 97 288 204 30 50 109 75 ...
output:
61 224 296 241 102 85 188 282 23 16 270 88 94 56 125 234 245 8 212 288 109 280 286 221 280 129 92 76 94 197 87 43 88 43 79 145 215 197 232 98 294 12 85 9 227 243 205 188 127 114 296 215 25 242 55 104 14 161 278 209 266 151 99 132 174 222 259 204 198 145 2 245 133 149 26 220 138 112 47 128 101 93 191...
result:
ok construction is correct.
Subtask #4:
score: 0
Wrong Answer
Test #18:
score: 0
Wrong Answer
time: 303ms
memory: 61048kb
input:
149 22201 150 106 24 20 90 56 109 85 33 76 25 97 77 134 75 15 24 88 16 93 126 43 94 116 120 28 130 21 140 70 111 71 32 29 41 132 39 84 62 27 92 55 117 129 125 127 104 74 114 14 145 36 121 22 69 68 133 59 65 58 148 131 40 54 118 110 3 61 105 4 112 142 122 73 37 1 113 45 87 57 89 103 98 100 63 146 106...
output:
88 89 71 115 47 116 60 126 77 50 141 142 83 92 50 94 144 51 50 55 137 17 21 51 125 122 97 100 127 78 105 51 10 42 41 55 115 26 86 34 1 97 1 115 25 76 52 8 95 64 42 37 75 59 131 115 85 139 133 20 98 131 5 68 9 60 38 40 59 133 126 122 18 93 15 126 109 44 95 93 88 119 103 23 25 24 66 49 65 118 40 79 11...
result:
wrong answer not a proper coloring.
Subtask #5:
score: 0
Wrong Answer
Test #23:
score: 0
Wrong Answer
time: 369ms
memory: 61560kb
input:
150 22500 150 117 116 91 74 113 95 110 26 141 115 38 66 71 138 17 83 112 99 149 18 3 44 15 28 53 114 96 37 7 145 20 109 80 19 117 16 63 27 42 137 135 132 14 39 1 148 147 30 68 126 12 32 57 67 119 139 124 46 133 24 36 51 69 88 131 60 86 140 102 29 100 150 35 123 84 85 90 105 75 45 77 143 130 127 98 7...
output:
115 60 1 106 22 109 37 56 6 33 3 73 129 101 73 140 41 92 117 149 150 67 9 5 65 31 83 22 107 6 125 45 31 129 128 148 41 33 28 87 130 1 109 64 36 71 139 93 22 49 54 109 109 56 132 99 51 1 72 121 88 125 128 126 116 36 30 23 68 137 27 86 81 98 39 73 149 125 10 32 48 78 100 128 113 64 8 92 17 112 124 119...
result:
wrong answer not a proper coloring.
Subtask #6:
score: 0
Wrong Answer
Test #29:
score: 28
Accepted
time: 13ms
memory: 22608kb
input:
150 450 3 57 22 2 1 3 142 57 1 3 2 138 113 3 1 2 13 77 2 3 1 43 112 1 2 3 82 99 2 1 3 66 65 3 1 2 3 31 2 1 3 24 146 3 2 1 127 18 2 3 1 125 37 1 2 3 13 137 1 2 3 105 127 1 3 2 54 20 1 2 3 48 15 3 1 2 23 71 2 3 1 30 28 1 2 3 125 146 1 3 2 68 120 2 1 3 38 92 2 1 3 101 100 1 3 2 81 28 1 3 2 70 7 1 2 3 1...
output:
1 1 2 1 3 3 2 1 1 1 1 3 1 2 3 1 1 2 3 2 3 3 2 3 2 2 3 1 2 3 3 2 2 3 2 3 2 3 1 2 2 2 2 1 1 2 1 3 3 1 1 3 1 2 2 1 2 3 2 1 1 3 3 1 3 1 3 1 2 3 1 1 3 2 1 1 1 2 2 1 2 1 1 2 1 3 2 1 2 1 1 1 3 2 3 3 3 1 3 3 3 3 2 2 2 2 3 2 1 3 3 3 2 3 1 1 2 1 1 1 3 3 3 1 3 2 1 3 1 3 3 3 3 1 1 3 2 2 2 1 1 3 3 3 3 1 2 3 3 1 ...
result:
ok construction is correct.
Test #30:
score: 0
Accepted
time: 7ms
memory: 22692kb
input:
150 450 3 148 73 905 1007 1204 72 13 614 952 114 72 3 1026 931 764 33 21 1143 204 536 19 112 694 1261 734 104 68 1057 72 1249 83 66 311 147 656 141 5 1349 1317 700 12 113 331 375 1165 49 7 1114 1149 1224 79 41 531 46 712 128 20 630 1175 399 35 74 421 1148 608 57 124 840 108 1238 63 22 922 403 203 35...
output:
905 614 1026 1143 694 1057 311 1349 331 1114 531 630 421 840 922 5 223 379 170 676 1154 203 1210 622 818 1258 1321 798 64 1276 696 530 767 384 52 708 1201 1088 628 1286 1067 1012 648 567 604 1184 15 1217 911 1218 894 998 535 950 308 122 1209 499 664 1145 250 666 41 1067 1342 986 732 917 1075 290 869...
result:
ok construction is correct.
Test #31:
score: 0
Accepted
time: 10ms
memory: 22568kb
input:
150 450 3 111 66 3 4 1 62 51 3 2 4 117 58 3 4 1 54 105 1 3 4 40 108 3 1 4 104 112 2 4 1 131 73 4 3 1 109 30 1 4 3 36 130 3 4 2 40 70 2 3 1 24 112 3 1 4 44 119 4 1 2 39 91 1 4 3 28 118 1 2 3 8 117 2 4 1 110 109 3 1 4 99 20 4 1 2 131 49 4 1 2 130 114 1 4 3 133 57 3 1 2 41 125 1 3 4 21 65 1 2 3 144 143...
output:
3 3 3 3 3 2 4 1 3 2 3 1 1 1 2 3 4 1 1 3 1 1 2 4 3 4 4 1 4 3 4 1 2 3 2 2 4 2 2 2 3 2 1 1 2 3 2 4 1 4 4 3 1 2 3 2 3 2 3 2 4 2 1 4 3 4 4 3 3 2 3 2 4 1 1 3 4 1 4 1 1 3 2 1 4 2 3 1 4 2 3 2 4 1 3 4 1 4 3 2 3 3 4 3 1 1 2 1 2 2 4 1 2 1 3 2 4 3 4 3 1 1 1 1 3 1 2 1 1 1 4 2 2 3 4 3 3 4 3 3 2 2 3 4 1 3 1 1 2 3 ...
result:
ok construction is correct.
Test #32:
score: 0
Accepted
time: 0ms
memory: 22596kb
input:
150 450 3 79 108 4 7 3 85 72 8 3 7 105 47 5 2 8 56 47 3 4 5 66 90 7 5 3 109 68 8 1 7 84 73 5 2 3 14 7 8 5 6 129 111 5 1 2 103 45 1 6 7 102 96 7 3 2 30 80 6 1 8 22 80 5 1 6 55 21 6 3 5 4 104 6 3 8 27 130 2 1 3 64 109 7 2 4 20 110 7 8 6 5 50 5 8 2 116 8 7 8 6 5 74 3 1 6 86 124 2 4 7 129 57 2 7 8 2 9 2...
output:
4 8 5 3 7 8 5 8 5 1 7 6 5 6 6 2 7 7 5 7 3 2 2 2 7 2 2 8 8 5 4 6 6 4 8 3 5 2 4 5 3 2 3 2 5 2 5 1 4 5 7 7 3 4 3 1 7 5 3 6 2 4 8 1 6 3 1 8 6 1 4 7 5 6 2 7 2 2 1 5 3 5 6 4 2 4 1 3 1 4 5 3 1 2 5 1 6 5 2 4 6 5 2 8 2 1 5 8 8 2 8 6 2 1 5 1 4 2 7 3 2 2 1 3 5 2 8 1 3 8 8 7 7 7 1 7 2 3 4 4 8 3 2 6 1 3 7 7 1 5 ...
result:
ok construction is correct.
Test #33:
score: -28
Wrong Answer
time: 7ms
memory: 22968kb
input:
150 350 3 69 53 1 2 3 73 148 3 1 2 29 58 3 1 2 19 84 3 1 2 8 134 3 1 2 46 147 2 3 1 115 114 2 3 1 9 13 1 2 3 27 96 1 3 2 38 75 1 3 2 127 43 2 3 1 18 100 3 1 2 134 36 3 1 2 37 14 1 3 2 33 131 2 3 1 114 17 2 1 3 86 57 2 1 3 136 12 2 3 1 7 121 3 1 2 95 51 2 1 3 84 40 1 3 2 73 47 1 3 2 116 46 2 3 1 133 ...
output:
1 2 2 2 3 2 2 1 1 1 2 3 1 1 2 2 2 2 3 1 1 3 2 2 2 1 1 1 3 3 2 3 1 1 2 1 2 2 1 1 1 1 1 3 3 3 3 3 2 1 3 1 1 2 3 3 3 1 2 3 3 2 2 3 2 1 1 1 2 3 1 2 3 3 2 1 3 1 3 3 2 3 2 1 1 1 3 2 3 3 1 2 2 1 3 2 2 2 1 3 3 2 2 3 2 1 2 1 1 1 1 1 3 3 1 1 1 2 3 1 1 2 3 1 1 2 1 1 2 3 3 2 3 2 1 3 3 2 2 1 1 2 1 2 2 3 2 3 2 1 ...
result:
wrong answer not a proper coloring.