QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#431760#7688. Alea Iacta Estucup-team3057WA 256ms36764kbC++1713.0kb2024-06-06 01:45:252024-06-06 01:45:26

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3680kb

input:

3
2 8
1 9
2 9

output:

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

result:

ok Correct. (3 test cases)

Test #2:

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

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: 11ms
memory: 3816kb

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: 8ms
memory: 4152kb

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: 7ms
memory: 4408kb

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: 8ms
memory: 4204kb

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: 126ms
memory: 3636kb

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: 256ms
memory: 14952kb

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: 228ms
memory: 15276kb

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: 248ms
memory: 11180kb

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: 239ms
memory: 11112kb

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: 113ms
memory: 33504kb

input:

1
1000000 1000000

output:

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

result:

ok Correct. (1 test case)

Test #13:

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

input:

1
1000000 1

output:

1000 1 126 251 376 501 626 751 876 1001 1126 1251 1376 1501 1626 1751 1876 2001 2126 2251 2376 2501 2626 2751 2876 3001 3126 3251 3376 3501 3626 3751 3876 4001 4126 4251 4376 4501 4626 4751 4876 5001 5126 5251 5376 5501 5626 5751 5876 6001 6126 6251 6376 6501 6626 6751 6876 7001 7126 7251 7376 7501 ...

result:

ok Correct. (1 test case)

Test #14:

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

input:

1
1000000 2

output:

1250 1 2 26 27 51 52 76 77 101 102 126 127 151 152 176 177 201 202 226 227 251 252 276 277 301 302 326 327 351 352 376 377 401 402 426 427 451 452 476 477 501 502 526 527 551 552 576 577 601 602 626 627 651 652 676 677 701 702 726 727 751 752 776 777 801 802 826 827 851 852 876 877 901 902 926 927 9...

result:

ok Correct. (1 test case)

Test #15:

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

input:

1
3 1000000

output:

1600 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 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 31251 31252 31253 31254 31255 31256 31257 31258 31259 31260 31261 31262 31263 3...

result:

ok Correct. (1 test case)

Test #16:

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

input:

1
4 1000000

output:

2000 1 2 3 4 126 127 128 129 251 252 253 254 376 377 378 379 501 502 503 504 626 627 628 629 751 752 753 754 876 877 878 879 1001 1002 1003 1004 1126 1127 1128 1129 1251 1252 1253 1254 1376 1377 1378 1379 1501 1502 1503 1504 1626 1627 1628 1629 1751 1752 1753 1754 1876 1877 1878 1879 2001 2002 2003 ...

result:

ok Correct. (1 test case)

Test #17:

score: 0
Accepted
time: 109ms
memory: 34440kb

input:

1
988027 988027

output:

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

result:

ok Correct. (1 test case)

Test #18:

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

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: 4ms
memory: 20664kb

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: 12ms
memory: 20664kb

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: 9ms
memory: 20724kb

input:

1
4 988027

output:

1982 1 3 998 1000 1995 1997 2992 2994 3989 3991 4986 4988 5983 5985 6980 6982 7977 7979 8974 8976 9971 9973 10968 10970 11965 11967 12962 12964 13959 13961 14956 14958 15953 15955 16950 16952 17947 17949 18944 18946 19941 19943 20938 20940 21935 21937 22932 22934 23929 23931 24926 24928 25923 25925 ...

result:

ok Correct. (1 test case)

Test #22:

score: 0
Accepted
time: 113ms
memory: 36764kb

input:

1
995779 995779

output:

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

result:

ok Correct. (1 test case)

Test #23:

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

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: 0ms
memory: 20756kb

input:

1
995779 2

output:

1966 1 2 1014 1015 2027 2028 3040 3041 4053 4054 5066 5067 6079 6080 7092 7093 8105 8106 9118 9119 10131 10132 11144 11145 12157 12158 13170 13171 14183 14184 15196 15197 16209 16210 17222 17223 18235 18236 19248 19249 20261 20262 21274 21275 22287 22288 23300 23301 24313 24314 25326 25327 26339 263...

result:

ok Correct. (1 test case)

Test #25:

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

input:

1
995779 3

output:

2949 1 2 3 1014 1015 1016 2027 2028 2029 3040 3041 3042 4053 4054 4055 5066 5067 5068 6079 6080 6081 7092 7093 7094 8105 8106 8107 9118 9119 9120 10131 10132 10133 11144 11145 11146 12157 12158 12159 13170 13171 13172 14183 14184 14185 15196 15197 15198 16209 16210 16211 17222 17223 17224 18235 1823...

result:

ok Correct. (1 test case)

Test #26:

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

input:

1
995779 4

output:

1966 1 2 1014 1015 2027 2028 3040 3041 4053 4054 5066 5067 6079 6080 7092 7093 8105 8106 9118 9119 10131 10132 11144 11145 12157 12158 13170 13171 14183 14184 15196 15197 16209 16210 17222 17223 18235 18236 19248 19249 20261 20262 21274 21275 22287 22288 23300 23301 24313 24314 25326 25327 26339 263...

result:

ok Correct. (1 test case)

Test #27:

score: 0
Accepted
time: 87ms
memory: 27476kb

input:

1
720720 720720

output:

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

result:

ok Correct. (1 test case)

Test #28:

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

input:

1
720720 1

output:

840 1 144 287 430 573 716 859 1002 1145 1288 1431 1574 1717 1860 2003 2146 2289 2432 2575 2718 2861 3004 3147 3290 3433 3576 3719 3862 4005 4148 4291 4434 4577 4720 4863 15016 15159 15302 15445 15588 15731 15874 16017 16160 16303 16446 16589 16732 16875 17018 17161 17304 17447 17590 17733 17876 1801...

result:

ok Correct. (1 test case)

Test #29:

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

input:

1
2 720720

output:

1170 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 1002 1003 1003 1004 1004 1005 1005 1006 1006 1007 1007 1008 1008 1009 1009 1010 1010 1011 1011 1012 1012 1013 1013 1014 1014 1015 2003 2004 2004 2005 2005 2006 2006 2007 2007 2008 2008 2009 2009 2010 2010 2011 2011 2012 2012 2013 2013...

result:

ok Correct. (1 test case)

Test #30:

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

input:

1
3 720720

output:

1456 1 2 3 4 5 6 7 8 9 10 11 12 13 144 145 146 147 148 149 150 151 152 153 154 155 156 287 288 289 290 291 292 293 294 295 296 297 298 299 430 431 432 433 434 435 436 437 438 439 440 441 442 573 574 575 576 577 578 579 580 581 582 583 584 585 716 717 718 719 720 721 722 723 724 725 726 727 728 859 8...

result:

ok Correct. (1 test case)

Test #31:

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

input:

1
4 720720

output:

1680 1 2 3 4 144 145 146 147 287 288 289 290 430 431 432 433 573 574 575 576 716 717 718 719 859 860 861 862 1002 1003 1004 1005 1145 1146 1147 1148 1288 1289 1290 1291 1431 1432 1433 1434 1574 1575 1576 1577 1717 1718 1719 1720 1860 1861 1862 1863 2003 2004 2005 2006 2146 2147 2148 2149 2289 2290 2...

result:

ok Correct. (1 test case)

Test #32:

score: 0
Accepted
time: 74ms
memory: 19544kb

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 9 10 10 10 10 10 11 11 11 11 11 11 12 12 12 12 12 12 13 13 13 13 13 13 13 14 14 14 14 14 14 14 15 15 15 15 15 15 15 15 16 16 16 16 16 16 16 16 17 17 17 17 17 17 17 17 17 18 18 18 18 18 18 18 18 18 19 19 19 19 19 19 19 19 19 19 20 20 20 20 20 20 ...

result:

ok Correct. (1 test case)

Test #33:

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

input:

1
1 524288

output:

512 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 #34:

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

input:

1
2 524288

output:

1024 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 #35:

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

input:

1
3 524288

output:

1024 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 #36:

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

input:

1
524288 4

output:

1024 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 2...

result:

ok Correct. (1 test case)

Test #37:

score: 0
Accepted
time: 66ms
memory: 24512kb

input:

1
531441 531441

output:

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

result:

ok Correct. (1 test case)

Test #38:

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

input:

1
1 531441

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 #39:

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

input:

1
2 531441

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 #40:

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

input:

1
531441 3

output:

729 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 #41:

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

input:

1
531441 4

output:

1458 1 2 730 731 1459 1460 2188 2189 2917 2918 3646 3647 4375 4376 5104 5105 5833 5834 6562 6563 7291 7292 8020 8021 8749 8750 9478 9479 10207 10208 10936 10937 11665 11666 12394 12395 13123 13124 13852 13853 14581 14582 15310 15311 16039 16040 16768 16769 17497 17498 18226 18227 18955 18956 19684 1...

result:

ok Correct. (1 test case)

Test #42:

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

input:

1
510510 510510

output:

510510 1 2 7 8 13 14 19 20 25 26 211 212 217 218 223 224 229 230 235 236 421 422 427 428 433 434 439 440 445 446 631 632 637 638 643 644 649 650 655 656 841 842 847 848 853 854 859 860 865 866 1051 1052 1057 1058 1063 1064 1069 1070 1075 1076 1261 1262 1267 1268 1273 1274 1279 1280 1285 1286 1471 14...

result:

ok Correct. (1 test case)

Test #43:

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

input:

1
510510 1

output:

714 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310...

result:

ok Correct. (1 test case)

Test #44:

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

input:

1
510510 2

output:

1020 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 17018 17019 17019 17020 17020 17021 17021 17022 17022 17023 17023 17024 17024 17025 17025 17026 17026 17027 17027 17028 17028 17029 17029 17030 17030 17031 17031 17032 17032 17033 17033 17034 17034 17035 34035 ...

result:

ok Correct. (1 test case)

Test #45:

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

input:

1
3 510510

output:

1190 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 731...

result:

ok Correct. (1 test case)

Test #46:

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

input:

1
4 510510

output:

1430 1 3 18 20 35 37 52 54 69 71 86 88 103 105 120 122 137 139 154 156 171 173 188 190 205 207 222 224 239 241 256 258 273 275 290 292 307 309 324 326 341 343 358 360 375 377 392 394 409 411 426 428 443 445 460 462 477 479 494 496 511 513 528 530 545 547 562 564 579 581 596 598 613 615 630 632 647 6...

result:

ok Correct. (1 test case)

Test #47:

score: 0
Accepted
time: 29ms
memory: 13180kb

input:

1
279936 279936

output:

279936 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...

result:

ok Correct. (1 test case)

Test #48:

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

input:

1
279936 1

output:

486 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 469 478 487 496 505 514 523 532 541 550 559 568 577 586 595 604 613 622 631 640 649 658 667 676 685 ...

result:

ok Correct. (1 test case)

Test #49:

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

input:

1
279936 2

output:

768 1 2 730 731 1459 1460 2188 2189 2917 2918 3646 3647 4375 4376 5104 5105 5833 5834 6562 6563 7291 7292 8020 8021 8749 8750 9478 9479 10207 10208 10936 10937 11665 11666 12394 12395 13123 13124 13852 13853 14581 14582 15310 15311 16039 16040 16768 16769 17497 17498 18226 18227 18955 18956 19684 19...

result:

ok Correct. (1 test case)

Test #50:

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

input:

1
279936 3

output:

864 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 2917 2918 2918 2919 2919 2919 2920 2920 2920 2921 2921 2921 2922 2922 2922 2923 2923 2923 2924 2924 2924 2925 2925 2925 2926 2926 2927 5833 5834 5834 5835 5835 5835 5836 5836 5836 5837 5837 5837 5838 5838 5838 5839 5839 5839 5840 5840 5840...

result:

ok Correct. (1 test case)

Test #51:

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

input:

1
4 279936

output:

972 1 2 3 4 10 11 12 13 19 20 21 22 28 29 30 31 37 38 39 40 46 47 48 49 55 56 57 58 64 65 66 67 73 74 75 76 82 83 84 85 91 92 93 94 100 101 102 103 109 110 111 112 118 119 120 121 127 128 129 130 136 137 138 139 145 146 147 148 154 155 156 157 163 164 165 166 172 173 174 175 181 182 183 184 190 191 ...

result:

ok Correct. (1 test case)

Test #52:

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

input:

1
871933 871933

output:

871933 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 102 103 104 105 106 107 108 109 110...

result:

ok Correct. (1 test case)

Test #53:

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

input:

1
871933 1

output:

101 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 #54:

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

input:

1
2 871933

output:

8633 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 61...

result:

ok Correct. (1 test case)

Test #55:

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

input:

1
3 871933

output:

8633 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 61...

result:

ok Correct. (1 test case)

Test #56:

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

input:

1
4 871933

output:

8633 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 61...

result:

ok Correct. (1 test case)

Test #57:

score: -100
Wrong Answer
time: 111ms
memory: 33216kb

input:

1
1000000 999999

output:

999000 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 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 251 252 253 254 255 256 257 258 259 260 261...

result:

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