QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#590157#1422. Avg3un_larryfuncAC ✓1ms3928kbC++201.8kb2024-09-25 22:03:562024-09-25 22:03:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 2

output:

4
1 2
3 4
1 3
2 4

result:

ok ok, n = 4, k = 2

Test #2:

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

input:

6 3

output:

-1

result:

ok ok, n = 6, k = 3

Test #3:

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

input:

2 2

output:

1
1 2

result:

ok ok, n = 2, k = 2

Test #4:

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

input:

3 3

output:

1
1 2 3

result:

ok ok, n = 3, k = 3

Test #5:

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

input:

12 6

output:

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

result:

ok ok, n = 12, k = 6

Test #6:

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

input:

25 5

output:

10
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
1 6 11 16 21
2 7 12 17 22
3 8 13 18 23
4 9 14 19 24
5 10 15 20 25

result:

ok ok, n = 25, k = 5

Test #7:

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

input:

100 10

output:

30
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
1 2 3...

result:

ok ok, n = 100, k = 10

Test #8:

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

input:

961 31

output:

62
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 1...

result:

ok ok, n = 961, k = 31

Test #9:

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

input:

864 18

output:

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

result:

ok ok, n = 864, k = 18

Test #10:

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

input:

864 72

output:

48
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 1...

result:

ok ok, n = 864, k = 72

Test #11:

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

input:

210 210

output:

1
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 10...

result:

ok ok, n = 210, k = 210

Test #12:

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

input:

572 286

output:

4
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 10...

result:

ok ok, n = 572, k = 286

Test #13:

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

input:

997 997

output:

1
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 10...

result:

ok ok, n = 997, k = 997

Test #14:

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

input:

998 998

output:

1
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 10...

result:

ok ok, n = 998, k = 998

Test #15:

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

input:

998 499

output:

-1

result:

ok ok, n = 998, k = 499

Test #16:

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

input:

998 2

output:

-1

result:

ok ok, n = 998, k = 2

Test #17:

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

input:

964 482

output:

4
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 10...

result:

ok ok, n = 964, k = 482

Test #18:

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

input:

1000 2

output:

-1

result:

ok ok, n = 1000, k = 2

Test #19:

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

input:

1000 4

output:

-1

result:

ok ok, n = 1000, k = 4

Test #20:

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

input:

1000 5

output:

-1

result:

ok ok, n = 1000, k = 5

Test #21:

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

input:

1000 8

output:

-1

result:

ok ok, n = 1000, k = 8

Test #22:

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

input:

1000 10

output:

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

result:

ok ok, n = 1000, k = 10

Test #23:

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

input:

1000 20

output:

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

result:

ok ok, n = 1000, k = 20

Test #24:

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

input:

1000 25

output:

-1

result:

ok ok, n = 1000, k = 25

Test #25:

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

input:

1000 40

output:

75
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 1...

result:

ok ok, n = 1000, k = 40

Test #26:

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

input:

1000 50

output:

80
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 1...

result:

ok ok, n = 1000, k = 50

Test #27:

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

input:

1000 100

output:

30
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 1...

result:

ok ok, n = 1000, k = 100

Test #28:

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

input:

1000 125

output:

-1

result:

ok ok, n = 1000, k = 125

Test #29:

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

input:

1000 200

output:

10
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 1...

result:

ok ok, n = 1000, k = 200

Test #30:

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

input:

1000 250

output:

12
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 1...

result:

ok ok, n = 1000, k = 250

Test #31:

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

input:

1000 500

output:

4
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 10...

result:

ok ok, n = 1000, k = 500

Test #32:

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

input:

1000 1000

output:

1
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 10...

result:

ok ok, n = 1000, k = 1000

Test #33:

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

input:

4 4

output:

1
1 2 3 4

result:

ok ok, n = 4, k = 4

Test #34:

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

input:

8 2

output:

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

result:

ok ok, n = 8, k = 2

Test #35:

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

input:

8 4

output:

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

result:

ok ok, n = 8, k = 4

Test #36:

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

input:

8 8

output:

1
1 2 3 4 5 6 7 8

result:

ok ok, n = 8, k = 8

Test #37:

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

input:

16 2

output:

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

result:

ok ok, n = 16, k = 2

Test #38:

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

input:

16 4

output:

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

result:

ok ok, n = 16, k = 4

Test #39:

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

input:

16 8

output:

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

result:

ok ok, n = 16, k = 8

Test #40:

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

input:

16 16

output:

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

result:

ok ok, n = 16, k = 16

Test #41:

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

input:

32 2

output:

80
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
1 3
2 4
5 7
6 8
9 11
10 12
13 15
14 16
17 19
18 20
21 23
22 24
25 27
26 28
29 31
30 32
1 5
2 6
3 7
4 8
9 13
10 14
11 15
12 16
17 21
18 22
19 23
20 24
25 29
26 30
27 31
28 32
1 9
2 10
3 11
4 12
5 13
6 14
7 15
8 ...

result:

ok ok, n = 32, k = 2

Test #42:

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

input:

32 4

output:

32
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
1 2 5 6
3 4 7 8
9 10 13 14
11 12 15 16
17 18 21 22
19 20 23 24
25 26 29 30
27 28 31 32
1 2 9 10
3 4 11 12
5 6 13 14
7 8 15 16
17 18 25 26
19 20 27 28
21 22 29 30
23 24 31 32
1 2 17 18
3 4 19 20
5 6 21 22
7 8 23...

result:

ok ok, n = 32, k = 4

Test #43:

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

input:

32 8

output:

12
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
1 2 3 4 9 10 11 12
5 6 7 8 13 14 15 16
17 18 19 20 25 26 27 28
21 22 23 24 29 30 31 32
1 2 3 4 17 18 19 20
5 6 7 8 21 22 23 24
9 10 11 12 25 26 27 28
13 14 15 16 29 30 31 32

result:

ok ok, n = 32, k = 8

Test #44:

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

input:

32 16

output:

4
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
1 2 3 4 5 6 7 8 17 18 19 20 21 22 23 24
9 10 11 12 13 14 15 16 25 26 27 28 29 30 31 32

result:

ok ok, n = 32, k = 16

Test #45:

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

input:

32 32

output:

1
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

result:

ok ok, n = 32, k = 32

Test #46:

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

input:

64 2

output:

192
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
1 3
2 4
5 7
6 8
9 11
10 12
13 15
14 16
17 19
18 20
21 23
22 24
25 27
26 28
29 31
30 32
33 35
34 36
37 39
38 40
41...

result:

ok ok, n = 64, k = 2

Test #47:

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

input:

64 4

output:

80
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
1 2 5 6
3 4 7 8
9 10 13 14
11 12 15 16
17 18 21 22
19 20 23 24
25 26 29 30
27 28 31 32
33 34 37 38
35 36 39 40
41 ...

result:

ok ok, n = 64, k = 4

Test #48:

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

input:

64 8

output:

32
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
1 2 3 4 9 10 11 12
5 6 7 8 13 14 15 16
17 18 19 20 25 26 27 28
21 22 23 24 29 30 31 32
33 34 35 36 41 42 43 44
37 ...

result:

ok ok, n = 64, k = 8

Test #49:

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

input:

64 16

output:

12
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
1 2 3 4 5 6 7 8 17 18 19 20 21 22 23 24
9 10 11 12 13 14 15 16 25 26 27 28 29 30 31 32
33 34 35 36 37 38 39 40 49 ...

result:

ok ok, n = 64, k = 16

Test #50:

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

input:

64 32

output:

4
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
17 18 19 20 21 22 23 24 25 2...

result:

ok ok, n = 64, k = 32

Test #51:

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

input:

64 64

output:

1
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

result:

ok ok, n = 64, k = 64

Test #52:

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

input:

128 2

output:

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

result:

ok ok, n = 128, k = 2

Test #53:

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

input:

128 4

output:

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

result:

ok ok, n = 128, k = 4

Test #54:

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

input:

128 8

output:

80
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 1...

result:

ok ok, n = 128, k = 8

Test #55:

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

input:

128 16

output:

32
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 1...

result:

ok ok, n = 128, k = 16

Test #56:

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

input:

128 32

output:

12
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 1...

result:

ok ok, n = 128, k = 32

Test #57:

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

input:

128 64

output:

4
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 10...

result:

ok ok, n = 128, k = 64

Test #58:

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

input:

128 128

output:

1
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 10...

result:

ok ok, n = 128, k = 128

Test #59:

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

input:

256 2

output:

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

result:

ok ok, n = 256, k = 2

Test #60:

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

input:

256 4

output:

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

result:

ok ok, n = 256, k = 4

Test #61:

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

input:

256 8

output:

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

result:

ok ok, n = 256, k = 8

Test #62:

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

input:

256 16

output:

80
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 1...

result:

ok ok, n = 256, k = 16

Test #63:

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

input:

256 32

output:

32
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 1...

result:

ok ok, n = 256, k = 32

Test #64:

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

input:

256 64

output:

12
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 1...

result:

ok ok, n = 256, k = 64

Test #65:

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

input:

256 128

output:

4
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 10...

result:

ok ok, n = 256, k = 128

Test #66:

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

input:

256 256

output:

1
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 10...

result:

ok ok, n = 256, k = 256

Test #67:

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

input:

512 2

output:

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

result:

ok ok, n = 512, k = 2

Test #68:

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

input:

512 4

output:

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

result:

ok ok, n = 512, k = 4

Test #69:

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

input:

512 8

output:

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

result:

ok ok, n = 512, k = 8

Test #70:

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

input:

512 16

output:

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

result:

ok ok, n = 512, k = 16

Test #71:

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

input:

512 32

output:

80
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 1...

result:

ok ok, n = 512, k = 32

Test #72:

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

input:

512 64

output:

32
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 1...

result:

ok ok, n = 512, k = 64

Test #73:

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

input:

512 128

output:

12
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 1...

result:

ok ok, n = 512, k = 128

Test #74:

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

input:

512 256

output:

4
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 10...

result:

ok ok, n = 512, k = 256

Test #75:

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

input:

512 512

output:

1
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 10...

result:

ok ok, n = 512, k = 512

Test #76:

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

input:

76 19

output:

-1

result:

ok ok, n = 76, k = 19

Test #77:

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

input:

573 3

output:

-1

result:

ok ok, n = 573, k = 3

Test #78:

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

input:

86 43

output:

-1

result:

ok ok, n = 86, k = 43

Test #79:

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

input:

44 44

output:

1
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

result:

ok ok, n = 44, k = 44

Test #80:

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

input:

240 12

output:

-1

result:

ok ok, n = 240, k = 12

Test #81:

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

input:

350 25

output:

-1

result:

ok ok, n = 350, k = 25

Test #82:

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

input:

30 6

output:

-1

result:

ok ok, n = 30, k = 6

Test #83:

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

input:

33 11

output:

-1

result:

ok ok, n = 33, k = 11

Test #84:

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

input:

5 5

output:

1
1 2 3 4 5

result:

ok ok, n = 5, k = 5

Test #85:

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

input:

114 6

output:

-1

result:

ok ok, n = 114, k = 6

Test #86:

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

input:

192 32

output:

-1

result:

ok ok, n = 192, k = 32

Test #87:

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

input:

650 26

output:

-1

result:

ok ok, n = 650, k = 26

Test #88:

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

input:

20 10

output:

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

result:

ok ok, n = 20, k = 10

Test #89:

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

input:

963 321

output:

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

result:

ok ok, n = 963, k = 321

Test #90:

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

input:

108 54

output:

4
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 10...

result:

ok ok, n = 108, k = 54

Test #91:

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

input:

704 176

output:

12
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 1...

result:

ok ok, n = 704, k = 176

Test #92:

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

input:

846 282

output:

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

result:

ok ok, n = 846, k = 282

Test #93:

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

input:

48 24

output:

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

result:

ok ok, n = 48, k = 24

Test #94:

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

input:

72 12

output:

18
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
1 2 3 4 5 6 13 14 15 16 17 18
7 8 9 10 11 12 19 20 21 22 23 24
25 26 27 28 29 30 37 38 39 ...

result:

ok ok, n = 72, k = 12

Test #95:

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

input:

63 21

output:

6
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
1 2 3 4 5 6 7 22 23 24 25 26 27 28 43 44 45 46 47 48 49
8 9 10 11 12 13 14 29 30 31 32 33 34 35 50 51 52 53 54 55 56
1...

result:

ok ok, n = 63, k = 21

Test #96:

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

input:

702 234

output:

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

result:

ok ok, n = 702, k = 234

Test #97:

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

input:

423 141

output:

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

result:

ok ok, n = 423, k = 141

Test #98:

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

input:

68 34

output:

4
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
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
18 19 20 2...

result:

ok ok, n = 68, k = 34

Test #99:

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

input:

896 14

output:

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

result:

ok ok, n = 896, k = 14

Test #100:

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

input:

960 480

output:

4
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 10...

result:

ok ok, n = 960, k = 480

Test #101:

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

input:

640 320

output:

4
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 10...

result:

ok ok, n = 640, k = 320

Test #102:

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

input:

648 24

output:

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

result:

ok ok, n = 648, k = 24

Test #103:

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

input:

600 30

output:

80
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 1...

result:

ok ok, n = 600, k = 30

Test #104:

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

input:

686 98

output:

14
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 1...

result:

ok ok, n = 686, k = 98

Test #105:

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

input:

596 298

output:

4
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 10...

result:

ok ok, n = 596, k = 298

Test #106:

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

input:

524 262

output:

4
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 10...

result:

ok ok, n = 524, k = 262

Test #107:

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

input:

928 464

output:

4
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 10...

result:

ok ok, n = 928, k = 464

Test #108:

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

input:

652 326

output:

4
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 10...

result:

ok ok, n = 652, k = 326

Test #109:

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

input:

688 344

output:

4
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 10...

result:

ok ok, n = 688, k = 344

Test #110:

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

input:

884 442

output:

4
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 10...

result:

ok ok, n = 884, k = 442

Test #111:

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

input:

722 38

output:

38
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 1...

result:

ok ok, n = 722, k = 38

Test #112:

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

input:

920 460

output:

4
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 10...

result:

ok ok, n = 920, k = 460

Test #113:

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

input:

956 478

output:

4
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 10...

result:

ok ok, n = 956, k = 478

Test #114:

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

input:

576 96

output:

18
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 1...

result:

ok ok, n = 576, k = 96