QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#85644#2055. BlackboardBeevo#AC ✓3ms3636kbC++231.5kb2023-03-07 23:59:182023-03-07 23:59:18

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-07 23:59:18]
  • 评测
  • 测评结果:AC
  • 用时:3ms
  • 内存:3636kb
  • [2023-03-07 23:59:18]
  • 提交

answer

#include <bits/stdc++.h>

#define el '\n'

typedef long long ll;
typedef long double ld;

#define Beevo ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

using namespace std;

const int N = 100 + 5;

int a[N][N];

void solveZig(int n) {
    for (int i = 0; i < n; i++) {
        for (int j = 0; j < n; j++) {
            if (i & 1)
                a[i][j] = (i + 1) * n - j;
            else
                a[i][j] = i * n + j + 1;
        }
    }
}

void solveSpiral(int n) {
    int c = 1, t = 0;
    while (c <= n * n) {
        for (int j = t; j < n - t; j++)
            a[t][j] = c++;

        for (int i = t + 1; i < n - t; i++)
            a[i][n - t - 1] = c++;

        for (int j = n - t - 2; j >= t; j--)
            a[n - t - 1][j] = c++;

        for (int i = n - t - 2; i > t; i--)
            a[i][t] = c++;

        t++;
    }
}

void testCase() {
    int n, t;
    cin >> n >> t;

    if (t <= 2)
        solveZig(n);
    else
        solveSpiral(n);

    if (t & 1) {
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++)
                cout << a[i][j] << ' ';

            cout << el;
        }
    }
    else {
        for (int i = 0; i < n; i++) {
            for (int j = 0; j < n; j++)
                cout << a[j][i] << ' ';

            cout << el;
        }
    }
}

signed main() {
    Beevo

    int t = 1;
//    cin >> t;

    while (t--)
        testCase();

    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 1

output:

1 2 3 
6 5 4 
7 8 9 

result:

ok 3 lines

Test #2:

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

input:

3 2

output:

1 6 7 
2 5 8 
3 4 9 

result:

ok 3 lines

Test #3:

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

input:

3 3

output:

1 2 3 
8 9 4 
7 6 5 

result:

ok 3 lines

Test #4:

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

input:

3 4

output:

1 8 7 
2 9 6 
3 4 5 

result:

ok 3 lines

Test #5:

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

input:

1 1

output:

1 

result:

ok single line: '1 '

Test #6:

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

input:

1 2

output:

1 

result:

ok single line: '1 '

Test #7:

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

input:

1 3

output:

1 

result:

ok single line: '1 '

Test #8:

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

input:

1 4

output:

1 

result:

ok single line: '1 '

Test #9:

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

input:

2 1

output:

1 2 
4 3 

result:

ok 2 lines

Test #10:

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

input:

2 2

output:

1 4 
2 3 

result:

ok 2 lines

Test #11:

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

input:

2 3

output:

1 2 
4 3 

result:

ok 2 lines

Test #12:

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

input:

2 4

output:

1 4 
2 3 

result:

ok 2 lines

Test #13:

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

input:

3 1

output:

1 2 3 
6 5 4 
7 8 9 

result:

ok 3 lines

Test #14:

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

input:

3 2

output:

1 6 7 
2 5 8 
3 4 9 

result:

ok 3 lines

Test #15:

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

input:

3 3

output:

1 2 3 
8 9 4 
7 6 5 

result:

ok 3 lines

Test #16:

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

input:

3 4

output:

1 8 7 
2 9 6 
3 4 5 

result:

ok 3 lines

Test #17:

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

input:

4 1

output:

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

result:

ok 4 lines

Test #18:

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

input:

4 2

output:

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

result:

ok 4 lines

Test #19:

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

input:

4 3

output:

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

result:

ok 4 lines

Test #20:

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

input:

4 4

output:

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

result:

ok 4 lines

Test #21:

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

input:

5 1

output:

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

result:

ok 5 lines

Test #22:

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

input:

5 2

output:

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

result:

ok 5 lines

Test #23:

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

input:

5 3

output:

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

result:

ok 5 lines

Test #24:

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

input:

5 4

output:

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

result:

ok 5 lines

Test #25:

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

input:

6 1

output:

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

result:

ok 6 lines

Test #26:

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

input:

6 2

output:

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

result:

ok 6 lines

Test #27:

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

input:

6 3

output:

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

result:

ok 6 lines

Test #28:

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

input:

6 4

output:

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

result:

ok 6 lines

Test #29:

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

input:

7 1

output:

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

result:

ok 7 lines

Test #30:

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

input:

7 2

output:

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

result:

ok 7 lines

Test #31:

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

input:

7 3

output:

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

result:

ok 7 lines

Test #32:

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

input:

7 4

output:

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

result:

ok 7 lines

Test #33:

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

input:

8 1

output:

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

result:

ok 8 lines

Test #34:

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

input:

8 2

output:

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

result:

ok 8 lines

Test #35:

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

input:

8 3

output:

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

result:

ok 8 lines

Test #36:

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

input:

8 4

output:

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

result:

ok 8 lines

Test #37:

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

input:

9 1

output:

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

result:

ok 9 lines

Test #38:

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

input:

9 2

output:

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

result:

ok 9 lines

Test #39:

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

input:

9 3

output:

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

result:

ok 9 lines

Test #40:

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

input:

9 4

output:

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

result:

ok 9 lines

Test #41:

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

input:

10 1

output:

1 2 3 4 5 6 7 8 9 10 
20 19 18 17 16 15 14 13 12 11 
21 22 23 24 25 26 27 28 29 30 
40 39 38 37 36 35 34 33 32 31 
41 42 43 44 45 46 47 48 49 50 
60 59 58 57 56 55 54 53 52 51 
61 62 63 64 65 66 67 68 69 70 
80 79 78 77 76 75 74 73 72 71 
81 82 83 84 85 86 87 88 89 90 
100 99 98 97 96 95 94 93 92 91 

result:

ok 10 lines

Test #42:

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

input:

10 2

output:

1 20 21 40 41 60 61 80 81 100 
2 19 22 39 42 59 62 79 82 99 
3 18 23 38 43 58 63 78 83 98 
4 17 24 37 44 57 64 77 84 97 
5 16 25 36 45 56 65 76 85 96 
6 15 26 35 46 55 66 75 86 95 
7 14 27 34 47 54 67 74 87 94 
8 13 28 33 48 53 68 73 88 93 
9 12 29 32 49 52 69 72 89 92 
10 11 30 31 50 51 70 71 90 91 

result:

ok 10 lines

Test #43:

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

input:

10 3

output:

1 2 3 4 5 6 7 8 9 10 
36 37 38 39 40 41 42 43 44 11 
35 64 65 66 67 68 69 70 45 12 
34 63 84 85 86 87 88 71 46 13 
33 62 83 96 97 98 89 72 47 14 
32 61 82 95 100 99 90 73 48 15 
31 60 81 94 93 92 91 74 49 16 
30 59 80 79 78 77 76 75 50 17 
29 58 57 56 55 54 53 52 51 18 
28 27 26 25 24 23 22 21 20 19 

result:

ok 10 lines

Test #44:

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

input:

10 4

output:

1 36 35 34 33 32 31 30 29 28 
2 37 64 63 62 61 60 59 58 27 
3 38 65 84 83 82 81 80 57 26 
4 39 66 85 96 95 94 79 56 25 
5 40 67 86 97 100 93 78 55 24 
6 41 68 87 98 99 92 77 54 23 
7 42 69 88 89 90 91 76 53 22 
8 43 70 71 72 73 74 75 52 21 
9 44 45 46 47 48 49 50 51 20 
10 11 12 13 14 15 16 17 18 19 

result:

ok 10 lines

Test #45:

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

input:

11 1

output:

1 2 3 4 5 6 7 8 9 10 11 
22 21 20 19 18 17 16 15 14 13 12 
23 24 25 26 27 28 29 30 31 32 33 
44 43 42 41 40 39 38 37 36 35 34 
45 46 47 48 49 50 51 52 53 54 55 
66 65 64 63 62 61 60 59 58 57 56 
67 68 69 70 71 72 73 74 75 76 77 
88 87 86 85 84 83 82 81 80 79 78 
89 90 91 92 93 94 95 96 97 98 99 
110...

result:

ok 11 lines

Test #46:

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

input:

11 2

output:

1 22 23 44 45 66 67 88 89 110 111 
2 21 24 43 46 65 68 87 90 109 112 
3 20 25 42 47 64 69 86 91 108 113 
4 19 26 41 48 63 70 85 92 107 114 
5 18 27 40 49 62 71 84 93 106 115 
6 17 28 39 50 61 72 83 94 105 116 
7 16 29 38 51 60 73 82 95 104 117 
8 15 30 37 52 59 74 81 96 103 118 
9 14 31 36 53 58 75 ...

result:

ok 11 lines

Test #47:

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

input:

11 3

output:

1 2 3 4 5 6 7 8 9 10 11 
40 41 42 43 44 45 46 47 48 49 12 
39 72 73 74 75 76 77 78 79 50 13 
38 71 96 97 98 99 100 101 80 51 14 
37 70 95 112 113 114 115 102 81 52 15 
36 69 94 111 120 121 116 103 82 53 16 
35 68 93 110 119 118 117 104 83 54 17 
34 67 92 109 108 107 106 105 84 55 18 
33 66 91 90 89 ...

result:

ok 11 lines

Test #48:

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

input:

11 4

output:

1 40 39 38 37 36 35 34 33 32 31 
2 41 72 71 70 69 68 67 66 65 30 
3 42 73 96 95 94 93 92 91 64 29 
4 43 74 97 112 111 110 109 90 63 28 
5 44 75 98 113 120 119 108 89 62 27 
6 45 76 99 114 121 118 107 88 61 26 
7 46 77 100 115 116 117 106 87 60 25 
8 47 78 101 102 103 104 105 86 59 24 
9 48 79 80 81 ...

result:

ok 11 lines

Test #49:

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

input:

12 1

output:

1 2 3 4 5 6 7 8 9 10 11 12 
24 23 22 21 20 19 18 17 16 15 14 13 
25 26 27 28 29 30 31 32 33 34 35 36 
48 47 46 45 44 43 42 41 40 39 38 37 
49 50 51 52 53 54 55 56 57 58 59 60 
72 71 70 69 68 67 66 65 64 63 62 61 
73 74 75 76 77 78 79 80 81 82 83 84 
96 95 94 93 92 91 90 89 88 87 86 85 
97 98 99 100 ...

result:

ok 12 lines

Test #50:

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

input:

12 2

output:

1 24 25 48 49 72 73 96 97 120 121 144 
2 23 26 47 50 71 74 95 98 119 122 143 
3 22 27 46 51 70 75 94 99 118 123 142 
4 21 28 45 52 69 76 93 100 117 124 141 
5 20 29 44 53 68 77 92 101 116 125 140 
6 19 30 43 54 67 78 91 102 115 126 139 
7 18 31 42 55 66 79 90 103 114 127 138 
8 17 32 41 56 65 80 89 ...

result:

ok 12 lines

Test #51:

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

input:

12 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 
44 45 46 47 48 49 50 51 52 53 54 13 
43 80 81 82 83 84 85 86 87 88 55 14 
42 79 108 109 110 111 112 113 114 89 56 15 
41 78 107 128 129 130 131 132 115 90 57 16 
40 77 106 127 140 141 142 133 116 91 58 17 
39 76 105 126 139 144 143 134 117 92 59 18 
38 75 104 125 138 137 ...

result:

ok 12 lines

Test #52:

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

input:

12 4

output:

1 44 43 42 41 40 39 38 37 36 35 34 
2 45 80 79 78 77 76 75 74 73 72 33 
3 46 81 108 107 106 105 104 103 102 71 32 
4 47 82 109 128 127 126 125 124 101 70 31 
5 48 83 110 129 140 139 138 123 100 69 30 
6 49 84 111 130 141 144 137 122 99 68 29 
7 50 85 112 131 142 143 136 121 98 67 28 
8 51 86 113 132...

result:

ok 12 lines

Test #53:

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

input:

13 1

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 
26 25 24 23 22 21 20 19 18 17 16 15 14 
27 28 29 30 31 32 33 34 35 36 37 38 39 
52 51 50 49 48 47 46 45 44 43 42 41 40 
53 54 55 56 57 58 59 60 61 62 63 64 65 
78 77 76 75 74 73 72 71 70 69 68 67 66 
79 80 81 82 83 84 85 86 87 88 89 90 91 
104 103 102 101 100 99 98 97 ...

result:

ok 13 lines

Test #54:

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

input:

13 2

output:

1 26 27 52 53 78 79 104 105 130 131 156 157 
2 25 28 51 54 77 80 103 106 129 132 155 158 
3 24 29 50 55 76 81 102 107 128 133 154 159 
4 23 30 49 56 75 82 101 108 127 134 153 160 
5 22 31 48 57 74 83 100 109 126 135 152 161 
6 21 32 47 58 73 84 99 110 125 136 151 162 
7 20 33 46 59 72 85 98 111 124 ...

result:

ok 13 lines

Test #55:

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

input:

13 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 
48 49 50 51 52 53 54 55 56 57 58 59 14 
47 88 89 90 91 92 93 94 95 96 97 60 15 
46 87 120 121 122 123 124 125 126 127 98 61 16 
45 86 119 144 145 146 147 148 149 128 99 62 17 
44 85 118 143 160 161 162 163 150 129 100 63 18 
43 84 117 142 159 168 169 164 151 130 101 64...

result:

ok 13 lines

Test #56:

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

input:

13 4

output:

1 48 47 46 45 44 43 42 41 40 39 38 37 
2 49 88 87 86 85 84 83 82 81 80 79 36 
3 50 89 120 119 118 117 116 115 114 113 78 35 
4 51 90 121 144 143 142 141 140 139 112 77 34 
5 52 91 122 145 160 159 158 157 138 111 76 33 
6 53 92 123 146 161 168 167 156 137 110 75 32 
7 54 93 124 147 162 169 166 155 13...

result:

ok 13 lines

Test #57:

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

input:

14 1

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 
28 27 26 25 24 23 22 21 20 19 18 17 16 15 
29 30 31 32 33 34 35 36 37 38 39 40 41 42 
56 55 54 53 52 51 50 49 48 47 46 45 44 43 
57 58 59 60 61 62 63 64 65 66 67 68 69 70 
84 83 82 81 80 79 78 77 76 75 74 73 72 71 
85 86 87 88 89 90 91 92 93 94 95 96 97 98 
112 111 ...

result:

ok 14 lines

Test #58:

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

input:

14 2

output:

1 28 29 56 57 84 85 112 113 140 141 168 169 196 
2 27 30 55 58 83 86 111 114 139 142 167 170 195 
3 26 31 54 59 82 87 110 115 138 143 166 171 194 
4 25 32 53 60 81 88 109 116 137 144 165 172 193 
5 24 33 52 61 80 89 108 117 136 145 164 173 192 
6 23 34 51 62 79 90 107 118 135 146 163 174 191 
7 22 3...

result:

ok 14 lines

Test #59:

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

input:

14 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 
52 53 54 55 56 57 58 59 60 61 62 63 64 15 
51 96 97 98 99 100 101 102 103 104 105 106 65 16 
50 95 132 133 134 135 136 137 138 139 140 107 66 17 
49 94 131 160 161 162 163 164 165 166 141 108 67 18 
48 93 130 159 180 181 182 183 184 167 142 109 68 19 
47 92 129 158 ...

result:

ok 14 lines

Test #60:

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

input:

14 4

output:

1 52 51 50 49 48 47 46 45 44 43 42 41 40 
2 53 96 95 94 93 92 91 90 89 88 87 86 39 
3 54 97 132 131 130 129 128 127 126 125 124 85 38 
4 55 98 133 160 159 158 157 156 155 154 123 84 37 
5 56 99 134 161 180 179 178 177 176 153 122 83 36 
6 57 100 135 162 181 192 191 190 175 152 121 82 35 
7 58 101 13...

result:

ok 14 lines

Test #61:

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

input:

15 1

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 
30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 
60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 
90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 
91 92 93 94 95 96 97 98 99 100 10...

result:

ok 15 lines

Test #62:

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

input:

15 2

output:

1 30 31 60 61 90 91 120 121 150 151 180 181 210 211 
2 29 32 59 62 89 92 119 122 149 152 179 182 209 212 
3 28 33 58 63 88 93 118 123 148 153 178 183 208 213 
4 27 34 57 64 87 94 117 124 147 154 177 184 207 214 
5 26 35 56 65 86 95 116 125 146 155 176 185 206 215 
6 25 36 55 66 85 96 115 126 145 156...

result:

ok 15 lines

Test #63:

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

input:

15 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 
56 57 58 59 60 61 62 63 64 65 66 67 68 69 16 
55 104 105 106 107 108 109 110 111 112 113 114 115 70 17 
54 103 144 145 146 147 148 149 150 151 152 153 116 71 18 
53 102 143 176 177 178 179 180 181 182 183 154 117 72 19 
52 101 142 175 200 201 202 203 204 205 184 ...

result:

ok 15 lines

Test #64:

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

input:

15 4

output:

1 56 55 54 53 52 51 50 49 48 47 46 45 44 43 
2 57 104 103 102 101 100 99 98 97 96 95 94 93 42 
3 58 105 144 143 142 141 140 139 138 137 136 135 92 41 
4 59 106 145 176 175 174 173 172 171 170 169 134 91 40 
5 60 107 146 177 200 199 198 197 196 195 168 133 90 39 
6 61 108 147 178 201 216 215 214 213 ...

result:

ok 15 lines

Test #65:

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

input:

16 1

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 
96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 
97 98 99 100 10...

result:

ok 16 lines

Test #66:

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

input:

16 2

output:

1 32 33 64 65 96 97 128 129 160 161 192 193 224 225 256 
2 31 34 63 66 95 98 127 130 159 162 191 194 223 226 255 
3 30 35 62 67 94 99 126 131 158 163 190 195 222 227 254 
4 29 36 61 68 93 100 125 132 157 164 189 196 221 228 253 
5 28 37 60 69 92 101 124 133 156 165 188 197 220 229 252 
6 27 38 59 70...

result:

ok 16 lines

Test #67:

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

input:

16 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 17 
59 112 113 114 115 116 117 118 119 120 121 122 123 124 75 18 
58 111 156 157 158 159 160 161 162 163 164 165 166 125 76 19 
57 110 155 192 193 194 195 196 197 198 199 200 167 126 77 20 
56 109 154 191 220 221 22...

result:

ok 16 lines

Test #68:

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

input:

16 4

output:

1 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 
2 61 112 111 110 109 108 107 106 105 104 103 102 101 100 45 
3 62 113 156 155 154 153 152 151 150 149 148 147 146 99 44 
4 63 114 157 192 191 190 189 188 187 186 185 184 145 98 43 
5 64 115 158 193 220 219 218 217 216 215 214 183 144 97 42 
6 65 116 15...

result:

ok 16 lines

Test #69:

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

input:

17 1

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 
34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 
68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 
102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 8...

result:

ok 17 lines

Test #70:

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

input:

17 2

output:

1 34 35 68 69 102 103 136 137 170 171 204 205 238 239 272 273 
2 33 36 67 70 101 104 135 138 169 172 203 206 237 240 271 274 
3 32 37 66 71 100 105 134 139 168 173 202 207 236 241 270 275 
4 31 38 65 72 99 106 133 140 167 174 201 208 235 242 269 276 
5 30 39 64 73 98 107 132 141 166 175 200 209 234 ...

result:

ok 17 lines

Test #71:

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

input:

17 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 18 
63 120 121 122 123 124 125 126 127 128 129 130 131 132 133 80 19 
62 119 168 169 170 171 172 173 174 175 176 177 178 179 134 81 20 
61 118 167 208 209 210 211 212 213 214 215 216 217 180 135 82 21 
60 117 ...

result:

ok 17 lines

Test #72:

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

input:

17 4

output:

1 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 
2 65 120 119 118 117 116 115 114 113 112 111 110 109 108 107 48 
3 66 121 168 167 166 165 164 163 162 161 160 159 158 157 106 47 
4 67 122 169 208 207 206 205 204 203 202 201 200 199 156 105 46 
5 68 123 170 209 240 239 238 237 236 235 234 233 198 1...

result:

ok 17 lines

Test #73:

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

input:

18 1

output:

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

result:

ok 18 lines

Test #74:

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

input:

18 2

output:

1 36 37 72 73 108 109 144 145 180 181 216 217 252 253 288 289 324 
2 35 38 71 74 107 110 143 146 179 182 215 218 251 254 287 290 323 
3 34 39 70 75 106 111 142 147 178 183 214 219 250 255 286 291 322 
4 33 40 69 76 105 112 141 148 177 184 213 220 249 256 285 292 321 
5 32 41 68 77 104 113 140 149 17...

result:

ok 18 lines

Test #75:

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

input:

18 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 19 
67 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 85 20 
66 127 180 181 182 183 184 185 186 187 188 189 190 191 192 143 86 21 
65 126 179 224 225 226 227 228 229 230 231 232 233 234 193 ...

result:

ok 18 lines

Test #76:

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

input:

18 4

output:

1 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 
2 69 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 51 
3 70 129 180 179 178 177 176 175 174 173 172 171 170 169 168 113 50 
4 71 130 181 224 223 222 221 220 219 218 217 216 215 214 167 112 49 
5 72 131 182 225 260 259 258 257 256 25...

result:

ok 18 lines

Test #77:

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

input:

19 1

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 
38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 
76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 
114 113 112 111 110...

result:

ok 19 lines

Test #78:

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

input:

19 2

output:

1 38 39 76 77 114 115 152 153 190 191 228 229 266 267 304 305 342 343 
2 37 40 75 78 113 116 151 154 189 192 227 230 265 268 303 306 341 344 
3 36 41 74 79 112 117 150 155 188 193 226 231 264 269 302 307 340 345 
4 35 42 73 80 111 118 149 156 187 194 225 232 263 270 301 308 339 346 
5 34 43 72 81 11...

result:

ok 19 lines

Test #79:

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

input:

19 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 20 
71 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 90 21 
70 135 192 193 194 195 196 197 198 199 200 201 202 203 204 205 152 91 22 
69 134 191 240 241 242 243 244 245 246 247 24...

result:

ok 19 lines

Test #80:

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

input:

19 4

output:

1 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 
2 73 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 54 
3 74 137 192 191 190 189 188 187 186 185 184 183 182 181 180 179 120 53 
4 75 138 193 240 239 238 237 236 235 234 233 232 231 230 229 178 119 52 
5 76 139 194 241 280 279...

result:

ok 19 lines

Test #81:

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

input:

20 1

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 
120...

result:

ok 20 lines

Test #82:

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

input:

20 2

output:

1 40 41 80 81 120 121 160 161 200 201 240 241 280 281 320 321 360 361 400 
2 39 42 79 82 119 122 159 162 199 202 239 242 279 282 319 322 359 362 399 
3 38 43 78 83 118 123 158 163 198 203 238 243 278 283 318 323 358 363 398 
4 37 44 77 84 117 124 157 164 197 204 237 244 277 284 317 324 357 364 397 
...

result:

ok 20 lines

Test #83:

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

input:

20 3

output:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 21 
75 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 95 22 
74 143 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 161 96 23 
73 142 203 256 257 258 259 260 ...

result:

ok 20 lines

Test #84:

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

input:

20 4

output:

1 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 
2 77 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 57 
3 78 145 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 127 56 
4 79 146 205 256 255 254 253 252 251 250 249 248 247 246 245 244 189 126 55 
5 80 147 ...

result:

ok 20 lines

Test #85:

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

input:

95 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 
190 189 188 187 186 185...

result:

ok 95 lines

Test #86:

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

input:

95 2

output:

1 190 191 380 381 570 571 760 761 950 951 1140 1141 1330 1331 1520 1521 1710 1711 1900 1901 2090 2091 2280 2281 2470 2471 2660 2661 2850 2851 3040 3041 3230 3231 3420 3421 3610 3611 3800 3801 3990 3991 4180 4181 4370 4371 4560 4561 4750 4751 4940 4941 5130 5131 5320 5321 5510 5511 5700 5701 5890 589...

result:

ok 95 lines

Test #87:

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

input:

95 3

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 
376 377 378 379 380 381...

result:

ok 95 lines

Test #88:

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

input:

95 4

output:

1 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 305 304 303 30...

result:

ok 95 lines

Test #89:

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

input:

96 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 
192 191 190 189 188 ...

result:

ok 96 lines

Test #90:

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

input:

96 2

output:

1 192 193 384 385 576 577 768 769 960 961 1152 1153 1344 1345 1536 1537 1728 1729 1920 1921 2112 2113 2304 2305 2496 2497 2688 2689 2880 2881 3072 3073 3264 3265 3456 3457 3648 3649 3840 3841 4032 4033 4224 4225 4416 4417 4608 4609 4800 4801 4992 4993 5184 5185 5376 5377 5568 5569 5760 5761 5952 595...

result:

ok 96 lines

Test #91:

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

input:

96 3

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 
380 381 382 383 384 ...

result:

ok 96 lines

Test #92:

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

input:

96 4

output:

1 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 30...

result:

ok 96 lines

Test #93:

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

input:

97 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 
194 193 192 191 1...

result:

ok 97 lines

Test #94:

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

input:

97 2

output:

1 194 195 388 389 582 583 776 777 970 971 1164 1165 1358 1359 1552 1553 1746 1747 1940 1941 2134 2135 2328 2329 2522 2523 2716 2717 2910 2911 3104 3105 3298 3299 3492 3493 3686 3687 3880 3881 4074 4075 4268 4269 4462 4463 4656 4657 4850 4851 5044 5045 5238 5239 5432 5433 5626 5627 5820 5821 6014 601...

result:

ok 97 lines

Test #95:

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

input:

97 3

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 
384 385 386 387 3...

result:

ok 97 lines

Test #96:

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

input:

97 4

output:

1 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 31...

result:

ok 97 lines

Test #97:

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

input:

98 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 
196 195 194 19...

result:

ok 98 lines

Test #98:

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

input:

98 2

output:

1 196 197 392 393 588 589 784 785 980 981 1176 1177 1372 1373 1568 1569 1764 1765 1960 1961 2156 2157 2352 2353 2548 2549 2744 2745 2940 2941 3136 3137 3332 3333 3528 3529 3724 3725 3920 3921 4116 4117 4312 4313 4508 4509 4704 4705 4900 4901 5096 5097 5292 5293 5488 5489 5684 5685 5880 5881 6076 607...

result:

ok 98 lines

Test #99:

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

input:

98 3

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 
388 389 390 39...

result:

ok 98 lines

Test #100:

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

input:

98 4

output:

1 388 387 386 385 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 31...

result:

ok 98 lines

Test #101:

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

input:

99 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 
198 197 196...

result:

ok 99 lines

Test #102:

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

input:

99 2

output:

1 198 199 396 397 594 595 792 793 990 991 1188 1189 1386 1387 1584 1585 1782 1783 1980 1981 2178 2179 2376 2377 2574 2575 2772 2773 2970 2971 3168 3169 3366 3367 3564 3565 3762 3763 3960 3961 4158 4159 4356 4357 4554 4555 4752 4753 4950 4951 5148 5149 5346 5347 5544 5545 5742 5743 5940 5941 6138 613...

result:

ok 99 lines

Test #103:

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

input:

99 3

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 
392 393 394...

result:

ok 99 lines

Test #104:

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

input:

99 4

output:

1 392 391 390 389 388 387 386 385 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 31...

result:

ok 99 lines

Test #105:

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

input:

100 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 
200 199...

result:

ok 100 lines

Test #106:

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

input:

100 2

output:

1 200 201 400 401 600 601 800 801 1000 1001 1200 1201 1400 1401 1600 1601 1800 1801 2000 2001 2200 2201 2400 2401 2600 2601 2800 2801 3000 3001 3200 3201 3400 3401 3600 3601 3800 3801 4000 4001 4200 4201 4400 4401 4600 4601 4800 4801 5000 5001 5200 5201 5400 5401 5600 5601 5800 5801 6000 6001 6200 6...

result:

ok 100 lines

Test #107:

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

input:

100 3

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 
396 397...

result:

ok 100 lines

Test #108:

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

input:

100 4

output:

1 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 32...

result:

ok 100 lines