QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#805220 | #9799. Magical Palette | ucup-team3549# | AC ✓ | 44ms | 12316kb | C++14 | 1.2kb | 2024-12-08 14:39:06 | 2024-12-08 14:39:06 |
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
Test #1:
score: 100
Accepted
time: 0ms
memory: 8020kb
input:
2 2 3 2 2
output:
Yes 2 1 1 3 5 No
result:
ok 2 cases (2 test cases)
Test #2:
score: 0
Accepted
time: 44ms
memory: 10108kb
input:
1 1 1000000
output:
Yes 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...
result:
ok 1 cases (1 test case)
Test #3:
score: 0
Accepted
time: 44ms
memory: 10068kb
input:
1 1000000 1
output:
Yes 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 10...
result:
ok 1 cases (1 test case)
Test #4:
score: 0
Accepted
time: 32ms
memory: 9804kb
input:
1 2 500000
output:
No
result:
ok 1 cases (1 test case)
Test #5:
score: 0
Accepted
time: 23ms
memory: 10116kb
input:
1 2 499999
output:
Yes 2 1 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 37 39 41 43 45 47 49 51 53 55 57 59 61 63 65 67 69 71 73 75 77 79 81 83 85 87 89 91 93 95 97 99 101 103 105 107 109 111 113 115 117 119 121 123 125 127 129 131 133 135 137 139 141 143 145 147 149 151 153 155 157 159 161 163 165 167 169 171 17...
result:
ok 1 cases (1 test case)
Test #6:
score: 0
Accepted
time: 32ms
memory: 9892kb
input:
1 500000 2
output:
No
result:
ok 1 cases (1 test case)
Test #7:
score: 0
Accepted
time: 22ms
memory: 11612kb
input:
1 499999 2
output:
Yes 499999 1 500001 3 500003 5 500005 7 500007 9 500009 11 500011 13 500013 15 500015 17 500017 19 500019 21 500021 23 500023 25 500025 27 500027 29 500029 31 500031 33 500033 35 500035 37 500037 39 500039 41 500041 43 500043 45 500045 47 500047 49 500049 51 500051 53 500053 55 500055 57 500057 59 5...
result:
ok 1 cases (1 test case)
Test #8:
score: 0
Accepted
time: 19ms
memory: 10076kb
input:
1 3 333333
output:
No
result:
ok 1 cases (1 test case)
Test #9:
score: 0
Accepted
time: 19ms
memory: 8064kb
input:
1 3 333332
output:
Yes 3 1 5 1 4 7 10 13 16 19 22 25 28 31 34 37 40 43 46 49 52 55 58 61 64 67 70 73 76 79 82 85 88 91 94 97 100 103 106 109 112 115 118 121 124 127 130 133 136 139 142 145 148 151 154 157 160 163 166 169 172 175 178 181 184 187 190 193 196 199 202 205 208 211 214 217 220 223 226 229 232 235 238 241 2...
result:
ok 1 cases (1 test case)
Test #10:
score: 0
Accepted
time: 22ms
memory: 9176kb
input:
1 333333 3
output:
No
result:
ok 1 cases (1 test case)
Test #11:
score: 0
Accepted
time: 21ms
memory: 12316kb
input:
1 333332 3
output:
Yes 333332 1 2 333335 4 5 333338 7 8 333341 10 11 333344 13 14 333347 16 17 333350 19 20 333353 22 23 333356 25 26 333359 28 29 333362 31 32 333365 34 35 333368 37 38 333371 40 41 333374 43 44 333377 46 47 333380 49 50 333383 52 53 333386 55 56 333389 58 59 333392 61 62 333395 64 65 333398 67 68 333...
result:
ok 1 cases (1 test case)
Test #12:
score: 0
Accepted
time: 11ms
memory: 10068kb
input:
1 4 249999
output:
Yes 4 1 2 7 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 101 105 109 113 117 121 125 129 133 137 141 145 149 153 157 161 165 169 173 177 181 185 189 193 197 201 205 209 213 217 221 225 229 233 237 241 245 249 253 257 261 265 269 273 277 281 285 289 293 297 301 305 309 313...
result:
ok 1 cases (1 test case)
Test #13:
score: 0
Accepted
time: 31ms
memory: 10212kb
input:
1 249998 4
output:
No
result:
ok 1 cases (1 test case)
Test #14:
score: 0
Accepted
time: 4ms
memory: 8092kb
input:
1 14925 67
output:
Yes 14925 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 14992 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99...
result:
ok 1 cases (1 test case)
Test #15:
score: 0
Accepted
time: 0ms
memory: 7952kb
input:
1 1526 655
output:
Yes 1526 1 2 3 4 1531 6 7 8 9 1536 11 12 13 14 1541 16 17 18 19 1546 21 22 23 24 1551 26 27 28 29 1556 31 32 33 34 1561 36 37 38 39 1566 41 42 43 44 1571 46 47 48 49 1576 51 52 53 54 1581 56 57 58 59 1586 61 62 63 64 1591 66 67 68 69 1596 71 72 73 74 1601 76 77 78 79 1606 81 82 83 84 1611 86 87 88 8...
result:
ok 1 cases (1 test case)
Test #16:
score: 0
Accepted
time: 2ms
memory: 8108kb
input:
1 24046 41
output:
Yes 24046 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 24087 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 24128 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98...
result:
ok 1 cases (1 test case)
Test #17:
score: 0
Accepted
time: 0ms
memory: 8076kb
input:
1 12537 79
output:
Yes 12537 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 12616 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99...
result:
ok 1 cases (1 test case)
Test #18:
score: 0
Accepted
time: 3ms
memory: 8048kb
input:
1 6367 157
output:
Yes 6367 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...
result:
ok 1 cases (1 test case)
Test #19:
score: 0
Accepted
time: 8ms
memory: 5856kb
input:
1 1080 925
output:
No
result:
ok 1 cases (1 test case)
Test #20:
score: 0
Accepted
time: 19ms
memory: 6036kb
input:
1 36756 27
output:
No
result:
ok 1 cases (1 test case)
Test #21:
score: 0
Accepted
time: 4ms
memory: 7972kb
input:
1 23110 43
output:
Yes 23110 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 23153 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 23196 87 88 89 90 91 92 93 94 95 96 97 98...
result:
ok 1 cases (1 test case)
Test #22:
score: 0
Accepted
time: 2ms
memory: 8184kb
input:
1 39072 25
output:
Yes 39072 1 2 3 4 39077 6 7 8 9 39082 11 12 13 14 39087 16 17 18 19 39092 21 22 23 24 39097 26 27 28 29 39102 31 32 33 34 39107 36 37 38 39 39112 41 42 43 44 39117 46 47 48 49 39122 51 52 53 54 39127 56 57 58 59 39132 61 62 63 64 39137 66 67 68 69 39142 71 72 73 74 39147 76 77 78 79 39152 81 82 83 8...
result:
ok 1 cases (1 test case)
Test #23:
score: 0
Accepted
time: 5ms
memory: 8040kb
input:
1 38721 25
output:
Yes 38721 1 2 3 4 38726 6 7 8 9 38731 11 12 13 14 38736 16 17 18 19 38741 21 22 23 24 38746 26 27 28 29 38751 31 32 33 34 38756 36 37 38 39 38761 41 42 43 44 38766 46 47 48 49 38771 51 52 53 54 38776 56 57 58 59 38781 61 62 63 64 38786 66 67 68 69 38791 71 72 73 74 38796 76 77 78 79 38801 81 82 83 8...
result:
ok 1 cases (1 test case)
Test #24:
score: 0
Accepted
time: 13ms
memory: 8080kb
input:
10000 6 8 54 1 4 19 77 1 1 66 16 4 6 4 49 1 10 1 16 5 2 14 1 84 2 22 8 6 85 1 4 13 94 1 5 7 5 3 9 6 6 2 8 12 8 3 5 17 1 60 11 7 5 8 2 48 7 5 10 5 13 6 1 60 1 69 23 2 3 4 1 20 2 17 1 71 26 1 28 1 81 1 2 1 14 2 14 6 21 1 5 4 24 2 19 4 2 34 7 13 2 26 10 2 50 2 4 5 11 9 45 1 7 10 4 9 43 2 85 1 20 2 1 25...
output:
No Yes 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 1 Yes 4 1 2 3 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 Yes 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 ...
result:
ok 10000 cases (10000 test cases)
Test #25:
score: 0
Accepted
time: 18ms
memory: 8004kb
input:
5000 30 4 8 17 23 5 9 12 37 5 32 5 1 163 12 14 25 4 1 179 65 3 139 1 15 11 4 27 8 20 6 22 24 6 1 109 102 1 4 34 4 42 7 17 9 18 189 1 9 12 13 8 184 1 1 149 11 13 98 2 44 4 197 1 1 137 1 144 21 9 2 59 1 103 74 2 1 175 37 4 31 4 5 36 131 1 1 134 14 12 1 154 31 5 56 3 3 39 5 20 4 33 129 1 15 8 10 11 1 1...
output:
No Yes 8 1 2 3 4 5 6 7 1 9 17 25 33 41 49 57 65 73 81 89 97 105 113 121 129 Yes 23 1 2 3 4 28 6 7 8 9 33 11 12 13 14 38 16 17 18 19 43 21 22 1 24 47 70 93 No Yes 37 1 2 3 4 42 6 7 8 9 47 11 12 13 14 52 16 17 18 19 57 21 22 23 24 62 26 27 28 29 67 31 32 33 34 72 36 1 38 75 112 149 Yes 32 1 2 3 ...
result:
ok 5000 cases (5000 test cases)
Test #26:
score: 0
Accepted
time: 12ms
memory: 8012kb
input:
2000 9 52 26 18 7 64 21 10 6 81 6 52 87 5 5 70 55 6 279 1 404 1 58 5 263 1 29 14 296 1 10 45 200 2 204 2 5 84 20 19 2 137 3 160 54 6 78 6 44 5 206 2 17 17 12 26 46 6 299 1 6 76 6 77 214 2 1 468 2 161 497 1 29 13 18 25 80 3 4 114 93 3 458 1 31 8 34 6 1 307 111 3 412 1 72 4 246 1 2 209 20 19 496 1 220...
output:
Yes 9 1 11 3 31 5 15 7 17 1 10 19 28 37 46 55 64 73 82 91 100 109 118 127 136 145 154 163 172 181 190 199 208 217 226 235 244 253 262 271 280 289 298 307 316 325 334 343 352 361 370 379 388 397 406 415 424 433 442 451 460 No Yes 7 1 9 3 11 5 13 1 8 15 22 29 36 43 50 57 64 71 78 85 92 99 106 113 1...
result:
ok 2000 cases (2000 test cases)
Test #27:
score: 0
Accepted
time: 16ms
memory: 7932kb
input:
1000 1 654 229 4 55 11 49 14 1 711 6 159 16 42 191 5 4 242 276 2 73 8 6 109 1 527 1 781 1 996 20 43 550 1 304 3 1 595 69 8 1 674 146 4 257 2 88 6 2 378 1 906 116 7 542 1 1 552 41 23 294 2 10 87 297 3 251 3 951 1 128 5 49 17 6 165 587 1 37 21 175 3 157 5 155 4 1 505 545 1 57 12 25 20 1 632 35 22 5 11...
output:
Yes 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...
result:
ok 1000 cases (1000 test cases)
Test #28:
score: 0
Accepted
time: 11ms
memory: 7952kb
input:
500 68 15 6 225 186 10 696 2 100 15 89 19 14 125 14 111 2 527 4 305 52 32 1875 1 3 359 6 251 93 17 351 4 9 169 242 5 18 108 206 8 196 7 1 1783 4 429 1953 1 308 6 1 1960 39 46 267 4 26 76 475 3 739 2 215 6 361 4 243 6 4 369 136 12 540 3 6 242 10 122 732 2 4 331 2 761 8 240 29 45 5 317 21 91 1 1220 36...
output:
Yes 68 1 2 71 4 73 74 7 8 77 146 11 148 13 14 83 16 17 86 19 88 89 22 23 92 161 26 163 28 29 98 31 32 101 34 103 104 37 38 107 176 41 178 43 44 113 46 47 116 49 118 119 52 53 122 191 56 193 58 59 128 61 62 131 64 133 134 67 1 69 137 205 273 341 409 477 545 613 681 749 817 885 953 No No No No Yes 8...
result:
ok 500 cases (500 test cases)
Test #29:
score: 0
Accepted
time: 9ms
memory: 8024kb
input:
200 600 4 8 546 4 696 73 36 605 8 33 98 11 250 170 13 4874 1 4929 1 82 26 1493 3 61 71 14 355 1 4259 70 69 3 1534 1 4067 4 1145 11 197 351 9 1 2801 36 56 6 737 5 493 3068 1 1 3422 9 385 20 112 182 23 507 9 59 55 24 203 21 143 754 5 67 73 161 26 2481 2 95 46 1038 3 1 3743 1248 2 2001 1 293 13 64 36 3...
output:
No No No Yes 73 1 221 149 77 5 79 7 227 155 83 11 85 13 233 161 89 17 91 19 239 167 95 23 97 25 245 173 101 29 103 31 251 179 107 35 109 37 257 185 113 41 115 43 263 191 119 47 121 49 269 197 125 53 127 55 275 203 131 59 133 61 281 209 137 65 139 67 287 215 143 71 145 1 74 147 220 293 366 439 512 5...
result:
ok 200 cases (200 test cases)
Test #30:
score: 0
Accepted
time: 11ms
memory: 7960kb
input:
100 90 71 67 118 2 4452 5 1081 2678 2 558 11 1 8976 26 195 120 54 184 40 4 1454 1236 8 2 3819 7894 1 164 48 340 21 243 33 3 3186 2 3118 35 246 2564 3 110 48 1 7316 11 711 1 9851 299 33 6692 1 1 7204 2919 2 302 23 990 9 80 64 39 222 1 9235 8 657 6617 1 781 10 3 2269 83 63 82 116 181 36 160 43 41 227 ...
output:
Yes 90 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 161 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 1 91 181 271 361 451 541 631 721 ...
result:
ok 100 cases (100 test cases)
Test #31:
score: 0
Accepted
time: 14ms
memory: 8100kb
input:
50 68 185 1 11708 1 15415 50 323 16127 1 1 13310 1 12735 29 463 2846 4 107 142 1021 18 13 850 11192 1 11737 1 21 855 143 76 6 2224 81 209 958 14 2181 6 2 6770 51 387 3713 4 442 38 1 19201 63 246 367 34 11 1452 12 1536 7416 2 12 1196 1 19544 2 6529 1584 7 1049 12 17496 1 150 93 4 3597 601 17 616 21 8...
output:
Yes 68 1 2 3 4 73 6 7 8 9 78 11 12 13 14 83 16 17 18 19 88 21 22 23 24 93 26 27 28 29 98 31 32 33 34 103 36 173 38 39 108 41 42 43 44 113 46 47 48 49 118 51 52 53 54 123 56 57 58 59 128 61 62 63 64 133 66 67 1 69 137 205 273 341 409 477 545 613 681 749 817 885 953 1021 1089 1157 1225 1293 1361 1429...
result:
ok 50 cases (50 test cases)
Test #32:
score: 0
Accepted
time: 18ms
memory: 8112kb
input:
20 1 26703 10447 2 3428 11 1 30557 25506 1 3 14045 23 1241 1 38121 47929 1 6 6525 10 3843 2 18497 349 80 9 3452 5265 6 6050 8 26677 1 497 60 742 36 45384 1
output:
Yes 1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...
result:
ok 20 cases (20 test cases)
Test #33:
score: 0
Accepted
time: 10ms
memory: 10108kb
input:
10 1318 38 86190 1 89 756 14065 6 505 188 8 12423 2114 30 123 637 1303 70 4099 18
output:
No Yes 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...
result:
ok 10 cases (10 test cases)
Test #34:
score: 0
Accepted
time: 20ms
memory: 8340kb
input:
5 4 26499 11 13627 12 15726 146988 1 71136 2
output:
Yes 4 1 2 7 1 5 9 13 17 21 25 29 33 37 41 45 49 53 57 61 65 69 73 77 81 85 89 93 97 101 105 109 113 117 121 125 129 133 137 141 145 149 153 157 161 165 169 173 177 181 185 189 193 197 201 205 209 213 217 221 225 229 233 237 241 245 249 253 257 261 265 269 273 277 281 285 289 293 297 301 305 309 313...
result:
ok 5 cases (5 test cases)
Test #35:
score: 0
Accepted
time: 0ms
memory: 8016kb
input:
400 16 26 37 8 17 17 45 14 32 30 46 28 32 22 41 6 35 9 24 35 24 18 47 32 47 49 50 33 40 39 47 3 24 13 29 49 15 20 3 6 50 18 1 27 47 23 14 49 22 40 39 41 46 23 11 44 34 45 16 13 43 16 13 13 12 28 24 29 23 23 20 1 26 42 33 19 23 26 12 10 27 19 13 23 15 26 27 35 44 21 12 37 15 44 49 11 38 28 24 7 48 21...
output:
No Yes 37 1 39 3 41 5 43 7 45 9 47 11 49 13 51 15 53 17 55 19 57 21 59 23 61 25 63 27 65 29 67 31 69 33 71 35 73 1 38 75 112 149 186 223 260 No Yes 45 1 47 3 139 5 51 97 53 9 55 11 57 13 59 15 61 17 153 19 65 111 67 23 69 25 71 27 73 29 75 31 167 33 79 125 81 37 83 39 85 41 87 43 89 1 46 91 136 1...
result:
ok 400 cases (400 test cases)
Test #36:
score: 0
Accepted
time: 2ms
memory: 8068kb
input:
100 67 92 91 65 59 66 99 60 86 56 81 55 54 57 66 85 92 83 56 70 78 72 63 60 99 74 91 51 93 67 67 65 78 66 95 69 76 75 65 71 70 99 97 81 89 80 69 61 53 93 92 52 76 87 80 96 56 90 51 56 62 55 81 83 66 71 79 92 82 73 64 94 52 77 53 87 85 51 96 94 75 68 63 72 53 63 86 75 100 65 79 93 100 74 78 65 88 85 ...
output:
Yes 67 1 203 3 71 5 73 7 75 9 77 11 79 13 81 15 83 17 85 19 87 21 89 157 91 25 93 27 95 29 97 31 99 33 101 35 103 37 105 39 107 41 109 43 111 45 113 47 249 49 117 51 119 53 121 55 123 57 125 59 127 61 129 63 131 65 133 1 68 135 202 269 336 403 470 537 604 671 738 805 872 939 1006 1073 1140 1207 127...
result:
ok 100 cases (100 test cases)
Test #37:
score: 0
Accepted
time: 0ms
memory: 8068kb
input:
25 137 170 169 165 151 194 101 111 122 162 166 170 182 123 127 148 164 103 148 127 103 199 148 155 105 130 150 115 181 118 172 188 108 130 177 195 156 196 159 170 101 116 171 143 192 127 181 157 101 167
output:
Yes 137 1 139 3 141 279 143 7 419 9 147 11 149 13 151 563 427 291 429 19 157 21 159 23 161 299 163 27 439 29 167 31 169 33 171 309 173 37 449 39 177 41 179 43 181 319 183 47 733 49 461 599 189 53 191 329 193 57 469 59 197 61 199 63 201 339 203 67 479 69 207 71 209 73 211 349 213 77 489 79 217 81 219...
result:
ok 25 cases (25 test cases)
Test #38:
score: 0
Accepted
time: 3ms
memory: 8064kb
input:
4 418 473 417 226 341 382 413 375
output:
No Yes 417 1 419 3 421 5 423 7 425 9 427 11 429 13 431 15 433 17 435 19 437 21 439 23 441 25 443 27 445 29 447 31 449 33 451 35 453 37 455 39 457 41 459 43 461 45 463 47 465 49 467 51 469 53 471 55 473 57 475 59 477 61 479 63 481 65 483 67 485 69 487 71 489 73 491 75 493 77 495 79 497 81 499 83 501 ...
result:
ok 4 cases (4 test cases)
Test #39:
score: 0
Accepted
time: 6ms
memory: 5904kb
input:
1 564 698
output:
No
result:
ok 1 cases (1 test case)
Extra Test:
score: 0
Extra Test Passed