QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#668691 | #7722. Group the Numbers | ucup-team173# | AC ✓ | 8ms | 8684kb | C++20 | 1.4kb | 2024-10-23 15:30:16 | 2024-10-23 15:30:16 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve() {
int n, k;
cin >> n >> k;
vector ve(k, vector<int>(n / k));
int tt = n / k;
if (tt == 1) {
for (int i = 0; i < k; i++) {
ve[i][0] = i;
}
} else if (tt & 1) {
ve[0][0] = 0;
ve[0][1] = (k >> 1);
for (int i = 1; i < k; i++) {
ve[i][0] = (ve[i - 1][0] + 1) % k;
ve[i][1] = (ve[i - 1][1] + 1) % k;
}
int i = 0, t = k - 1;
while(t >= 0) {
ve[i][2] = t, t -= 2, i++;
}
t = k - 2;
while(t >= 0) {
ve[i][2] = t, t -= 2, i++;
}
for (int j = 3; j < n / k; j += 2) {
for (int i = 0; i < k; i++) {
ve[i][j] = i;
ve[i][j + 1] = k - i - 1;
}
}
} else {
for (int j = 0; j < n / k; j += 2) {
for (int i = 0; i < k; i++) {
ve[i][j] = i;
ve[i][j + 1] = k - i - 1;
}
}
}
for (int i = 0; i < k; i++) {
for (int j = 0; j < n / k; j++) {
cout << ve[i][j] + j * k + 1 << ' ';
}
cout << '\n';
}
}
signed main() {
ios::sync_with_stdio(false);
cin.tie(0), cout.tie(0);
int t = 1;
// cin >> t;
while(t--) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3588kb
input:
6 2
output:
1 4 6 2 3 5
result:
ok answer is correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
12 3
output:
1 6 7 12 2 5 8 11 3 4 9 10
result:
ok answer is correct
Test #3:
score: 0
Accepted
time: 8ms
memory: 8576kb
input:
100000 100000
output:
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 7...
result:
ok answer is correct
Test #4:
score: 0
Accepted
time: 4ms
memory: 3600kb
input:
100000 2
output:
1 4 5 8 9 12 13 16 17 20 21 24 25 28 29 32 33 36 37 40 41 44 45 48 49 52 53 56 57 60 61 64 65 68 69 72 73 76 77 80 81 84 85 88 89 92 93 96 97 100 101 104 105 108 109 112 113 116 117 120 121 124 125 128 129 132 133 136 137 140 141 144 145 148 149 152 153 156 157 160 161 164 165 168 169 172 173 176 17...
result:
ok answer is correct
Test #5:
score: 0
Accepted
time: 4ms
memory: 3796kb
input:
100000 500
output:
1 1000 1001 2000 2001 3000 3001 4000 4001 5000 5001 6000 6001 7000 7001 8000 8001 9000 9001 10000 10001 11000 11001 12000 12001 13000 13001 14000 14001 15000 15001 16000 16001 17000 17001 18000 18001 19000 19001 20000 20001 21000 21001 22000 22001 23000 23001 24000 24001 25000 25001 26000 26001 2700...
result:
ok answer is correct
Test #6:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
1 1
output:
1
result:
ok answer is correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
2 1
output:
1 2
result:
ok answer is correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
3 3
output:
1 2 3
result:
ok answer is correct
Test #9:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
4 2
output:
1 4 2 3
result:
ok answer is correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3520kb
input:
6 2
output:
1 4 6 2 3 5
result:
ok answer is correct
Test #11:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
8 4
output:
1 8 2 7 3 6 4 5
result:
ok answer is correct
Test #12:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
9 3
output:
1 5 9 2 6 7 3 4 8
result:
ok answer is correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
10 5
output:
1 10 2 9 3 8 4 7 5 6
result:
ok answer is correct
Test #14:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
12 3
output:
1 6 7 12 2 5 8 11 3 4 9 10
result:
ok answer is correct
Test #15:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
14 7
output:
1 14 2 13 3 12 4 11 5 10 6 9 7 8
result:
ok answer is correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
15 5
output:
1 8 15 2 9 13 3 10 11 4 6 14 5 7 12
result:
ok answer is correct
Test #17:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
16 2
output:
1 4 5 8 9 12 13 16 2 3 6 7 10 11 14 15
result:
ok answer is correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
18 9
output:
1 18 2 17 3 16 4 15 5 14 6 13 7 12 8 11 9 10
result:
ok answer is correct
Test #19:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
40 20
output:
1 40 2 39 3 38 4 37 5 36 6 35 7 34 8 33 9 32 10 31 11 30 12 29 13 28 14 27 15 26 16 25 17 24 18 23 19 22 20 21
result:
ok answer is correct
Test #20:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
70 14
output:
1 22 42 43 70 2 23 40 44 69 3 24 38 45 68 4 25 36 46 67 5 26 34 47 66 6 27 32 48 65 7 28 30 49 64 8 15 41 50 63 9 16 39 51 62 10 17 37 52 61 11 18 35 53 60 12 19 33 54 59 13 20 31 55 58 14 21 29 56 57
result:
ok answer is correct
Test #21:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
115 23
output:
1 35 69 70 115 2 36 67 71 114 3 37 65 72 113 4 38 63 73 112 5 39 61 74 111 6 40 59 75 110 7 41 57 76 109 8 42 55 77 108 9 43 53 78 107 10 44 51 79 106 11 45 49 80 105 12 46 47 81 104 13 24 68 82 103 14 25 66 83 102 15 26 64 84 101 16 27 62 85 100 17 28 60 86 99 18 29 58 87 98 19 30...
result:
ok answer is correct
Test #22:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
198 66
output:
1 100 198 2 101 196 3 102 194 4 103 192 5 104 190 6 105 188 7 106 186 8 107 184 9 108 182 10 109 180 11 110 178 12 111 176 13 112 174 14 113 172 15 114 170 16 115 168 17 116 166 18 117 164 19 118 162 20 119 160 21 120 158 22 121 156 23 122 154 24 123 152 25 124 150 26 125 14...
result:
ok answer is correct
Test #23:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
350 50
output:
1 76 150 151 250 251 350 2 77 148 152 249 252 349 3 78 146 153 248 253 348 4 79 144 154 247 254 347 5 80 142 155 246 255 346 6 81 140 156 245 256 345 7 82 138 157 244 257 344 8 83 136 158 243 258 343 9 84 134 159 242 259 342 10 85 132 160 241 260 341 11 86 130 161 240 261 340 12 87 128 16...
result:
ok answer is correct
Test #24:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
652 163
output:
1 326 327 652 2 325 328 651 3 324 329 650 4 323 330 649 5 322 331 648 6 321 332 647 7 320 333 646 8 319 334 645 9 318 335 644 10 317 336 643 11 316 337 642 12 315 338 641 13 314 339 640 14 313 340 639 15 312 341 638 16 311 342 637 17 310 343 636 18 309 344 635 19 308 345 634 20 30...
result:
ok answer is correct
Test #25:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
1168 16
output:
1 25 48 49 80 81 112 113 144 145 176 177 208 209 240 241 272 273 304 305 336 337 368 369 400 401 432 433 464 465 496 497 528 529 560 561 592 593 624 625 656 657 688 689 720 721 752 753 784 785 816 817 848 849 880 881 912 913 944 945 976 977 1008 1009 1040 1041 1072 1073 1104 1105 1136 1137 1168 2 2...
result:
ok answer is correct
Test #26:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
2104 526
output:
1 1052 1053 2104 2 1051 1054 2103 3 1050 1055 2102 4 1049 1056 2101 5 1048 1057 2100 6 1047 1058 2099 7 1046 1059 2098 8 1045 1060 2097 9 1044 1061 2096 10 1043 1062 2095 11 1042 1063 2094 12 1041 1064 2093 13 1040 1065 2092 14 1039 1066 2091 15 1038 1067 2090 16 1037 1068 2089 17 10...
result:
ok answer is correct
Test #27:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
3562 274
output:
1 412 822 823 1370 1371 1918 1919 2466 2467 3014 3015 3562 2 413 820 824 1369 1372 1917 1920 2465 2468 3013 3016 3561 3 414 818 825 1368 1373 1916 1921 2464 2469 3012 3017 3560 4 415 816 826 1367 1374 1915 1922 2463 2470 3011 3018 3559 5 416 814 827 1366 1375 1914 1923 2462 2471 3010 3019 3558 ...
result:
ok answer is correct
Test #28:
score: 0
Accepted
time: 1ms
memory: 3700kb
input:
6528 1632
output:
1 3264 3265 6528 2 3263 3266 6527 3 3262 3267 6526 4 3261 3268 6525 5 3260 3269 6524 6 3259 3270 6523 7 3258 3271 6522 8 3257 3272 6521 9 3256 3273 6520 10 3255 3274 6519 11 3254 3275 6518 12 3253 3276 6517 13 3252 3277 6516 14 3251 3278 6515 15 3250 3279 6514 16 3249 3280 6513 17 32...
result:
ok answer is correct
Test #29:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
10395 165
output:
1 248 495 496 825 826 1155 1156 1485 1486 1815 1816 2145 2146 2475 2476 2805 2806 3135 3136 3465 3466 3795 3796 4125 4126 4455 4456 4785 4786 5115 5116 5445 5446 5775 5776 6105 6106 6435 6436 6765 6766 7095 7096 7425 7426 7755 7756 8085 8086 8415 8416 8745 8746 9075 9076 9405 9406 9735 9736 10065 10...
result:
ok answer is correct
Test #30:
score: 0
Accepted
time: 1ms
memory: 3684kb
input:
16820 10
output:
1 20 21 40 41 60 61 80 81 100 101 120 121 140 141 160 161 180 181 200 201 220 221 240 241 260 261 280 281 300 301 320 321 340 341 360 361 380 381 400 401 420 421 440 441 460 461 480 481 500 501 520 521 540 541 560 561 580 581 600 601 620 621 640 641 660 661 680 681 700 701 720 721 740 741 760 761 78...
result:
ok answer is correct
Test #31:
score: 0
Accepted
time: 2ms
memory: 3880kb
input:
31638 10546
output:
1 15820 31638 2 15821 31636 3 15822 31634 4 15823 31632 5 15824 31630 6 15825 31628 7 15826 31626 8 15827 31624 9 15828 31622 10 15829 31620 11 15830 31618 12 15831 31616 13 15832 31614 14 15833 31612 15 15834 31610 16 15835 31608 17 15836 31606 18 15837 31604 19 15838 31602 20 15...
result:
ok answer is correct
Test #32:
score: 0
Accepted
time: 3ms
memory: 3764kb
input:
61368 12
output:
1 24 25 48 49 72 73 96 97 120 121 144 145 168 169 192 193 216 217 240 241 264 265 288 289 312 313 336 337 360 361 384 385 408 409 432 433 456 457 480 481 504 505 528 529 552 553 576 577 600 601 624 625 648 649 672 673 696 697 720 721 744 745 768 769 792 793 816 817 840 841 864 865 888 889 912 913 93...
result:
ok answer is correct
Test #33:
score: 0
Accepted
time: 4ms
memory: 3932kb
input:
100000 160
output:
1 241 480 481 800 801 1120 1121 1440 1441 1760 1761 2080 2081 2400 2401 2720 2721 3040 3041 3360 3361 3680 3681 4000 4001 4320 4321 4640 4641 4960 4961 5280 5281 5600 5601 5920 5921 6240 6241 6560 6561 6880 6881 7200 7201 7520 7521 7840 7841 8160 8161 8480 8481 8800 8801 9120 9121 9440 9441 9760 976...
result:
ok answer is correct
Test #34:
score: 0
Accepted
time: 4ms
memory: 8684kb
input:
99991 99991
output:
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 7...
result:
ok answer is correct
Test #35:
score: 0
Accepted
time: 4ms
memory: 3928kb
input:
99989 1
output:
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 102 ...
result:
ok answer is correct
Test #36:
score: 0
Accepted
time: 8ms
memory: 8612kb
input:
99971 99971
output:
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 7...
result:
ok answer is correct
Test #37:
score: 0
Accepted
time: 0ms
memory: 3828kb
input:
99961 1
output:
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 102 ...
result:
ok answer is correct
Test #38:
score: 0
Accepted
time: 8ms
memory: 8616kb
input:
99929 99929
output:
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 7...
result:
ok answer is correct
Test #39:
score: 0
Accepted
time: 4ms
memory: 3984kb
input:
96728 226
output:
1 452 453 904 905 1356 1357 1808 1809 2260 2261 2712 2713 3164 3165 3616 3617 4068 4069 4520 4521 4972 4973 5424 5425 5876 5877 6328 6329 6780 6781 7232 7233 7684 7685 8136 8137 8588 8589 9040 9041 9492 9493 9944 9945 10396 10397 10848 10849 11300 11301 11752 11753 12204 12205 12656 12657 13108 1310...
result:
ok answer is correct
Test #40:
score: 0
Accepted
time: 4ms
memory: 3964kb
input:
95742 243
output:
1 486 487 972 973 1458 1459 1944 1945 2430 2431 2916 2917 3402 3403 3888 3889 4374 4375 4860 4861 5346 5347 5832 5833 6318 6319 6804 6805 7290 7291 7776 7777 8262 8263 8748 8749 9234 9235 9720 9721 10206 10207 10692 10693 11178 11179 11664 11665 12150 12151 12636 12637 13122 13123 13608 13609 14094 ...
result:
ok answer is correct
Test #41:
score: 0
Accepted
time: 4ms
memory: 3732kb
input:
93737 49
output:
1 74 147 148 245 246 343 344 441 442 539 540 637 638 735 736 833 834 931 932 1029 1030 1127 1128 1225 1226 1323 1324 1421 1422 1519 1520 1617 1618 1715 1716 1813 1814 1911 1912 2009 2010 2107 2108 2205 2206 2303 2304 2401 2402 2499 2500 2597 2598 2695 2696 2793 2794 2891 2892 2989 2990 3087 3088 318...
result:
ok answer is correct
Test #42:
score: 0
Accepted
time: 4ms
memory: 3748kb
input:
94528 224
output:
1 448 449 896 897 1344 1345 1792 1793 2240 2241 2688 2689 3136 3137 3584 3585 4032 4033 4480 4481 4928 4929 5376 5377 5824 5825 6272 6273 6720 6721 7168 7169 7616 7617 8064 8065 8512 8513 8960 8961 9408 9409 9856 9857 10304 10305 10752 10753 11200 11201 11648 11649 12096 12097 12544 12545 12992 1299...
result:
ok answer is correct
Test #43:
score: 0
Accepted
time: 0ms
memory: 4020kb
input:
93284 4
output:
1 7 12 13 20 21 28 29 36 37 44 45 52 53 60 61 68 69 76 77 84 85 92 93 100 101 108 109 116 117 124 125 132 133 140 141 148 149 156 157 164 165 172 173 180 181 188 189 196 197 204 205 212 213 220 221 228 229 236 237 244 245 252 253 260 261 268 269 276 277 284 285 292 293 300 301 308 309 316 317 324 32...
result:
ok answer is correct
Test #44:
score: 0
Accepted
time: 4ms
memory: 3716kb
input:
93784 152
output:
1 229 456 457 760 761 1064 1065 1368 1369 1672 1673 1976 1977 2280 2281 2584 2585 2888 2889 3192 3193 3496 3497 3800 3801 4104 4105 4408 4409 4712 4713 5016 5017 5320 5321 5624 5625 5928 5929 6232 6233 6536 6537 6840 6841 7144 7145 7448 7449 7752 7753 8056 8057 8360 8361 8664 8665 8968 8969 9272 927...
result:
ok answer is correct
Test #45:
score: 0
Accepted
time: 4ms
memory: 3744kb
input:
98879 101
output:
1 152 303 304 505 506 707 708 909 910 1111 1112 1313 1314 1515 1516 1717 1718 1919 1920 2121 2122 2323 2324 2525 2526 2727 2728 2929 2930 3131 3132 3333 3334 3535 3536 3737 3738 3939 3940 4141 4142 4343 4344 4545 4546 4747 4748 4949 4950 5151 5152 5353 5354 5555 5556 5757 5758 5959 5960 6161 6162 63...
result:
ok answer is correct
Test #46:
score: 0
Accepted
time: 4ms
memory: 3840kb
input:
100000 1
output:
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 102 ...
result:
ok answer is correct
Test #47:
score: 0
Accepted
time: 5ms
memory: 4088kb
input:
99910 9991
output:
1 19982 19983 39964 39965 59946 59947 79928 79929 99910 2 19981 19984 39963 39966 59945 59948 79927 79930 99909 3 19980 19985 39962 39967 59944 59949 79926 79931 99908 4 19979 19986 39961 39968 59943 59950 79925 79932 99907 5 19978 19987 39960 39969 59942 59951 79924 79933 99906 6 19977 19988 3...
result:
ok answer is correct
Test #48:
score: 0
Accepted
time: 6ms
memory: 5984kb
input:
99906 49953
output:
1 99906 2 99905 3 99904 4 99903 5 99902 6 99901 7 99900 8 99899 9 99898 10 99897 11 99896 12 99895 13 99894 14 99893 15 99892 16 99891 17 99890 18 99889 19 99888 20 99887 21 99886 22 99885 23 99884 24 99883 25 99882 26 99881 27 99880 28 99879 29 99878 30 99877 31 99876 ...
result:
ok answer is correct
Test #49:
score: 0
Accepted
time: 2ms
memory: 4088kb
input:
99942 16657
output:
1 33314 33315 66628 66629 99942 2 33313 33316 66627 66630 99941 3 33312 33317 66626 66631 99940 4 33311 33318 66625 66632 99939 5 33310 33319 66624 66633 99938 6 33309 33320 66623 66634 99937 7 33308 33321 66622 66635 99936 8 33307 33322 66621 66636 99935 9 33306 33323 66620 66637 99934 10 ...
result:
ok answer is correct
Test #50:
score: 0
Accepted
time: 4ms
memory: 4108kb
input:
99968 6248
output:
1 12496 12497 24992 24993 37488 37489 49984 49985 62480 62481 74976 74977 87472 87473 99968 2 12495 12498 24991 24994 37487 37490 49983 49986 62479 62482 74975 74978 87471 87474 99967 3 12494 12499 24990 24995 37486 37491 49982 49987 62478 62483 74974 74979 87470 87475 99966 4 12493 12500 24989 2...
result:
ok answer is correct
Test #51:
score: 0
Accepted
time: 5ms
memory: 4020kb
input:
99990 9999
output:
1 19998 19999 39996 39997 59994 59995 79992 79993 99990 2 19997 20000 39995 39998 59993 59996 79991 79994 99989 3 19996 20001 39994 39999 59992 59997 79990 79995 99988 4 19995 20002 39993 40000 59991 59998 79989 79996 99987 5 19994 20003 39992 40001 59990 59999 79988 79997 99986 6 19993 20004 3...
result:
ok answer is correct
Test #52:
score: 0
Accepted
time: 4ms
memory: 3696kb
input:
99960 2940
output:
1 5880 5881 11760 11761 17640 17641 23520 23521 29400 29401 35280 35281 41160 41161 47040 47041 52920 52921 58800 58801 64680 64681 70560 70561 76440 76441 82320 82321 88200 88201 94080 94081 99960 2 5879 5882 11759 11762 17639 17642 23519 23522 29399 29402 35279 35282 41159 41162 47039 47042 52919...
result:
ok answer is correct
Test #53:
score: 0
Accepted
time: 5ms
memory: 4296kb
input:
99972 8331
output:
1 16662 16663 33324 33325 49986 49987 66648 66649 83310 83311 99972 2 16661 16664 33323 33326 49985 49988 66647 66650 83309 83312 99971 3 16660 16665 33322 33327 49984 49989 66646 66651 83308 83313 99970 4 16659 16666 33321 33328 49983 49990 66645 66652 83307 83314 99969 5 16658 16667 33320 3332...
result:
ok answer is correct
Test #54:
score: 0
Accepted
time: 2ms
memory: 3772kb
input:
99958 2438
output:
1 3658 7314 7315 12190 12191 17066 17067 21942 21943 26818 26819 31694 31695 36570 36571 41446 41447 46322 46323 51198 51199 56074 56075 60950 60951 65826 65827 70702 70703 75578 75579 80454 80455 85330 85331 90206 90207 95082 95083 99958 2 3659 7312 7316 12189 12192 17065 17068 21941 21944 26817 2...
result:
ok answer is correct
Test #55:
score: 0
Accepted
time: 3ms
memory: 6104kb
input:
99938 49969
output:
1 99938 2 99937 3 99936 4 99935 5 99934 6 99933 7 99932 8 99931 9 99930 10 99929 11 99928 12 99927 13 99926 14 99925 15 99924 16 99923 17 99922 18 99921 19 99920 20 99919 21 99918 22 99917 23 99916 24 99915 25 99914 26 99913 27 99912 28 99911 29 99910 30 99909 31 99908 ...
result:
ok answer is correct
Test #56:
score: 0
Accepted
time: 4ms
memory: 3696kb
input:
99960 2940
output:
1 5880 5881 11760 11761 17640 17641 23520 23521 29400 29401 35280 35281 41160 41161 47040 47041 52920 52921 58800 58801 64680 64681 70560 70561 76440 76441 82320 82321 88200 88201 94080 94081 99960 2 5879 5882 11759 11762 17639 17642 23519 23522 29399 29402 35279 35282 41159 41162 47039 47042 52919...
result:
ok answer is correct
Test #57:
score: 0
Accepted
time: 5ms
memory: 4636kb
input:
100000 25000
output:
1 50000 50001 100000 2 49999 50002 99999 3 49998 50003 99998 4 49997 50004 99997 5 49996 50005 99996 6 49995 50006 99995 7 49994 50007 99994 8 49993 50008 99993 9 49992 50009 99992 10 49991 50010 99991 11 49990 50011 99990 12 49989 50012 99989 13 49988 50013 99988 14 49987 50014 99987 ...
result:
ok answer is correct
Test #58:
score: 0
Accepted
time: 5ms
memory: 4244kb
input:
100000 10000
output:
1 20000 20001 40000 40001 60000 60001 80000 80001 100000 2 19999 20002 39999 40002 59999 60002 79999 80002 99999 3 19998 20003 39998 40003 59998 60003 79998 80003 99998 4 19997 20004 39997 40004 59997 60004 79997 80004 99997 5 19996 20005 39996 40005 59996 60005 79996 80005 99996 6 19995 20006 ...
result:
ok answer is correct
Test #59:
score: 0
Accepted
time: 4ms
memory: 3720kb
input:
100000 1250
output:
1 2500 2501 5000 5001 7500 7501 10000 10001 12500 12501 15000 15001 17500 17501 20000 20001 22500 22501 25000 25001 27500 27501 30000 30001 32500 32501 35000 35001 37500 37501 40000 40001 42500 42501 45000 45001 47500 47501 50000 50001 52500 52501 55000 55001 57500 57501 60000 60001 62500 62501 6500...
result:
ok answer is correct
Test #60:
score: 0
Accepted
time: 4ms
memory: 4020kb
input:
100000 6250
output:
1 12500 12501 25000 25001 37500 37501 50000 50001 62500 62501 75000 75001 87500 87501 100000 2 12499 12502 24999 25002 37499 37502 49999 50002 62499 62502 74999 75002 87499 87502 99999 3 12498 12503 24998 25003 37498 37503 49998 50003 62498 62503 74998 75003 87498 87503 99998 4 12497 12504 24997 ...
result:
ok answer is correct
Test #61:
score: 0
Accepted
time: 4ms
memory: 4024kb
input:
100000 5000
output:
1 10000 10001 20000 20001 30000 30001 40000 40001 50000 50001 60000 60001 70000 70001 80000 80001 90000 90001 100000 2 9999 10002 19999 20002 29999 30002 39999 40002 49999 50002 59999 60002 69999 70002 79999 80002 89999 90002 99999 3 9998 10003 19998 20003 29998 30003 39998 40003 49998 50003 59998...
result:
ok answer is correct