QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#632853#7722. Group the Numbersmemset0AC ✓9ms9176kbC++231.5kb2024-10-12 14:04:172024-10-12 14:04:18

Judging History

你现在查看的是最新测评结果

  • [2024-10-12 14:04:18]
  • 评测
  • 测评结果:AC
  • 用时:9ms
  • 内存:9176kb
  • [2024-10-12 14:04:17]
  • 提交

answer

#include <bits/stdc++.h>
#define sz(x) ((int)(x).size())
#define all(x) begin(x), end(x)
#ifdef memset0
#define log(...) fprintf(stderr, __VA_ARGS__)
#else
#define endl '\n'
#define log(...) (void(0))
#endif
using namespace std;
using ll = long long;
using lf = long double;
using ull = unsigned long long;

const int N = 100011;
vector<int> a[N];
void solve(int n, int m) {
  if (m == 1) {
    for (int i = 1; i <= n; ++i) a[i].emplace_back(i);
    return;
  }
  if (m == 2) {
    for (int i = 1; i <= n; ++i) a[i].emplace_back(i), a[i].emplace_back(2 * n - i + 1);
    return;
  }
  int s = (n + 1) / 2, r = n - s;
  for (int i = 1; i * 2 - 1 <= n; ++i) a[i].emplace_back(2 * i - 1);
  for (int i = 1; i * 2 <= n; ++i) a[s + i].emplace_back(2 * i);
  for (int i = 1; i <= s; ++i) a[i].emplace_back(n + (s - i) + 1);
  for (int i = 1; i <= r; ++i) a[s + i].emplace_back(2 * n - i + 1);

  for (int i = 1; i <= n; ++i) a[i].emplace_back(3 * n - i + 1);
}
int main() {
#ifdef memset0
  freopen("G.in", "r", stdin);
#endif
  cin.tie(0)->sync_with_stdio(0);
  int n, k;
  cin >> n >> k;
  if (n / k > 3) {
    int w = n / k;
    while (w > 3) w -= 2;
    solve(k, w);
    int now = k * w;
    while (now < n) {
      for (int i = 1; i <= k; ++i) a[i].emplace_back(++now);
      for (int i = k; i; --i) a[i].emplace_back(++now);
    }
  }
  solve(k, n / k);
  for (int i = 1; i <= k; ++i) {
    for (int j = 0; j < n / k; ++j)
      if (!j) cout << a[i][j];
      else
        cout << " " << a[i][j];
    cout << '\n';
  }
  return 0;
}

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3716kb

input:

6 2

output:

1 3 6
2 4 5

result:

ok answer is correct

Test #2:

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

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

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

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

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

input:

1 1

output:

1

result:

ok answer is correct

Test #7:

score: 0
Accepted
time: 1ms
memory: 3668kb

input:

2 1

output:

1 2

result:

ok answer is correct

Test #8:

score: 0
Accepted
time: 1ms
memory: 3712kb

input:

3 3

output:

1
2
3

result:

ok answer is correct

Test #9:

score: 0
Accepted
time: 1ms
memory: 3660kb

input:

4 2

output:

1 4
2 3

result:

ok answer is correct

Test #10:

score: 0
Accepted
time: 1ms
memory: 3668kb

input:

6 2

output:

1 3 6
2 4 5

result:

ok answer is correct

Test #11:

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

input:

8 4

output:

1 8
2 7
3 6
4 5

result:

ok answer is correct

Test #12:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

9 3

output:

1 5 9
3 4 8
2 6 7

result:

ok answer is correct

Test #13:

score: 0
Accepted
time: 1ms
memory: 3676kb

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

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

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: 3644kb

input:

15 5

output:

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

result:

ok answer is correct

Test #17:

score: 0
Accepted
time: 1ms
memory: 3668kb

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

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

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

input:

70 14

output:

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

result:

ok answer is correct

Test #21:

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

input:

115 23

output:

1 35 69 70 115
3 34 68 71 114
5 33 67 72 113
7 32 66 73 112
9 31 65 74 111
11 30 64 75 110
13 29 63 76 109
15 28 62 77 108
17 27 61 78 107
19 26 60 79 106
21 25 59 80 105
23 24 58 81 104
2 46 57 82 103
4 45 56 83 102
6 44 55 84 101
8 43 54 85 100
10 42 53 86 99
12 41 52 87 98
14 40 51 88 97
16 39 50...

result:

ok answer is correct

Test #22:

score: 0
Accepted
time: 1ms
memory: 3724kb

input:

198 66

output:

1 99 198
3 98 197
5 97 196
7 96 195
9 95 194
11 94 193
13 93 192
15 92 191
17 91 190
19 90 189
21 89 188
23 88 187
25 87 186
27 86 185
29 85 184
31 84 183
33 83 182
35 82 181
37 81 180
39 80 179
41 79 178
43 78 177
45 77 176
47 76 175
49 75 174
51 74 173
53 73 172
55 72 171
57 71 170
59 70 169
61 69...

result:

ok answer is correct

Test #23:

score: 0
Accepted
time: 1ms
memory: 3676kb

input:

350 50

output:

1 75 150 151 250 251 350
3 74 149 152 249 252 349
5 73 148 153 248 253 348
7 72 147 154 247 254 347
9 71 146 155 246 255 346
11 70 145 156 245 256 345
13 69 144 157 244 257 344
15 68 143 158 243 258 343
17 67 142 159 242 259 342
19 66 141 160 241 260 341
21 65 140 161 240 261 340
23 64 139 162 239 2...

result:

ok answer is correct

Test #24:

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

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 307 346 633
21 306 34...

result:

ok answer is correct

Test #25:

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

input:

1168 16

output:

1 24 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
3 23...

result:

ok answer is correct

Test #26:

score: 0
Accepted
time: 1ms
memory: 3656kb

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 1036 1069 2088
18 ...

result:

ok answer is correct

Test #27:

score: 0
Accepted
time: 1ms
memory: 3648kb

input:

3562 274

output:

1 411 822 823 1370 1371 1918 1919 2466 2467 3014 3015 3562
3 410 821 824 1369 1372 1917 1920 2465 2468 3013 3016 3561
5 409 820 825 1368 1373 1916 1921 2464 2469 3012 3017 3560
7 408 819 826 1367 1374 1915 1922 2463 2470 3011 3018 3559
9 407 818 827 1366 1375 1914 1923 2462 2471 3010 3019 3558
11 40...

result:

ok answer is correct

Test #28:

score: 0
Accepted
time: 1ms
memory: 3804kb

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 3248 3281 6512
18 ...

result:

ok answer is correct

Test #29:

score: 0
Accepted
time: 1ms
memory: 3696kb

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: 3764kb

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

input:

31638 10546

output:

1 15819 31638
3 15818 31637
5 15817 31636
7 15816 31635
9 15815 31634
11 15814 31633
13 15813 31632
15 15812 31631
17 15811 31630
19 15810 31629
21 15809 31628
23 15808 31627
25 15807 31626
27 15806 31625
29 15805 31624
31 15804 31623
33 15803 31622
35 15802 31621
37 15801 31620
39 15800 31619
41 15...

result:

ok answer is correct

Test #32:

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

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

input:

100000 160

output:

1 240 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: 9ms
memory: 9108kb

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

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

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

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

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

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

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

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

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

input:

93284 4

output:

1 6 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: 5ms
memory: 3996kb

input:

93784 152

output:

1 228 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: 5ms
memory: 3788kb

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

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

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

result:

ok answer is correct

Test #48:

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

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
32 99875
33 99874
34 99873
35 ...

result:

ok answer is correct

Test #49:

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

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 33305 333...

result:

ok answer is correct

Test #50:

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

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

result:

ok answer is correct

Test #51:

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

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

result:

ok answer is correct

Test #52:

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

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

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 33329 49...

result:

ok answer is correct

Test #54:

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

input:

99958 2438

output:

1 3657 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
3 3656 7313 7316 12189 12192 17065 17068 21941 21944 26817 26...

result:

ok answer is correct

Test #55:

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

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
32 99907
33 99906
34 99905
35 ...

result:

ok answer is correct

Test #56:

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

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

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
15 49986 50015...

result:

ok answer is correct

Test #58:

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

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

result:

ok answer is correct

Test #59:

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

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

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

result:

ok answer is correct

Test #61:

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

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

result:

ok answer is correct