QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#627952 | #7722. Group the Numbers | Afterlife# | AC ✓ | 8ms | 8808kb | C++20 | 1.5kb | 2024-10-10 17:49:05 | 2024-10-10 17:49:06 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main() {
int n , k ; cin >> n >> k;
int m = n / k;
n = k;
vector<vector<int> > v(n + 1 , vector<int>(m + 1)) ;
if(n == 1) {
for(int i = 1;i <= m;i++) cout << i <<' ' ;
cout << '\n' ; return 0;
}
if(m == 1) {
for(int i = 1;i <= n;i++) cout << i << '\n' ;
return 0;
}
if(m% 2 == 0) {
int l = 1 , r = n * m;
for(int i = 1;i <= m;i += 2) {
for(int j = 1;j <= n;j++) v[j][i] = l++ ;
for(int j = 1;j <= n;j++) v[j][i + 1] = r--;
}
}
else {
int l = 1 , r = n * m;
for(int i = 1 ;i <= m - 3 ; i += 2) {
for(int j = 1;j <= n;j++) v[j][i] = l++ ;
for(int j = 1;j <= n;j++) v[j][i + 1] = r--;
}
/// row m - 2
l--;
for(int i = 1 ; i <= n ; i++) {
v[i][m - 2] = l + i;
}
/// row m - 1
for(int i = 1 ; i <= (n + 1) / 2 ; i++) {
v[i][m - 1] = l + (2*n - (i-1) * 2) ;
}
for(int i = (n + 1) / 2 + 1 ; i <= n;i++) {
v[i][m - 1] = l + (2*n-1 - (i-(n+1)/2-1) * 2) ;
}
/// row m
int cnt = 0 ,ff = 1;
for(int i = (n + 1) / 2 + 1; ff || (i != (n + 1)/2 + 1); i = i % n + 1) {
cnt++ ; ff = 0;
v[i][m] = l + n*2 + cnt ;
}
}
for(int i = 1;i <= n;i++) {
for(int j = 1;j <= m ; j++) cout << v[i][j] <<' ' ;
cout << '\n';
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3584kb
input:
6 2
output:
1 4 6 2 3 5
result:
ok answer is correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
12 3
output:
1 12 4 9 2 11 5 8 3 10 6 7
result:
ok answer is correct
Test #3:
score: 0
Accepted
time: 8ms
memory: 8660kb
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 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 #4:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
100000 2
output:
1 100000 3 99998 5 99996 7 99994 9 99992 11 99990 13 99988 15 99986 17 99984 19 99982 21 99980 23 99978 25 99976 27 99974 29 99972 31 99970 33 99968 35 99966 37 99964 39 99962 41 99960 43 99958 45 99956 47 99954 49 99952 51 99950 53 99948 55 99946 57 99944 59 99942 61 99940 63 99938 65 99936 67 9993...
result:
ok answer is correct
Test #5:
score: 0
Accepted
time: 5ms
memory: 4244kb
input:
100000 500
output:
1 100000 501 99500 1001 99000 1501 98500 2001 98000 2501 97500 3001 97000 3501 96500 4001 96000 4501 95500 5001 95000 5501 94500 6001 94000 6501 93500 7001 93000 7501 92500 8001 92000 8501 91500 9001 91000 9501 90500 10001 90000 10501 89500 11001 89000 11501 88500 12001 88000 12501 87500 13001 87000...
result:
ok answer is correct
Test #6:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
1 1
output:
1
result:
ok answer is correct
Test #7:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
2 1
output:
1 2
result:
ok answer is correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
3 3
output:
1 2 3
result:
ok answer is correct
Test #9:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
4 2
output:
1 4 2 3
result:
ok answer is correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
6 2
output:
1 4 6 2 3 5
result:
ok answer is correct
Test #11:
score: 0
Accepted
time: 0ms
memory: 3560kb
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: 3604kb
input:
9 3
output:
1 6 8 2 4 9 3 5 7
result:
ok answer is correct
Test #13:
score: 0
Accepted
time: 0ms
memory: 3472kb
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: 3780kb
input:
12 3
output:
1 12 4 9 2 11 5 8 3 10 6 7
result:
ok answer is correct
Test #15:
score: 0
Accepted
time: 0ms
memory: 3788kb
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: 3784kb
input:
15 5
output:
1 10 13 2 8 14 3 6 15 4 9 11 5 7 12
result:
ok answer is correct
Test #17:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
16 2
output:
1 16 3 14 5 12 7 10 2 15 4 13 6 11 8 9
result:
ok answer is correct
Test #18:
score: 0
Accepted
time: 0ms
memory: 3564kb
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: 3520kb
input:
70 14
output:
1 70 15 42 50 2 69 16 40 51 3 68 17 38 52 4 67 18 36 53 5 66 19 34 54 6 65 20 32 55 7 64 21 30 56 8 63 22 41 43 9 62 23 39 44 10 61 24 37 45 11 60 25 35 46 12 59 26 33 47 13 58 27 31 48 14 57 28 29 49
result:
ok answer is correct
Test #21:
score: 0
Accepted
time: 0ms
memory: 3480kb
input:
115 23
output:
1 115 24 69 81 2 114 25 67 82 3 113 26 65 83 4 112 27 63 84 5 111 28 61 85 6 110 29 59 86 7 109 30 57 87 8 108 31 55 88 9 107 32 53 89 10 106 33 51 90 11 105 34 49 91 12 104 35 47 92 13 103 36 68 70 14 102 37 66 71 15 101 38 64 72 16 100 39 62 73 17 99 40 60 74 18 98 41 58 75 19 97...
result:
ok answer is correct
Test #22:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
198 66
output:
1 132 166 2 130 167 3 128 168 4 126 169 5 124 170 6 122 171 7 120 172 8 118 173 9 116 174 10 114 175 11 112 176 12 110 177 13 108 178 14 106 179 15 104 180 16 102 181 17 100 182 18 98 183 19 96 184 20 94 185 21 92 186 22 90 187 23 88 188 24 86 189 25 84 190 26 82 191 27 80 ...
result:
ok answer is correct
Test #23:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
350 50
output:
1 350 51 300 101 200 226 2 349 52 299 102 198 227 3 348 53 298 103 196 228 4 347 54 297 104 194 229 5 346 55 296 105 192 230 6 345 56 295 106 190 231 7 344 57 294 107 188 232 8 343 58 293 108 186 233 9 342 59 292 109 184 234 10 341 60 291 110 182 235 11 340 61 290 111 180 236 12 339 62 28...
result:
ok answer is correct
Test #24:
score: 0
Accepted
time: 0ms
memory: 3540kb
input:
652 163
output:
1 652 164 489 2 651 165 488 3 650 166 487 4 649 167 486 5 648 168 485 6 647 169 484 7 646 170 483 8 645 171 482 9 644 172 481 10 643 173 480 11 642 174 479 12 641 175 478 13 640 176 477 14 639 177 476 15 638 178 475 16 637 179 474 17 636 180 473 18 635 181 472 19 634 182 471 20 63...
result:
ok answer is correct
Test #25:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
1168 16
output:
1 1168 17 1152 33 1136 49 1120 65 1104 81 1088 97 1072 113 1056 129 1040 145 1024 161 1008 177 992 193 976 209 960 225 944 241 928 257 912 273 896 289 880 305 864 321 848 337 832 353 816 369 800 385 784 401 768 417 752 433 736 449 720 465 704 481 688 497 672 513 656 529 640 545 624 561 592 601 2 11...
result:
ok answer is correct
Test #26:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
2104 526
output:
1 2104 527 1578 2 2103 528 1577 3 2102 529 1576 4 2101 530 1575 5 2100 531 1574 6 2099 532 1573 7 2098 533 1572 8 2097 534 1571 9 2096 535 1570 10 2095 536 1569 11 2094 537 1568 12 2093 538 1567 13 2092 539 1566 14 2091 540 1565 15 2090 541 1564 16 2089 542 1563 17 2088 543 1562 18 ...
result:
ok answer is correct
Test #27:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
3562 274
output:
1 3562 275 3288 549 3014 823 2740 1097 2466 1371 1918 2056 2 3561 276 3287 550 3013 824 2739 1098 2465 1372 1916 2057 3 3560 277 3286 551 3012 825 2738 1099 2464 1373 1914 2058 4 3559 278 3285 552 3011 826 2737 1100 2463 1374 1912 2059 5 3558 279 3284 553 3010 827 2736 1101 2462 1375 1910 2060 ...
result:
ok answer is correct
Test #28:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
6528 1632
output:
1 6528 1633 4896 2 6527 1634 4895 3 6526 1635 4894 4 6525 1636 4893 5 6524 1637 4892 6 6523 1638 4891 7 6522 1639 4890 8 6521 1640 4889 9 6520 1641 4888 10 6519 1642 4887 11 6518 1643 4886 12 6517 1644 4885 13 6516 1645 4884 14 6515 1646 4883 15 6514 1647 4882 16 6513 1648 4881 17 65...
result:
ok answer is correct
Test #29:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
10395 165
output:
1 10395 166 10230 331 10065 496 9900 661 9735 826 9570 991 9405 1156 9240 1321 9075 1486 8910 1651 8745 1816 8580 1981 8415 2146 8250 2311 8085 2476 7920 2641 7755 2806 7590 2971 7425 3136 7260 3301 7095 3466 6930 3631 6765 3796 6600 3961 6435 4126 6270 4291 6105 4456 5940 4621 5775 4786 5610 4951 5...
result:
ok answer is correct
Test #30:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
16820 10
output:
1 16820 11 16810 21 16800 31 16790 41 16780 51 16770 61 16760 71 16750 81 16740 91 16730 101 16720 111 16710 121 16700 131 16690 141 16680 151 16670 161 16660 171 16650 181 16640 191 16630 201 16620 211 16610 221 16600 231 16590 241 16580 251 16570 261 16560 271 16550 281 16540 291 16530 301 16520 3...
result:
ok answer is correct
Test #31:
score: 0
Accepted
time: 0ms
memory: 3952kb
input:
31638 10546
output:
1 21092 26366 2 21090 26367 3 21088 26368 4 21086 26369 5 21084 26370 6 21082 26371 7 21080 26372 8 21078 26373 9 21076 26374 10 21074 26375 11 21072 26376 12 21070 26377 13 21068 26378 14 21066 26379 15 21064 26380 16 21062 26381 17 21060 26382 18 21058 26383 19 21056 26384 20 21...
result:
ok answer is correct
Test #32:
score: 0
Accepted
time: 3ms
memory: 3680kb
input:
61368 12
output:
1 61368 13 61356 25 61344 37 61332 49 61320 61 61308 73 61296 85 61284 97 61272 109 61260 121 61248 133 61236 145 61224 157 61212 169 61200 181 61188 193 61176 205 61164 217 61152 229 61140 241 61128 253 61116 265 61104 277 61092 289 61080 301 61068 313 61056 325 61044 337 61032 349 61020 361 61008 ...
result:
ok answer is correct
Test #33:
score: 0
Accepted
time: 2ms
memory: 4224kb
input:
100000 160
output:
1 100000 161 99840 321 99680 481 99520 641 99360 801 99200 961 99040 1121 98880 1281 98720 1441 98560 1601 98400 1761 98240 1921 98080 2081 97920 2241 97760 2401 97600 2561 97440 2721 97280 2881 97120 3041 96960 3201 96800 3361 96640 3521 96480 3681 96320 3841 96160 4001 96000 4161 95840 4321 95680 ...
result:
ok answer is correct
Test #34:
score: 0
Accepted
time: 8ms
memory: 8808kb
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 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 #35:
score: 0
Accepted
time: 5ms
memory: 4524kb
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: 8708kb
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 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 #37:
score: 0
Accepted
time: 5ms
memory: 4464kb
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: 8692kb
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 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 #39:
score: 0
Accepted
time: 4ms
memory: 3948kb
input:
96728 226
output:
1 96728 227 96502 453 96276 679 96050 905 95824 1131 95598 1357 95372 1583 95146 1809 94920 2035 94694 2261 94468 2487 94242 2713 94016 2939 93790 3165 93564 3391 93338 3617 93112 3843 92886 4069 92660 4295 92434 4521 92208 4747 91982 4973 91756 5199 91530 5425 91304 5651 91078 5877 90852 6103 90626...
result:
ok answer is correct
Test #40:
score: 0
Accepted
time: 4ms
memory: 4012kb
input:
95742 243
output:
1 95742 244 95499 487 95256 730 95013 973 94770 1216 94527 1459 94284 1702 94041 1945 93798 2188 93555 2431 93312 2674 93069 2917 92826 3160 92583 3403 92340 3646 92097 3889 91854 4132 91611 4375 91368 4618 91125 4861 90882 5104 90639 5347 90396 5590 90153 5833 89910 6076 89667 6319 89424 6562 89181...
result:
ok answer is correct
Test #41:
score: 0
Accepted
time: 4ms
memory: 3880kb
input:
93737 49
output:
1 93737 50 93688 99 93639 148 93590 197 93541 246 93492 295 93443 344 93394 393 93345 442 93296 491 93247 540 93198 589 93149 638 93100 687 93051 736 93002 785 92953 834 92904 883 92855 932 92806 981 92757 1030 92708 1079 92659 1128 92610 1177 92561 1226 92512 1275 92463 1324 92414 1373 92365 1422 9...
result:
ok answer is correct
Test #42:
score: 0
Accepted
time: 4ms
memory: 3984kb
input:
94528 224
output:
1 94528 225 94304 449 94080 673 93856 897 93632 1121 93408 1345 93184 1569 92960 1793 92736 2017 92512 2241 92288 2465 92064 2689 91840 2913 91616 3137 91392 3361 91168 3585 90944 3809 90720 4033 90496 4257 90272 4481 90048 4705 89824 4929 89600 5153 89376 5377 89152 5601 88928 5825 88704 6049 88480...
result:
ok answer is correct
Test #43:
score: 0
Accepted
time: 5ms
memory: 3808kb
input:
93284 4
output:
1 93284 5 93280 9 93276 13 93272 17 93268 21 93264 25 93260 29 93256 33 93252 37 93248 41 93244 45 93240 49 93236 53 93232 57 93228 61 93224 65 93220 69 93216 73 93212 77 93208 81 93204 85 93200 89 93196 93 93192 97 93188 101 93184 105 93180 109 93176 113 93172 117 93168 121 93164 125 93160 129 9315...
result:
ok answer is correct
Test #44:
score: 0
Accepted
time: 4ms
memory: 4024kb
input:
93784 152
output:
1 93784 153 93632 305 93480 457 93328 609 93176 761 93024 913 92872 1065 92720 1217 92568 1369 92416 1521 92264 1673 92112 1825 91960 1977 91808 2129 91656 2281 91504 2433 91352 2585 91200 2737 91048 2889 90896 3041 90744 3193 90592 3345 90440 3497 90288 3649 90136 3801 89984 3953 89832 4105 89680 4...
result:
ok answer is correct
Test #45:
score: 0
Accepted
time: 5ms
memory: 4184kb
input:
98879 101
output:
1 98879 102 98778 203 98677 304 98576 405 98475 506 98374 607 98273 708 98172 809 98071 910 97970 1011 97869 1112 97768 1213 97667 1314 97566 1415 97465 1516 97364 1617 97263 1718 97162 1819 97061 1920 96960 2021 96859 2122 96758 2223 96657 2324 96556 2425 96455 2526 96354 2627 96253 2728 96152 2829...
result:
ok answer is correct
Test #46:
score: 0
Accepted
time: 5ms
memory: 4452kb
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: 2ms
memory: 4216kb
input:
99910 9991
output:
1 99910 9992 89919 19983 79928 29974 69937 39965 59946 2 99909 9993 89918 19984 79927 29975 69936 39966 59945 3 99908 9994 89917 19985 79926 29976 69935 39967 59944 4 99907 9995 89916 19986 79925 29977 69934 39968 59943 5 99906 9996 89915 19987 79924 29978 69933 39969 59942 6 99905 9997 89914 1...
result:
ok answer is correct
Test #48:
score: 0
Accepted
time: 7ms
memory: 5748kb
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: 3ms
memory: 4392kb
input:
99942 16657
output:
1 99942 16658 83285 33315 66628 2 99941 16659 83284 33316 66627 3 99940 16660 83283 33317 66626 4 99939 16661 83282 33318 66625 5 99938 16662 83281 33319 66624 6 99937 16663 83280 33320 66623 7 99936 16664 83279 33321 66622 8 99935 16665 83278 33322 66621 9 99934 16666 83277 33323 66620 10 ...
result:
ok answer is correct
Test #50:
score: 0
Accepted
time: 5ms
memory: 4248kb
input:
99968 6248
output:
1 99968 6249 93720 12497 87472 18745 81224 24993 74976 31241 68728 37489 62480 43737 56232 2 99967 6250 93719 12498 87471 18746 81223 24994 74975 31242 68727 37490 62479 43738 56231 3 99966 6251 93718 12499 87470 18747 81222 24995 74974 31243 68726 37491 62478 43739 56230 4 99965 6252 93717 12500...
result:
ok answer is correct
Test #51:
score: 0
Accepted
time: 5ms
memory: 4224kb
input:
99990 9999
output:
1 99990 10000 89991 19999 79992 29998 69993 39997 59994 2 99989 10001 89990 20000 79991 29999 69992 39998 59993 3 99988 10002 89989 20001 79990 30000 69991 39999 59992 4 99987 10003 89988 20002 79989 30001 69990 40000 59991 5 99986 10004 89987 20003 79988 30002 69989 40001 59990 6 99985 10005 8...
result:
ok answer is correct
Test #52:
score: 0
Accepted
time: 5ms
memory: 4120kb
input:
99960 2940
output:
1 99960 2941 97020 5881 94080 8821 91140 11761 88200 14701 85260 17641 82320 20581 79380 23521 76440 26461 73500 29401 70560 32341 67620 35281 64680 38221 61740 41161 58800 44101 55860 47041 52920 2 99959 2942 97019 5882 94079 8822 91139 11762 88199 14702 85259 17642 82319 20582 79379 23522 76439 2...
result:
ok answer is correct
Test #53:
score: 0
Accepted
time: 0ms
memory: 4344kb
input:
99972 8331
output:
1 99972 8332 91641 16663 83310 24994 74979 33325 66648 41656 58317 2 99971 8333 91640 16664 83309 24995 74978 33326 66647 41657 58316 3 99970 8334 91639 16665 83308 24996 74977 33327 66646 41658 58315 4 99969 8335 91638 16666 83307 24997 74976 33328 66645 41659 58314 5 99968 8336 91637 16667 833...
result:
ok answer is correct
Test #54:
score: 0
Accepted
time: 5ms
memory: 4076kb
input:
99958 2438
output:
1 99958 2439 97520 4877 95082 7315 92644 9753 90206 12191 87768 14629 85330 17067 82892 19505 80454 21943 78016 24381 75578 26819 73140 29257 70702 31695 68264 34133 65826 36571 63388 39009 60950 41447 58512 43885 56074 46323 51198 52418 2 99957 2440 97519 4878 95081 7316 92643 9754 90205 12192 877...
result:
ok answer is correct
Test #55:
score: 0
Accepted
time: 3ms
memory: 5808kb
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: 2ms
memory: 4120kb
input:
99960 2940
output:
1 99960 2941 97020 5881 94080 8821 91140 11761 88200 14701 85260 17641 82320 20581 79380 23521 76440 26461 73500 29401 70560 32341 67620 35281 64680 38221 61740 41161 58800 44101 55860 47041 52920 2 99959 2942 97019 5882 94079 8822 91139 11762 88199 14702 85259 17642 82319 20582 79379 23522 76439 2...
result:
ok answer is correct
Test #57:
score: 0
Accepted
time: 3ms
memory: 4612kb
input:
100000 25000
output:
1 100000 25001 75000 2 99999 25002 74999 3 99998 25003 74998 4 99997 25004 74997 5 99996 25005 74996 6 99995 25006 74995 7 99994 25007 74994 8 99993 25008 74993 9 99992 25009 74992 10 99991 25010 74991 11 99990 25011 74990 12 99989 25012 74989 13 99988 25013 74988 14 99987 25014 74987 ...
result:
ok answer is correct
Test #58:
score: 0
Accepted
time: 5ms
memory: 4160kb
input:
100000 10000
output:
1 100000 10001 90000 20001 80000 30001 70000 40001 60000 2 99999 10002 89999 20002 79999 30002 69999 40002 59999 3 99998 10003 89998 20003 79998 30003 69998 40003 59998 4 99997 10004 89997 20004 79997 30004 69997 40004 59997 5 99996 10005 89996 20005 79996 30005 69996 40005 59996 6 99995 10006 ...
result:
ok answer is correct
Test #59:
score: 0
Accepted
time: 5ms
memory: 4024kb
input:
100000 1250
output:
1 100000 1251 98750 2501 97500 3751 96250 5001 95000 6251 93750 7501 92500 8751 91250 10001 90000 11251 88750 12501 87500 13751 86250 15001 85000 16251 83750 17501 82500 18751 81250 20001 80000 21251 78750 22501 77500 23751 76250 25001 75000 26251 73750 27501 72500 28751 71250 30001 70000 31251 6875...
result:
ok answer is correct
Test #60:
score: 0
Accepted
time: 2ms
memory: 4016kb
input:
100000 6250
output:
1 100000 6251 93750 12501 87500 18751 81250 25001 75000 31251 68750 37501 62500 43751 56250 2 99999 6252 93749 12502 87499 18752 81249 25002 74999 31252 68749 37502 62499 43752 56249 3 99998 6253 93748 12503 87498 18753 81248 25003 74998 31253 68748 37503 62498 43753 56248 4 99997 6254 93747 1250...
result:
ok answer is correct
Test #61:
score: 0
Accepted
time: 5ms
memory: 4060kb
input:
100000 5000
output:
1 100000 5001 95000 10001 90000 15001 85000 20001 80000 25001 75000 30001 70000 35001 65000 40001 60000 45001 55000 2 99999 5002 94999 10002 89999 15002 84999 20002 79999 25002 74999 30002 69999 35002 64999 40002 59999 45002 54999 3 99998 5003 94998 10003 89998 15003 84998 20003 79998 25003 74998 ...
result:
ok answer is correct