QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#484720#2495. Knight's Moveucup-team1005TL 1794ms5216kbC++204.0kb2024-07-19 21:51:492024-07-19 21:51:49

詳細信息

Test #1:

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

input:

4

output:

1 2 0
3 1 0
4 3 0
4 3 1
2 4 1
2 4 0
3 2 0
3 2 1
1 3 1
3 4 1
4 2 1
2 1 1
2 1 0
1 3 0
3 4 0
4 2 0
2 3 0
2 3 1
3 1 1
1 2 1
3 3 1
4 1 1
2 2 1
1 4 1
1 4 0
3 3 0
4 1 0
2 2 0

result:

ok good job

Test #2:

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

input:

6

output:

1 6 1
3 5 1
5 6 1
5 6 0
6 4 0
6 4 1
4 5 1
4 5 0
3 3 0
5 2 0
4 4 0
6 5 0
5 3 0
3 4 0
3 4 1
1 5 1
3 6 1
5 5 1
6 3 1
4 2 1
5 4 1
6 2 1
4 3 1
4 3 0
6 2 0
5 4 0
4 2 0
6 1 0
6 1 1
5 3 1
6 5 1
4 6 1
4 6 0
2 5 0
2 5 1
4 4 1
2 3 1
3 1 1
5 2 1
3 3 1
4 1 1
4 1 0
2 2 0
2 2 1
1 4 1
2 6 1
2 6 0
1 4 0
3 5 0
1 6 0
...

result:

ok good job

Test #3:

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

input:

8

output:

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

result:

ok good job

Test #4:

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

input:

10

output:

6 5 0
6 5 1
4 6 1
5 8 1
3 7 1
4 5 1
3 3 1
2 1 1
1 3 1
1 3 0
2 1 0
4 2 0
2 3 0
3 1 0
1 2 0
1 2 1
3 1 1
2 3 1
3 5 1
1 6 1
2 8 1
3 10 1
3 10 0
1 9 0
1 9 1
2 7 1
2 7 0
3 5 0
1 6 0
3 7 0
2 5 0
4 6 0
6 7 0
8 6 0
7 4 0
9 3 0
10 1 0
8 2 0
6 1 0
5 3 0
7 2 0
9 1 0
9 1 1
10 3 1
10 3 0
9 5 0
10 7 0
8 8 0
6 9 0
...

result:

ok good job

Test #5:

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

input:

12

output:

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

result:

ok good job

Test #6:

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

input:

14

output:

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

result:

ok good job

Test #7:

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

input:

16

output:

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

result:

ok good job

Test #8:

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

input:

18

output:

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

result:

ok good job

Test #9:

score: 0
Accepted
time: 9ms
memory: 4048kb

input:

20

output:

12 19 1
11 17 1
13 16 1
12 18 1
12 18 0
14 17 0
12 16 0
10 15 0
12 14 0
12 14 1
14 13 1
14 13 0
13 11 0
15 12 0
13 13 0
15 14 0
17 13 0
17 13 1
15 14 1
14 16 1
13 18 1
15 17 1
17 16 1
19 15 1
19 15 0
20 13 0
20 13 1
19 11 1
19 11 0
20 9 0
19 7 0
20 5 0
20 5 1
18 4 1
16 5 1
14 4 1
12 5 1
11 3 1
10 1 ...

result:

ok good job

Test #10:

score: 0
Accepted
time: 10ms
memory: 4048kb

input:

22

output:

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

result:

ok good job

Test #11:

score: 0
Accepted
time: 10ms
memory: 4132kb

input:

24

output:

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

result:

ok good job

Test #12:

score: 0
Accepted
time: 15ms
memory: 3868kb

input:

26

output:

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

result:

ok good job

Test #13:

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

input:

28

output:

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

result:

ok good job

Test #14:

score: 0
Accepted
time: 17ms
memory: 4220kb

input:

30

output:

16 29 0
18 28 0
20 27 0
21 25 0
19 26 0
20 24 0
19 22 0
17 23 0
17 23 1
18 21 1
18 21 0
20 20 0
21 22 0
23 23 0
24 21 0
25 23 0
24 25 0
26 24 0
25 22 0
26 20 0
28 21 0
28 21 1
27 19 1
29 20 1
29 20 0
28 18 0
27 20 0
28 22 0
30 21 0
29 19 0
27 18 0
27 18 1
29 17 1
30 19 1
29 21 1
28 19 1
26 20 1
24 2...

result:

ok good job

Test #15:

score: 0
Accepted
time: 28ms
memory: 4312kb

input:

32

output:

26 13 0
28 14 0
26 15 0
24 16 0
22 17 0
21 15 0
19 16 0
17 17 0
17 17 1
15 18 1
14 16 1
13 18 1
11 17 1
10 19 1
8 20 1
8 20 0
7 22 0
9 21 0
10 19 0
11 21 0
13 20 0
15 21 0
14 19 0
12 18 0
12 18 1
13 20 1
12 22 1
12 22 0
13 24 0
14 26 0
16 27 0
14 28 0
12 29 0
11 31 0
13 32 0
13 32 1
15 31 1
17 32 1
...

result:

ok good job

Test #16:

score: 0
Accepted
time: 68ms
memory: 4160kb

input:

34

output:

11 26 0
10 28 0
9 30 0
7 29 0
8 31 0
6 32 0
6 32 1
4 31 1
5 33 1
3 34 1
4 32 1
2 33 1
1 31 1
3 32 1
4 34 1
4 34 0
2 33 0
1 31 0
3 32 0
2 30 0
3 28 0
3 28 1
4 30 1
5 28 1
5 28 0
6 30 0
8 29 0
7 27 0
7 27 1
9 26 1
10 28 1
12 29 1
14 28 1
16 29 1
17 27 1
15 26 1
14 24 1
13 26 1
12 24 1
11 26 1
13 25 1
...

result:

ok good job

Test #17:

score: 0
Accepted
time: 88ms
memory: 4388kb

input:

36

output:

13 32 0
11 33 0
9 32 0
9 32 1
10 34 1
9 36 1
7 35 1
5 36 1
5 36 0
7 35 0
9 34 0
10 32 0
8 31 0
7 29 0
5 28 0
5 28 1
6 26 1
8 25 1
9 23 1
8 21 1
9 19 1
10 21 1
8 22 1
9 20 1
10 22 1
9 24 1
11 25 1
12 27 1
13 25 1
11 24 1
11 24 0
9 25 0
8 23 0
7 25 0
9 26 0
11 27 0
10 29 0
9 27 0
10 25 0
10 25 1
9 27 ...

result:

ok good job

Test #18:

score: 0
Accepted
time: 120ms
memory: 4124kb

input:

38

output:

27 37 0
29 38 0
29 38 1
27 37 1
28 35 1
26 34 1
24 33 1
22 32 1
20 31 1
18 32 1
17 30 1
19 29 1
18 31 1
18 31 0
16 30 0
14 31 0
15 29 0
14 27 0
15 25 0
16 23 0
17 25 0
19 26 0
21 25 0
19 24 0
18 22 0
20 23 0
22 24 0
22 24 1
21 26 1
22 28 1
21 30 1
20 32 1
18 33 1
17 35 1
16 33 1
15 35 1
14 37 1
16 3...

result:

ok good job

Test #19:

score: 0
Accepted
time: 111ms
memory: 4440kb

input:

40

output:

3 31 0
1 32 0
2 30 0
4 29 0
4 29 1
2 30 1
1 32 1
3 31 1
2 29 1
1 31 1
1 31 0
2 29 0
3 27 0
1 26 0
2 28 0
1 30 0
2 32 0
3 34 0
1 33 0
2 31 0
1 29 0
3 28 0
4 30 0
6 29 0
7 27 0
5 28 0
7 29 0
5 30 0
5 30 1
3 29 1
3 29 0
4 27 0
2 26 0
1 28 0
1 28 1
3 27 1
4 25 1
2 24 1
1 26 1
2 28 1
1 30 1
2 32 1
3 30 1...

result:

ok good job

Test #20:

score: 0
Accepted
time: 151ms
memory: 4452kb

input:

42

output:

21 33 1
19 32 1
20 30 1
20 30 0
19 28 0
17 27 0
18 29 0
19 31 0
20 29 0
21 27 0
21 27 1
20 25 1
22 26 1
22 26 0
23 24 0
25 25 0
26 27 0
26 27 1
25 25 1
24 23 1
24 23 0
25 21 0
25 21 1
27 22 1
29 23 1
29 23 0
31 24 0
31 24 1
33 25 1
33 25 0
34 27 0
32 26 0
33 28 0
35 27 0
36 29 0
37 31 0
39 32 0
41 3...

result:

ok good job

Test #21:

score: 0
Accepted
time: 117ms
memory: 4268kb

input:

44

output:

11 4 0
9 5 0
11 6 0
13 7 0
12 5 0
10 6 0
9 4 0
11 3 0
12 1 0
13 3 0
13 3 1
14 1 1
15 3 1
16 1 1
18 2 1
19 4 1
20 2 1
21 4 1
21 4 0
23 5 0
22 7 0
21 9 0
21 9 1
23 10 1
23 10 0
25 11 0
26 13 0
24 12 0
24 12 1
26 13 1
28 14 1
30 13 1
29 11 1
29 11 0
28 13 0
27 11 0
26 9 0
27 7 0
25 8 0
27 9 0
28 11 0
2...

result:

ok good job

Test #22:

score: 0
Accepted
time: 354ms
memory: 4220kb

input:

46

output:

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

result:

ok good job

Test #23:

score: 0
Accepted
time: 328ms
memory: 4312kb

input:

48

output:

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

result:

ok good job

Test #24:

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

input:

50

output:

8 26 0
7 24 0
5 23 0
7 22 0
6 24 0
8 23 0
9 25 0
11 24 0
11 24 1
12 26 1
14 25 1
16 26 1
18 25 1
17 23 1
16 25 1
18 26 1
18 26 0
16 25 0
18 24 0
19 26 0
21 25 0
21 25 1
23 24 1
23 24 0
21 23 0
21 23 1
23 22 1
25 21 1
24 19 1
22 18 1
23 20 1
24 22 1
24 22 0
23 20 0
22 18 0
23 16 0
24 18 0
25 20 0
26 ...

result:

ok good job

Test #25:

score: 0
Accepted
time: 281ms
memory: 4416kb

input:

52

output:

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

result:

ok good job

Test #26:

score: 0
Accepted
time: 385ms
memory: 4700kb

input:

54

output:

27 9 1
29 10 1
30 8 1
28 7 1
29 5 1
31 6 1
31 6 0
29 7 0
29 7 1
30 9 1
28 10 1
27 8 1
29 9 1
29 9 0
27 8 0
25 9 0
27 10 0
29 11 0
28 13 0
30 14 0
28 15 0
27 17 0
26 15 0
25 17 0
24 15 0
25 13 0
25 13 1
27 12 1
27 12 0
25 11 0
26 13 0
24 14 0
22 13 0
20 14 0
19 12 0
21 11 0
20 13 0
20 13 1
22 14 1
24...

result:

ok good job

Test #27:

score: 0
Accepted
time: 369ms
memory: 4500kb

input:

56

output:

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

result:

ok good job

Test #28:

score: 0
Accepted
time: 625ms
memory: 4756kb

input:

58

output:

51 43 0
52 41 0
50 42 0
50 42 1
48 41 1
47 43 1
47 43 0
48 41 0
49 39 0
51 38 0
52 36 0
54 35 0
55 33 0
57 34 0
58 36 0
57 38 0
55 37 0
56 35 0
58 34 0
57 32 0
56 30 0
54 31 0
53 33 0
51 34 0
49 33 0
48 35 0
50 36 0
52 35 0
54 36 0
56 37 0
55 35 0
57 36 0
58 38 0
56 39 0
58 40 0
58 40 1
57 38 1
58 3...

result:

ok good job

Test #29:

score: 0
Accepted
time: 520ms
memory: 4860kb

input:

60

output:

51 51 0
52 49 0
54 48 0
53 50 0
53 50 1
51 51 1
49 50 1
47 51 1
48 49 1
46 48 1
44 47 1
46 46 1
45 48 1
47 47 1
49 46 1
49 46 0
50 48 0
51 46 0
51 46 1
53 47 1
52 49 1
50 48 1
48 47 1
49 45 1
47 44 1
48 42 1
50 41 1
52 42 1
54 41 1
53 39 1
51 40 1
53 41 1
55 42 1
56 44 1
54 43 1
52 44 1
51 42 1
49 4...

result:

ok good job

Test #30:

score: 0
Accepted
time: 753ms
memory: 4612kb

input:

62

output:

13 4 0
13 4 1
14 2 1
12 1 1
13 3 1
11 2 1
9 3 1
7 2 1
5 1 1
5 1 0
3 2 0
4 4 0
2 3 0
3 5 0
4 3 0
2 2 0
2 2 1
3 4 1
2 6 1
2 6 0
3 4 0
1 3 0
2 1 0
2 1 1
1 3 1
3 2 1
2 4 1
1 6 1
1 6 0
2 4 0
3 6 0
1 5 0
2 7 0
1 9 0
1 9 1
2 11 1
2 11 0
3 9 0
3 9 1
4 11 1
6 12 1
5 10 1
7 11 1
5 12 1
3 11 1
1 10 1
2 12 1
3 ...

result:

ok good job

Test #31:

score: 0
Accepted
time: 485ms
memory: 4952kb

input:

64

output:

32 50 0
31 48 0
30 46 0
30 46 1
31 44 1
33 45 1
34 47 1
33 49 1
31 48 1
32 50 1
33 52 1
33 52 0
31 51 0
32 53 0
33 55 0
31 56 0
30 54 0
29 56 0
27 57 0
29 58 0
31 57 0
32 59 0
33 61 0
35 60 0
36 62 0
37 64 0
35 63 0
34 61 0
33 63 0
35 62 0
34 64 0
33 62 0
33 62 1
32 64 1
34 63 1
36 64 1
37 62 1
35 6...

result:

ok good job

Test #32:

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

input:

66

output:

17 22 0
16 20 0
17 18 0
19 19 0
17 20 0
15 19 0
13 18 0
15 17 0
14 19 0
16 18 0
16 18 1
15 20 1
16 22 1
17 20 1
19 21 1
18 19 1
19 17 1
17 16 1
15 15 1
14 13 1
13 15 1
11 16 1
10 14 1
11 12 1
12 10 1
11 8 1
11 8 0
9 9 0
7 10 0
9 11 0
8 9 0
9 7 0
7 6 0
6 8 0
5 10 0
6 12 0
8 11 0
10 10 0
11 12 0
13 11...

result:

ok good job

Test #33:

score: 0
Accepted
time: 1089ms
memory: 4884kb

input:

68

output:

21 1 0
22 3 0
21 5 0
22 7 0
21 9 0
22 11 0
23 13 0
22 15 0
22 15 1
20 16 1
21 18 1
21 18 0
19 19 0
20 17 0
20 17 1
19 19 1
17 18 1
16 20 1
17 22 1
17 22 0
16 20 0
14 21 0
16 22 0
15 20 0
17 19 0
16 17 0
14 18 0
14 18 1
13 16 1
13 16 0
15 15 0
14 17 0
12 18 0
12 18 1
13 20 1
13 20 0
14 22 0
14 22 1
1...

result:

ok good job

Test #34:

score: 0
Accepted
time: 1025ms
memory: 5216kb

input:

70

output:

41 68 0
40 70 0
40 70 1
38 69 1
40 68 1
42 67 1
41 65 1
40 63 1
41 61 1
40 59 1
42 58 1
41 56 1
43 55 1
43 55 0
41 56 0
39 55 0
37 56 0
37 56 1
36 58 1
38 59 1
39 61 1
37 62 1
37 62 0
35 63 0
35 63 1
34 61 1
32 62 1
31 60 1
31 60 0
30 58 0
30 58 1
32 57 1
32 57 0
34 58 0
35 60 0
34 62 0
33 64 0
35 6...

result:

ok good job

Test #35:

score: 0
Accepted
time: 1564ms
memory: 5092kb

input:

72

output:

6 38 0
4 37 0
5 39 0
3 40 0
2 42 0
1 40 0
3 41 0
2 43 0
2 43 1
1 45 1
1 45 0
3 44 0
1 43 0
2 45 0
4 44 0
3 42 0
5 43 0
5 43 1
3 42 1
1 41 1
1 41 0
2 39 0
2 39 1
1 37 1
3 38 1
2 40 1
2 40 0
1 42 0
1 42 1
3 41 1
1 40 1
3 39 1
1 38 1
2 36 1
2 36 0
4 35 0
4 35 1
5 37 1
7 38 1
7 38 0
8 36 0
9 34 0
10 32 ...

result:

ok good job

Test #36:

score: 0
Accepted
time: 1794ms
memory: 5168kb

input:

74

output:

34 1 0
35 3 0
36 5 0
34 4 0
33 2 0
31 3 0
33 4 0
32 2 0
31 4 0
32 6 0
34 7 0
34 7 1
35 5 1
35 5 0
37 6 0
35 7 0
34 5 0
34 5 1
35 7 1
37 6 1
39 7 1
40 5 1
40 5 0
39 3 0
40 1 0
40 1 1
39 3 1
38 5 1
37 7 1
39 8 1
40 10 1
38 9 1
39 11 1
39 11 0
37 10 0
39 9 0
37 8 0
37 8 1
39 9 1
41 10 1
42 8 1
41 6 1
4...

result:

ok good job

Test #37:

score: -100
Time Limit Exceeded

input:

76

output:


result: