Submission details
Task:LumberUolevi
Sender:erimey
Submission time:2025-09-03 17:22:45 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.07 sdetails
#20.07 sdetails
#30.07 sdetails
#40.07 sdetails
#50.07 sdetails
#60.07 sdetails
#70.08 sdetails
#80.07 sdetails
#90.07 sdetails
#100.07 sdetails
#110.07 sdetails
#120.07 sdetails
#130.07 sdetails
#140.07 sdetails
#150.07 sdetails
#160.07 sdetails
#170.07 sdetails
#180.07 sdetails
#190.07 sdetails
#200.07 sdetails
#210.07 sdetails
#220.07 sdetails
#230.07 sdetails
#240.07 sdetails
#250.07 sdetails
#260.07 sdetails
#270.07 sdetails
#280.07 sdetails
#290.07 sdetails
#300.07 sdetails
#310.07 sdetails
#320.07 sdetails
#330.07 sdetails
#340.07 sdetails
#350.07 sdetails
#360.07 sdetails
#370.07 sdetails
#380.07 sdetails
#390.07 sdetails
#400.07 sdetails
#410.07 sdetails
#420.07 sdetails
#430.07 sdetails
#440.07 sdetails
#450.07 sdetails
#460.07 sdetails
#470.07 sdetails
#480.07 sdetails
#490.07 sdetails
#500.07 sdetails
#510.07 sdetails
#520.07 sdetails
#530.07 sdetails
#540.07 sdetails
#550.07 sdetails
#560.07 sdetails
#570.07 sdetails
#580.07 sdetails
#590.07 sdetails
#600.07 sdetails
#610.07 sdetails
#620.07 sdetails
#630.07 sdetails

Code

def cut(n, k):
    trees = range(1, n+1)
    output = []
    output.append(trees[-1])
    for i in range(k // 2):
            output.append(trees[i])
            output.append(trees[-1] - i-1)
    if k % 2 == 1:
        return output    
    if k % 2 == 0:
        output.pop(i)
        return output


if __name__ == "__main__":
    n, k = map(input.split(), int)
    cut(n,k)

Test details

Test 1

Verdict:

input
1 1

correct output

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 2

Verdict:

input
2 1

correct output

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 3

Verdict:

input
2 1

correct output

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 4

Verdict:

input
3 2

correct output
1 2 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 5

Verdict:

input
3 3

correct output
1 2 3 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 6

Verdict:

input
4 1

correct output

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 7

Verdict:

input
4 4

correct output
1 2 3 4 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 8

Verdict:

input
5 1

correct output

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 9

Verdict:

input
5 5

correct output
1 2 3 4 5 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 10

Verdict:

input
6 1

correct output

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 11

Verdict:

input
10 6

correct output
1 2 3 5 9 10 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 12

Verdict:

input
10 5

correct output
1 2 3 4 10 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 13

Verdict:

input
10 5

correct output
1 2 3 4 10 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 14

Verdict:

input
10 6

correct output
1 2 3 5 9 10 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 15

Verdict:

input
10 10

correct output
1 2 3 4 5 6 7 8 9 10 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 16

Verdict:

input
11 3

correct output
1 2 8 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 17

Verdict:

input
11 10

correct output
1 2 3 4 5 6 7 8 9 10 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 18

Verdict:

input
11 1

correct output
11 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 19

Verdict:

input
12 11

correct output
1 2 3 4 5 7 8 9 10 11 12 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 20

Verdict:

input
12 1

correct output
12 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 21

Verdict:

input
20 11

correct output
1 2 3 4 5 6 7 8 9 15 20 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 22

Verdict:

input
20 9

correct output
1 2 3 4 5 6 7 12 20 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 23

Verdict:

input
21 10

correct output
1 2 3 4 5 6 7 8 9 18 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 24

Verdict:

input
22 13

correct output
1 2 3 4 5 6 7 8 9 10 12 21 22 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 25

Verdict:

input
20 20

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 26

Verdict:

input
20 5

correct output
1 2 3 4 10 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 27

Verdict:

input
23 21

correct output
1 2 3 4 5 6 7 8 9 10 13 14 15 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 28

Verdict:

input
24 2

correct output
1 23 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 29

Verdict:

input
20 18

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 30

Verdict:

input
25 1

correct output
25 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 31

Verdict:

input
123 68

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 32

Verdict:

input
201 84

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 33

Verdict:

input
200 88

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 34

Verdict:

input
202 112

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 35

Verdict:

input
200 194

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 36

Verdict:

input
204 46

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 37

Verdict:

input
205 184

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 38

Verdict:

input
200 16

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 39

Verdict:

input
207 181

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 40

Verdict:

input
201 3

correct output
1 2 198 

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 41

Verdict:

input
1123 617

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 42

Verdict:

input
2201 918

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 43

Verdict:

input
3200 1396

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 44

Verdict:

input
2202 1213

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 45

Verdict:

input
1200 1161

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 46

Verdict:

input
5204 1156

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 47

Verdict:

input
6205 5541

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 48

Verdict:

input
3200 245

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 49

Verdict:

input
7207 6295

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 50

Verdict:

input
9201 96

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 51

Verdict:

input
51123 28058

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 52

Verdict:

input
32201 13429

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 53

Verdict:

input
23200 10116

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 54

Verdict:

input
12202 6721

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 55

Verdict:

input
21200 20502

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 56

Verdict:

input
35204 7816

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 57

Verdict:

input
46205 41255

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 58

Verdict:

input
63200 4823

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 59

Verdict:

input
87207 76170

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 60

Verdict:

input
99201 1030

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 61

Verdict:

input
100000 54883

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 62

Verdict:

input
100000 41703

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...

Test 63

Verdict:

input
100000 43601

correct output
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

user output
(empty)

Error:
Traceback (most recent call last):
  File "input/code.py", line 17, in <module>
    n, k =...