QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#238827#7688. Alea Iacta Estucup-team1075#WA 192ms48000kbC++143.5kb2023-11-04 17:39:442023-11-04 17:39:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
2 8
1 9
2 9

output:

4 1 2 3 4
4 1 2 5 6

3 1 4 7
3 1 2 3

3 1 2 3
6 1 2 4 5 7 8


result:

ok Correct. (3 test cases)

Test #2:

score: 0
Accepted
time: 8ms
memory: 27248kb

input:

1
40013 40013

output:

80026 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 ...

result:

ok Correct. (1 test case)

Test #3:

score: 0
Accepted
time: 4ms
memory: 27408kb

input:

1
40013 1

output:

2 1 1
40013 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 ...

result:

ok Correct. (1 test case)

Test #4:

score: 0
Accepted
time: 4ms
memory: 27224kb

input:

1
2 40013

output:

4 1 1 2 2
40013 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...

result:

ok Correct. (1 test case)

Test #5:

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

input:

1
3 40013

output:

6 1 1 2 2 3 3
40013 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 9...

result:

ok Correct. (1 test case)

Test #6:

score: 0
Accepted
time: 4ms
memory: 27156kb

input:

1
4 40013

output:

8 1 1 2 2 3 3 4 4
40013 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 ...

result:

ok Correct. (1 test case)

Test #7:

score: 0
Accepted
time: 115ms
memory: 27240kb

input:

1
999983 999983

output:

1999966 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 5...

result:

ok Correct. (1 test case)

Test #8:

score: 0
Accepted
time: 49ms
memory: 27516kb

input:

1
1 999983

output:

2 1 1
999983 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...

result:

ok Correct. (1 test case)

Test #9:

score: 0
Accepted
time: 41ms
memory: 27440kb

input:

1
2 999983

output:

4 1 1 2 2
999983 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 9...

result:

ok Correct. (1 test case)

Test #10:

score: 0
Accepted
time: 36ms
memory: 27444kb

input:

1
999983 3

output:

6 1 1 2 2 3 3
999983 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 ...

result:

ok Correct. (1 test case)

Test #11:

score: 0
Accepted
time: 45ms
memory: 27152kb

input:

1
999983 4

output:

8 1 1 2 2 3 3 4 4
999983 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...

result:

ok Correct. (1 test case)

Test #12:

score: 0
Accepted
time: 192ms
memory: 48000kb

input:

1
1000000 1000000

output:

1000000 1 2 3 4 5 11 12 13 14 15 26 27 28 29 30 36 37 38 39 40 51 52 53 54 55 61 62 63 64 65 76 77 78 79 80 86 87 88 89 90 101 102 103 104 105 111 112 113 114 115 126 127 128 129 130 136 137 138 139 140 151 152 153 154 155 161 162 163 164 165 176 177 178 179 180 186 187 188 189 190 201 202 203 204 2...

result:

ok Correct. (1 test case)

Test #13:

score: 0
Accepted
time: 8ms
memory: 31432kb

input:

1
1000000 1

output:

1000 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 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 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 251 252 253 254 255 256 257 258 259 260 261 262 263 26...

result:

ok Correct. (1 test case)

Test #14:

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

input:

1
1000000 2

output:

1250 1 5 17 21 33 37 49 53 65 69 801 805 817 821 833 837 849 853 865 869 1601 1605 1617 1621 1633 1637 1649 1653 1665 1669 2401 2405 2417 2421 2433 2437 2449 2453 2465 2469 3201 3205 3217 3221 3233 3237 3249 3253 3265 3269 4001 4005 4017 4021 4033 4037 4049 4053 4065 4069 4801 4805 4817 4821 4833 48...

result:

ok Correct. (1 test case)

Test #15:

score: 0
Accepted
time: 8ms
memory: 31072kb

input:

1
3 1000000

output:

1600 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 401 402 403 404 ...

result:

ok Correct. (1 test case)

Test #16:

score: 0
Accepted
time: 7ms
memory: 31692kb

input:

1
4 1000000

output:

2000 1 2 2 3 3 4 4 5 5 6 51 52 52 53 53 54 54 55 55 56 101 102 102 103 103 104 104 105 105 106 151 152 152 153 153 154 154 155 155 156 201 202 202 203 203 204 204 205 205 206 251 252 252 253 253 254 254 255 255 256 301 302 302 303 303 304 304 305 305 306 351 352 352 353 353 354 354 355 355 356 401 4...

result:

ok Correct. (1 test case)

Test #17:

score: 0
Accepted
time: 162ms
memory: 45204kb

input:

1
988027 988027

output:

988027 1 992 998 1983 1989 1995 2974 2980 2986 2992 3965 3971 3977 3983 3989 4956 4962 4968 4974 4980 4986 5947 5953 5959 5965 5971 5977 5983 6938 6944 6950 6956 6962 6968 6974 6980 7929 7935 7941 7947 7953 7959 7965 7971 7977 8920 8926 8932 8938 8944 8950 8956 8962 8968 8974 9911 9917 9923 9929 993...

result:

ok Correct. (1 test case)

Test #18:

score: 0
Accepted
time: 3ms
memory: 31692kb

input:

1
988027 1

output:

991 1 998 1995 2992 3989 4986 5983 6980 7977 8974 9971 10968 11965 12962 13959 14956 15953 16950 17947 18944 19941 20938 21935 22932 23929 24926 25923 26920 27917 28914 29911 30908 31905 32902 33899 34896 35893 36890 37887 38884 39881 40878 41875 42872 43869 44866 45863 46860 47857 48854 49851 50848...

result:

ok Correct. (1 test case)

Test #19:

score: 0
Accepted
time: 3ms
memory: 32024kb

input:

1
2 988027

output:

997 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 101 ...

result:

ok Correct. (1 test case)

Test #20:

score: 0
Accepted
time: 7ms
memory: 30896kb

input:

1
3 988027

output:

997 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 101 ...

result:

ok Correct. (1 test case)

Test #21:

score: 0
Accepted
time: 8ms
memory: 31488kb

input:

1
4 988027

output:

1982 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...

result:

ok Correct. (1 test case)

Test #22:

score: 0
Accepted
time: 171ms
memory: 45564kb

input:

1
995779 995779

output:

995779 1 984 1014 1967 1997 2027 2950 2980 3010 3040 3933 3963 3993 4023 4053 4916 4946 4976 5006 5036 5066 5899 5929 5959 5989 6019 6049 6079 6882 6912 6942 6972 7002 7032 7062 7092 7865 7895 7925 7955 7985 8015 8045 8075 8105 8848 8878 8908 8938 8968 8998 9028 9058 9088 9118 9831 9861 9891 9921 99...

result:

ok Correct. (1 test case)

Test #23:

score: 0
Accepted
time: 12ms
memory: 31280kb

input:

1
1 995779

output:

983 1 1014 2027 3040 4053 5066 6079 7092 8105 9118 10131 11144 12157 13170 14183 15196 16209 17222 18235 19248 20261 21274 22287 23300 24313 25326 26339 27352 28365 29378 30391 31404 32417 33430 34443 35456 36469 37482 38495 39508 40521 41534 42547 43560 44573 45586 46599 47612 48625 49638 50651 516...

result:

ok Correct. (1 test case)

Test #24:

score: 0
Accepted
time: 8ms
memory: 32540kb

input:

1
995779 2

output:

1013 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 101...

result:

ok Correct. (1 test case)

Test #25:

score: 0
Accepted
time: 6ms
memory: 32280kb

input:

1
995779 3

output:

1013 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 101...

result:

ok Correct. (1 test case)

Test #26:

score: 0
Accepted
time: 4ms
memory: 32560kb

input:

1
995779 4

output:

1966 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...

result:

ok Correct. (1 test case)

Test #27:

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

input:

1
720720 720720

output:

720720 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 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 133 134 134 135 135 136 136 137 137 138 138 139 139 140 140 141 141 142 142 14...

result:

ok Correct. (1 test case)

Test #28:

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

input:

1
720720 1

output:

840 1 2 3 4 5 56 57 58 59 60 331 332 333 334 335 386 387 388 389 390 661 662 663 664 665 716 717 718 719 720 991 992 993 994 995 1046 1047 1048 1049 1050 1321 1322 1323 1324 1325 1376 1377 1378 1379 1380 1651 1652 1653 1654 1655 1706 1707 1708 1709 1710 51481 51482 51483 51484 51485 51536 51537 5153...

result:

ok Correct. (1 test case)

Test #29:

score: 0
Accepted
time: 3ms
memory: 31236kb

input:

1
2 720720

output:

1170 1 2 113 114 225 226 337 338 449 450 561 562 673 674 785 786 897 898 1009 1010 1121 1122 1233 1234 1345 1346 1457 1458 1569 1570 1681 1682 1793 1794 1905 1906 2017 2018 2129 2130 2241 2242 2353 2354 2465 2466 2577 2578 2689 2690 2801 2802 2913 2914 3025 3026 3137 3138 3249 3250 3361 3362 3473 34...

result:

ok Correct. (1 test case)

Test #30:

score: 0
Accepted
time: 3ms
memory: 32020kb

input:

1
3 720720

output:

1456 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 101...

result:

ok Correct. (1 test case)

Test #31:

score: 0
Accepted
time: 7ms
memory: 32480kb

input:

1
4 720720

output:

1680 1 3 40 42 79 81 118 120 157 159 196 198 235 237 274 276 313 315 352 354 391 393 430 432 469 471 508 510 547 549 586 588 625 627 664 666 703 705 742 744 781 783 1639 1641 1678 1680 1717 1719 1756 1758 1795 1797 1834 1836 1873 1875 1912 1914 1951 1953 1990 1992 2029 2031 2068 2070 2107 2109 2146 ...

result:

ok Correct. (1 test case)

Test #32:

score: 0
Accepted
time: 96ms
memory: 38644kb

input:

1
524288 524288

output:

524288 1 2 3 3 4 4 5 5 5 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11 12 12 12 12 13 13 13 13 14 14 14 14 15 15 15 15 16 16 16 16 17 17 17 17 18 18 18 18 19 19 19 19 20 20 20 20 21 21 21 21 22 22 22 22 23 23 23 23 24 24 24 24 25 25 25 25 26 26 26 26 27 27 27 27 28 28 28 28 29 29 29 29 30 30...

result:

ok Correct. (1 test case)

Test #33:

score: 0
Accepted
time: 3ms
memory: 28648kb

input:

1
1 524288

output:

512 1 2 5 6 33 34 37 38 129 130 133 134 161 162 165 166 513 514 517 518 545 546 549 550 641 642 645 646 673 674 677 678 1025 1026 1029 1030 1057 1058 1061 1062 1153 1154 1157 1158 1185 1186 1189 1190 1537 1538 1541 1542 1569 1570 1573 1574 1665 1666 1669 1670 1697 1698 1701 1702 16385 16386 16389 16...

result:

ok Correct. (1 test case)

Test #34:

score: 0
Accepted
time: 9ms
memory: 28676kb

input:

1
2 524288

output:

1024 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037...

result:

ok Correct. (1 test case)

Test #35:

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

input:

1
3 524288

output:

1024 1 2 3 4 9 10 11 12 17 18 19 20 25 26 27 28 33 34 35 36 41 42 43 44 49 50 51 52 57 58 59 60 65 66 67 68 73 74 75 76 81 82 83 84 89 90 91 92 97 98 99 100 105 106 107 108 113 114 115 116 121 122 123 124 1025 1026 1027 1028 1033 1034 1035 1036 1041 1042 1043 1044 1049 1050 1051 1052 1057 1058 1059 ...

result:

ok Correct. (1 test case)

Test #36:

score: 0
Accepted
time: 3ms
memory: 28608kb

input:

1
524288 4

output:

1024 1 3 3 5 17 19 19 21 33 35 35 37 49 51 51 53 129 131 131 133 145 147 147 149 161 163 163 165 177 179 179 181 513 515 515 517 529 531 531 533 545 547 547 549 561 563 563 565 641 643 643 645 657 659 659 661 673 675 675 677 689 691 691 693 8193 8195 8195 8197 8209 8211 8211 8213 8225 8227 8227 8229...

result:

ok Correct. (1 test case)

Test #37:

score: 0
Accepted
time: 94ms
memory: 41160kb

input:

1
531441 531441

output:

531441 1 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 10 10 11 28 28 29 29 29 29 30 30 30 30 30 30 31 31 31 31 31 31 32 32 32 32 32 32 33 33 33 33 33 33 34 34 34 34 34 34 35 35 35 35 35 35 36 36 36 36 36 36 37 37 37 37 38 38 55 55 55 56 56 56 56 56 56 57 57 57 57 57 57 57 57 57 58 58 58 58 58 58 58...

result:

ok Correct. (1 test case)

Test #38:

score: 0
Accepted
time: 3ms
memory: 31756kb

input:

1
1 531441

output:

729 1 28 55 244 271 298 487 514 541 2188 2215 2242 2431 2458 2485 2674 2701 2728 4375 4402 4429 4618 4645 4672 4861 4888 4915 19684 19711 19738 19927 19954 19981 20170 20197 20224 21871 21898 21925 22114 22141 22168 22357 22384 22411 24058 24085 24112 24301 24328 24355 24544 24571 24598 39367 39394 ...

result:

ok Correct. (1 test case)

Test #39:

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

input:

1
2 531441

output:

729 1 2 3 28 29 30 55 56 57 244 245 246 271 272 273 298 299 300 487 488 489 514 515 516 541 542 543 6562 6563 6564 6589 6590 6591 6616 6617 6618 6805 6806 6807 6832 6833 6834 6859 6860 6861 7048 7049 7050 7075 7076 7077 7102 7103 7104 13123 13124 13125 13150 13151 13152 13177 13178 13179 13366 13367...

result:

ok Correct. (1 test case)

Test #40:

score: 0
Accepted
time: 3ms
memory: 30888kb

input:

1
531441 3

output:

729 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 101 ...

result:

ok Correct. (1 test case)

Test #41:

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

input:

1
531441 4

output:

1458 1 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 11 28 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 38 55 56 57 57 58 58 59 59 60 60 61 61 62 62 63 63 64 65 244 245 246 246 247 247 248 248 249 249 250 250 251 251 252 252 253 254 271 272 273 273 274 274 275 275 276 276 277 277 278 278 279 279 280 281 298 2...

result:

ok Correct. (1 test case)

Test #42:

score: 0
Accepted
time: 84ms
memory: 36012kb

input:

1
510510 510510

output:

510510 1 2 3 4 5 6 7 8 9 10 11 12 12 13 13 14 14 15 15 16 16 17 17 18 19 20 21 22 23 23 24 24 25 25 26 26 27 27 28 28 29 30 31 32 33 34 34 35 35 36 36 37 37 38 38 39 39 40 41 42 43 44 45 45 46 46 47 47 48 48 49 49 50 50 51 52 53 54 55 56 56 57 57 58 58 59 59 60 60 61 61 62 63 64 65 66 67 67 68 68 69...

result:

ok Correct. (1 test case)

Test #43:

score: 0
Accepted
time: 3ms
memory: 28672kb

input:

1
510510 1

output:

714 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 101 ...

result:

ok Correct. (1 test case)

Test #44:

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

input:

1
510510 2

output:

1001 1 11 21 31 41 51 61 3571 3581 3591 3601 3611 3621 3631 7141 7151 7161 7171 7181 7191 7201 10711 10721 10731 10741 10751 10761 10771 14281 14291 14301 14311 14321 14331 14341 17851 17861 17871 17881 17891 17901 17911 21421 21431 21441 21451 21461 21471 21481 24991 25001 25011 25021 25031 25041 2...

result:

ok Correct. (1 test case)

Test #45:

score: 0
Accepted
time: 10ms
memory: 28596kb

input:

1
3 510510

output:

1190 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 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 23...

result:

ok Correct. (1 test case)

Test #46:

score: 0
Accepted
time: 3ms
memory: 28740kb

input:

1
4 510510

output:

1428 1 3 56 58 111 113 166 168 221 223 276 278 331 333 386 388 441 443 496 498 551 553 606 608 661 663 716 718 771 773 826 828 881 883 12156 12158 12211 12213 12266 12268 12321 12323 12376 12378 12431 12433 12486 12488 12541 12543 12596 12598 12651 12653 12706 12708 12761 12763 12816 12818 12871 128...

result:

ok Correct. (1 test case)

Test #47:

score: 0
Accepted
time: 55ms
memory: 33880kb

input:

1
279936 279936

output:

279936 1 2 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 26 27 37 38 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 53 54 54 55 55 56 56 57 57 58 58 59 59 60 60 61 62 63 145 146 147 148 148 ...

result:

ok Correct. (1 test case)

Test #48:

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

input:

1
279936 1

output:

486 1 3 5 13 15 17 25 27 29 73 75 77 85 87 89 97 99 101 145 147 149 157 159 161 169 171 173 217 219 221 229 231 233 241 243 245 289 291 293 301 303 305 313 315 317 361 363 365 373 375 377 385 387 389 865 867 869 877 879 881 889 891 893 937 939 941 949 951 953 961 963 965 1009 1011 1013 1021 1023 102...

result:

ok Correct. (1 test case)

Test #49:

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

input:

1
279936 2

output:

729 1 9 17 25 33 41 49 57 65 73 81 89 97 105 113 121 129 137 145 153 161 169 177 185 193 201 209 433 441 449 457 465 473 481 489 497 505 513 521 529 537 545 553 561 569 577 585 593 601 609 617 625 633 641 865 873 881 889 897 905 913 921 929 937 945 953 961 969 977 985 993 1001 1009 1017 1025 1033 10...

result:

ok Correct. (1 test case)

Test #50:

score: 0
Accepted
time: 5ms
memory: 28516kb

input:

1
279936 3

output:

864 1 2 3 4 5 6 7 8 73 74 75 76 77 78 79 80 145 146 147 148 149 150 151 152 217 218 219 220 221 222 223 224 289 290 291 292 293 294 295 296 361 362 363 364 365 366 367 368 433 434 435 436 437 438 439 440 505 506 507 508 509 510 511 512 577 578 579 580 581 582 583 584 649 650 651 652 653 654 655 656 ...

result:

ok Correct. (1 test case)

Test #51:

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

input:

1
4 279936

output:

972 1 2 3 7 8 9 13 14 15 217 218 219 223 224 225 229 230 231 433 434 435 439 440 441 445 446 447 649 650 651 655 656 657 661 662 663 865 866 867 871 872 873 877 878 879 1081 1082 1083 1087 1088 1089 1093 1094 1095 5185 5186 5187 5191 5192 5193 5197 5198 5199 5401 5402 5403 5407 5408 5409 5413 5414 5...

result:

ok Correct. (1 test case)

Test #52:

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

input:

1
871933 871933

output:

871933 1 102 203 304 405 506 607 708 809 910 1011 1112 1213 1314 1415 1516 1617 1718 1819 1920 2021 2122 2223 2324 2425 2526 2627 2728 2829 2930 3031 3132 3233 3334 3435 3536 3637 3738 3839 3940 4041 4142 4243 4344 4445 4546 4647 4748 4849 4950 5051 5152 5253 5354 5455 5556 5657 5758 5859 5960 6061 ...

result:

ok Correct. (1 test case)

Test #53:

score: 0
Accepted
time: 8ms
memory: 30888kb

input:

1
871933 1

output:

101 1 8634 17267 25900 34533 43166 51799 60432 69065 77698 86331 94964 103597 112230 120863 129496 138129 146762 155395 164028 172661 181294 189927 198560 207193 215826 224459 233092 241725 250358 258991 267624 276257 284890 293523 302156 310789 319422 328055 336688 345321 353954 362587 371220 37985...

result:

ok Correct. (1 test case)

Test #54:

score: 0
Accepted
time: 4ms
memory: 32152kb

input:

1
2 871933

output:

202 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 5...

result:

ok Correct. (1 test case)

Test #55:

score: 0
Accepted
time: 12ms
memory: 31752kb

input:

1
3 871933

output:

303 1 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 10 10 10 11 11 11 12 12 12 13 13 13 14 14 14 15 15 15 16 16 16 17 17 17 18 18 18 19 19 19 20 20 20 21 21 21 22 22 22 23 23 23 24 24 24 25 25 25 26 26 26 27 27 27 28 28 28 29 29 29 30 30 30 31 31 31 32 32 32 33 33 33 34 34 34 35 35 35 36 36 36 37 37...

result:

ok Correct. (1 test case)

Test #56:

score: 0
Accepted
time: 8ms
memory: 31152kb

input:

1
4 871933

output:

404 1 2 2 3 3 3 4 4 4 4 5 5 5 5 6 6 6 6 7 7 7 7 8 8 8 8 9 9 9 9 10 10 10 10 11 11 11 11 12 12 12 12 13 13 13 13 14 14 14 14 15 15 15 15 16 16 16 16 17 17 17 17 18 18 18 18 19 19 19 19 20 20 20 20 21 21 21 21 22 22 22 22 23 23 23 23 24 24 24 24 25 25 25 25 26 26 26 26 27 27 27 27 28 28 28 28 29 29 29...

result:

ok Correct. (1 test case)

Test #57:

score: -100
Wrong Answer
time: 161ms
memory: 46984kb

input:

1
1000000 999999

output:

999000 1 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 9 10 10 10 11 11 11 11 12 12 12 12 13 13 13 13 14 14 14 14 15 15 15 15 16 16 16 16 17 17 17 17 17 18 18 18 18 18 19 19 19 19 19 19 20 20 20 20 20 20 21 21 21 21 21 21 22 22 22 22 22 22 23 23 23 23 23 23 24 24 24 24 24 24 25 25 25 25 25 25 25 26 26 26 26 26 26 2...

result:

wrong answer Jury has a better answer. (test case 1)