QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#484415#2495. Knight's Moveucup-team1005AC ✓4ms4008kbC++203.3kb2024-07-19 18:27:422024-07-19 18:27:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4

output:

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

result:

ok good job

Test #2:

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

input:

6

output:

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

result:

ok good job

Test #3:

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

input:

8

output:

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

result:

ok good job

Test #4:

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

input:

10

output:

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

result:

ok good job

Test #5:

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

input:

12

output:

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

result:

ok good job

Test #6:

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

input:

14

output:

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

result:

ok good job

Test #7:

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

input:

16

output:

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

result:

ok good job

Test #8:

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

input:

18

output:

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

result:

ok good job

Test #9:

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

input:

20

output:

12 9 0
14 10 0
13 12 0
12 14 0
10 13 0
8 14 0
7 12 0
8 10 0
7 8 0
9 9 0
8 7 0
10 8 0
12 7 0
14 8 0
16 7 0
15 9 0
16 11 0
15 13 0
16 15 0
14 14 0
15 16 0
13 15 0
11 16 0
9 15 0
7 16 0
5 15 0
6 13 0
5 11 0
6 9 0
5 7 0
7 6 0
9 5 0
11 6 0
13 5 0
15 6 0
17 5 0
18 7 0
17 9 0
18 11 0
17 13 0
18 15 0
17 17 ...

result:

ok good job

Test #10:

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

input:

22

output:

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

result:

ok good job

Test #11:

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

input:

24

output:

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

result:

ok good job

Test #12:

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

input:

26

output:

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

result:

ok good job

Test #13:

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

input:

28

output:

16 13 0
18 14 0
17 16 0
16 18 0
14 17 0
12 18 0
11 16 0
12 14 0
11 12 0
13 13 0
12 11 0
14 12 0
16 11 0
18 12 0
20 11 0
19 13 0
20 15 0
19 17 0
20 19 0
18 18 0
19 20 0
17 19 0
15 20 0
13 19 0
11 20 0
9 19 0
10 17 0
9 15 0
10 13 0
9 11 0
11 10 0
13 9 0
15 10 0
17 9 0
19 10 0
21 9 0
22 11 0
21 13 0
22...

result:

ok good job

Test #14:

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

input:

30

output:

18 13 0
20 14 0
19 16 0
20 18 0
18 19 0
16 20 0
14 19 0
12 20 0
11 18 0
12 16 0
11 14 0
12 12 0
14 11 0
16 12 0
18 11 0
20 12 0
22 11 0
21 13 0
22 15 0
21 17 0
22 19 0
21 21 0
19 22 0
17 21 0
15 22 0
13 21 0
11 22 0
9 21 0
10 19 0
9 17 0
10 15 0
9 13 0
10 11 0
11 9 0
13 10 0
15 9 0
17 10 0
19 9 0
21...

result:

ok good job

Test #15:

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

input:

32

output:

18 15 0
20 16 0
19 18 0
18 20 0
16 19 0
14 20 0
13 18 0
14 16 0
13 14 0
15 15 0
14 13 0
16 14 0
18 13 0
20 14 0
22 13 0
21 15 0
22 17 0
21 19 0
22 21 0
20 20 0
21 22 0
19 21 0
17 22 0
15 21 0
13 22 0
11 21 0
12 19 0
11 17 0
12 15 0
11 13 0
13 12 0
15 11 0
17 12 0
19 11 0
21 12 0
23 11 0
24 13 0
23 1...

result:

ok good job

Test #16:

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

input:

34

output:

20 15 0
22 16 0
21 18 0
22 20 0
20 21 0
18 22 0
16 21 0
14 22 0
13 20 0
14 18 0
13 16 0
14 14 0
16 13 0
18 14 0
20 13 0
22 14 0
24 13 0
23 15 0
24 17 0
23 19 0
24 21 0
23 23 0
21 24 0
19 23 0
17 24 0
15 23 0
13 24 0
11 23 0
12 21 0
11 19 0
12 17 0
11 15 0
12 13 0
13 11 0
15 12 0
17 11 0
19 12 0
21 1...

result:

ok good job

Test #17:

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

input:

36

output:

20 17 0
22 18 0
21 20 0
20 22 0
18 21 0
16 22 0
15 20 0
16 18 0
15 16 0
17 17 0
16 15 0
18 16 0
20 15 0
22 16 0
24 15 0
23 17 0
24 19 0
23 21 0
24 23 0
22 22 0
23 24 0
21 23 0
19 24 0
17 23 0
15 24 0
13 23 0
14 21 0
13 19 0
14 17 0
13 15 0
15 14 0
17 13 0
19 14 0
21 13 0
23 14 0
25 13 0
26 15 0
25 1...

result:

ok good job

Test #18:

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

input:

38

output:

22 17 0
24 18 0
23 20 0
24 22 0
22 23 0
20 24 0
18 23 0
16 24 0
15 22 0
16 20 0
15 18 0
16 16 0
18 15 0
20 16 0
22 15 0
24 16 0
26 15 0
25 17 0
26 19 0
25 21 0
26 23 0
25 25 0
23 26 0
21 25 0
19 26 0
17 25 0
15 26 0
13 25 0
14 23 0
13 21 0
14 19 0
13 17 0
14 15 0
15 13 0
17 14 0
19 13 0
21 14 0
23 1...

result:

ok good job

Test #19:

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

input:

40

output:

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

result:

ok good job

Test #20:

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

input:

42

output:

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

result:

ok good job

Test #21:

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

input:

44

output:

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

result:

ok good job

Test #22:

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

input:

46

output:

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

result:

ok good job

Test #23:

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

input:

48

output:

26 23 0
28 24 0
27 26 0
26 28 0
24 27 0
22 28 0
21 26 0
22 24 0
21 22 0
23 23 0
22 21 0
24 22 0
26 21 0
28 22 0
30 21 0
29 23 0
30 25 0
29 27 0
30 29 0
28 28 0
29 30 0
27 29 0
25 30 0
23 29 0
21 30 0
19 29 0
20 27 0
19 25 0
20 23 0
19 21 0
21 20 0
23 19 0
25 20 0
27 19 0
29 20 0
31 19 0
32 21 0
31 2...

result:

ok good job

Test #24:

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

input:

50

output:

28 23 0
30 24 0
29 26 0
30 28 0
28 29 0
26 30 0
24 29 0
22 30 0
21 28 0
22 26 0
21 24 0
22 22 0
24 21 0
26 22 0
28 21 0
30 22 0
32 21 0
31 23 0
32 25 0
31 27 0
32 29 0
31 31 0
29 32 0
27 31 0
25 32 0
23 31 0
21 32 0
19 31 0
20 29 0
19 27 0
20 25 0
19 23 0
20 21 0
21 19 0
23 20 0
25 19 0
27 20 0
29 1...

result:

ok good job

Test #25:

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

input:

52

output:

28 25 0
30 26 0
29 28 0
28 30 0
26 29 0
24 30 0
23 28 0
24 26 0
23 24 0
25 25 0
24 23 0
26 24 0
28 23 0
30 24 0
32 23 0
31 25 0
32 27 0
31 29 0
32 31 0
30 30 0
31 32 0
29 31 0
27 32 0
25 31 0
23 32 0
21 31 0
22 29 0
21 27 0
22 25 0
21 23 0
23 22 0
25 21 0
27 22 0
29 21 0
31 22 0
33 21 0
34 23 0
33 2...

result:

ok good job

Test #26:

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

input:

54

output:

30 25 0
32 26 0
31 28 0
32 30 0
30 31 0
28 32 0
26 31 0
24 32 0
23 30 0
24 28 0
23 26 0
24 24 0
26 23 0
28 24 0
30 23 0
32 24 0
34 23 0
33 25 0
34 27 0
33 29 0
34 31 0
33 33 0
31 34 0
29 33 0
27 34 0
25 33 0
23 34 0
21 33 0
22 31 0
21 29 0
22 27 0
21 25 0
22 23 0
23 21 0
25 22 0
27 21 0
29 22 0
31 2...

result:

ok good job

Test #27:

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

input:

56

output:

30 27 0
32 28 0
31 30 0
30 32 0
28 31 0
26 32 0
25 30 0
26 28 0
25 26 0
27 27 0
26 25 0
28 26 0
30 25 0
32 26 0
34 25 0
33 27 0
34 29 0
33 31 0
34 33 0
32 32 0
33 34 0
31 33 0
29 34 0
27 33 0
25 34 0
23 33 0
24 31 0
23 29 0
24 27 0
23 25 0
25 24 0
27 23 0
29 24 0
31 23 0
33 24 0
35 23 0
36 25 0
35 2...

result:

ok good job

Test #28:

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

input:

58

output:

32 27 0
34 28 0
33 30 0
34 32 0
32 33 0
30 34 0
28 33 0
26 34 0
25 32 0
26 30 0
25 28 0
26 26 0
28 25 0
30 26 0
32 25 0
34 26 0
36 25 0
35 27 0
36 29 0
35 31 0
36 33 0
35 35 0
33 36 0
31 35 0
29 36 0
27 35 0
25 36 0
23 35 0
24 33 0
23 31 0
24 29 0
23 27 0
24 25 0
25 23 0
27 24 0
29 23 0
31 24 0
33 2...

result:

ok good job

Test #29:

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

input:

60

output:

32 29 0
34 30 0
33 32 0
32 34 0
30 33 0
28 34 0
27 32 0
28 30 0
27 28 0
29 29 0
28 27 0
30 28 0
32 27 0
34 28 0
36 27 0
35 29 0
36 31 0
35 33 0
36 35 0
34 34 0
35 36 0
33 35 0
31 36 0
29 35 0
27 36 0
25 35 0
26 33 0
25 31 0
26 29 0
25 27 0
27 26 0
29 25 0
31 26 0
33 25 0
35 26 0
37 25 0
38 27 0
37 2...

result:

ok good job

Test #30:

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

input:

62

output:

34 29 0
36 30 0
35 32 0
36 34 0
34 35 0
32 36 0
30 35 0
28 36 0
27 34 0
28 32 0
27 30 0
28 28 0
30 27 0
32 28 0
34 27 0
36 28 0
38 27 0
37 29 0
38 31 0
37 33 0
38 35 0
37 37 0
35 38 0
33 37 0
31 38 0
29 37 0
27 38 0
25 37 0
26 35 0
25 33 0
26 31 0
25 29 0
26 27 0
27 25 0
29 26 0
31 25 0
33 26 0
35 2...

result:

ok good job

Test #31:

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

input:

64

output:

34 31 0
36 32 0
35 34 0
34 36 0
32 35 0
30 36 0
29 34 0
30 32 0
29 30 0
31 31 0
30 29 0
32 30 0
34 29 0
36 30 0
38 29 0
37 31 0
38 33 0
37 35 0
38 37 0
36 36 0
37 38 0
35 37 0
33 38 0
31 37 0
29 38 0
27 37 0
28 35 0
27 33 0
28 31 0
27 29 0
29 28 0
31 27 0
33 28 0
35 27 0
37 28 0
39 27 0
40 29 0
39 3...

result:

ok good job

Test #32:

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

input:

66

output:

36 31 0
38 32 0
37 34 0
38 36 0
36 37 0
34 38 0
32 37 0
30 38 0
29 36 0
30 34 0
29 32 0
30 30 0
32 29 0
34 30 0
36 29 0
38 30 0
40 29 0
39 31 0
40 33 0
39 35 0
40 37 0
39 39 0
37 40 0
35 39 0
33 40 0
31 39 0
29 40 0
27 39 0
28 37 0
27 35 0
28 33 0
27 31 0
28 29 0
29 27 0
31 28 0
33 27 0
35 28 0
37 2...

result:

ok good job

Test #33:

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

input:

68

output:

36 33 0
38 34 0
37 36 0
36 38 0
34 37 0
32 38 0
31 36 0
32 34 0
31 32 0
33 33 0
32 31 0
34 32 0
36 31 0
38 32 0
40 31 0
39 33 0
40 35 0
39 37 0
40 39 0
38 38 0
39 40 0
37 39 0
35 40 0
33 39 0
31 40 0
29 39 0
30 37 0
29 35 0
30 33 0
29 31 0
31 30 0
33 29 0
35 30 0
37 29 0
39 30 0
41 29 0
42 31 0
41 3...

result:

ok good job

Test #34:

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

input:

70

output:

38 33 0
40 34 0
39 36 0
40 38 0
38 39 0
36 40 0
34 39 0
32 40 0
31 38 0
32 36 0
31 34 0
32 32 0
34 31 0
36 32 0
38 31 0
40 32 0
42 31 0
41 33 0
42 35 0
41 37 0
42 39 0
41 41 0
39 42 0
37 41 0
35 42 0
33 41 0
31 42 0
29 41 0
30 39 0
29 37 0
30 35 0
29 33 0
30 31 0
31 29 0
33 30 0
35 29 0
37 30 0
39 2...

result:

ok good job

Test #35:

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

input:

72

output:

38 35 0
40 36 0
39 38 0
38 40 0
36 39 0
34 40 0
33 38 0
34 36 0
33 34 0
35 35 0
34 33 0
36 34 0
38 33 0
40 34 0
42 33 0
41 35 0
42 37 0
41 39 0
42 41 0
40 40 0
41 42 0
39 41 0
37 42 0
35 41 0
33 42 0
31 41 0
32 39 0
31 37 0
32 35 0
31 33 0
33 32 0
35 31 0
37 32 0
39 31 0
41 32 0
43 31 0
44 33 0
43 3...

result:

ok good job

Test #36:

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

input:

74

output:

40 35 0
42 36 0
41 38 0
42 40 0
40 41 0
38 42 0
36 41 0
34 42 0
33 40 0
34 38 0
33 36 0
34 34 0
36 33 0
38 34 0
40 33 0
42 34 0
44 33 0
43 35 0
44 37 0
43 39 0
44 41 0
43 43 0
41 44 0
39 43 0
37 44 0
35 43 0
33 44 0
31 43 0
32 41 0
31 39 0
32 37 0
31 35 0
32 33 0
33 31 0
35 32 0
37 31 0
39 32 0
41 3...

result:

ok good job

Test #37:

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

input:

76

output:

40 37 0
42 38 0
41 40 0
40 42 0
38 41 0
36 42 0
35 40 0
36 38 0
35 36 0
37 37 0
36 35 0
38 36 0
40 35 0
42 36 0
44 35 0
43 37 0
44 39 0
43 41 0
44 43 0
42 42 0
43 44 0
41 43 0
39 44 0
37 43 0
35 44 0
33 43 0
34 41 0
33 39 0
34 37 0
33 35 0
35 34 0
37 33 0
39 34 0
41 33 0
43 34 0
45 33 0
46 35 0
45 3...

result:

ok good job

Test #38:

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

input:

78

output:

42 37 0
44 38 0
43 40 0
44 42 0
42 43 0
40 44 0
38 43 0
36 44 0
35 42 0
36 40 0
35 38 0
36 36 0
38 35 0
40 36 0
42 35 0
44 36 0
46 35 0
45 37 0
46 39 0
45 41 0
46 43 0
45 45 0
43 46 0
41 45 0
39 46 0
37 45 0
35 46 0
33 45 0
34 43 0
33 41 0
34 39 0
33 37 0
34 35 0
35 33 0
37 34 0
39 33 0
41 34 0
43 3...

result:

ok good job

Test #39:

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

input:

80

output:

42 39 0
44 40 0
43 42 0
42 44 0
40 43 0
38 44 0
37 42 0
38 40 0
37 38 0
39 39 0
38 37 0
40 38 0
42 37 0
44 38 0
46 37 0
45 39 0
46 41 0
45 43 0
46 45 0
44 44 0
45 46 0
43 45 0
41 46 0
39 45 0
37 46 0
35 45 0
36 43 0
35 41 0
36 39 0
35 37 0
37 36 0
39 35 0
41 36 0
43 35 0
45 36 0
47 35 0
48 37 0
47 3...

result:

ok good job

Test #40:

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

input:

82

output:

44 39 0
46 40 0
45 42 0
46 44 0
44 45 0
42 46 0
40 45 0
38 46 0
37 44 0
38 42 0
37 40 0
38 38 0
40 37 0
42 38 0
44 37 0
46 38 0
48 37 0
47 39 0
48 41 0
47 43 0
48 45 0
47 47 0
45 48 0
43 47 0
41 48 0
39 47 0
37 48 0
35 47 0
36 45 0
35 43 0
36 41 0
35 39 0
36 37 0
37 35 0
39 36 0
41 35 0
43 36 0
45 3...

result:

ok good job

Test #41:

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

input:

84

output:

44 41 0
46 42 0
45 44 0
44 46 0
42 45 0
40 46 0
39 44 0
40 42 0
39 40 0
41 41 0
40 39 0
42 40 0
44 39 0
46 40 0
48 39 0
47 41 0
48 43 0
47 45 0
48 47 0
46 46 0
47 48 0
45 47 0
43 48 0
41 47 0
39 48 0
37 47 0
38 45 0
37 43 0
38 41 0
37 39 0
39 38 0
41 37 0
43 38 0
45 37 0
47 38 0
49 37 0
50 39 0
49 4...

result:

ok good job

Test #42:

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

input:

86

output:

46 41 0
48 42 0
47 44 0
48 46 0
46 47 0
44 48 0
42 47 0
40 48 0
39 46 0
40 44 0
39 42 0
40 40 0
42 39 0
44 40 0
46 39 0
48 40 0
50 39 0
49 41 0
50 43 0
49 45 0
50 47 0
49 49 0
47 50 0
45 49 0
43 50 0
41 49 0
39 50 0
37 49 0
38 47 0
37 45 0
38 43 0
37 41 0
38 39 0
39 37 0
41 38 0
43 37 0
45 38 0
47 3...

result:

ok good job

Test #43:

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

input:

88

output:

46 43 0
48 44 0
47 46 0
46 48 0
44 47 0
42 48 0
41 46 0
42 44 0
41 42 0
43 43 0
42 41 0
44 42 0
46 41 0
48 42 0
50 41 0
49 43 0
50 45 0
49 47 0
50 49 0
48 48 0
49 50 0
47 49 0
45 50 0
43 49 0
41 50 0
39 49 0
40 47 0
39 45 0
40 43 0
39 41 0
41 40 0
43 39 0
45 40 0
47 39 0
49 40 0
51 39 0
52 41 0
51 4...

result:

ok good job

Test #44:

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

input:

90

output:

48 43 0
50 44 0
49 46 0
50 48 0
48 49 0
46 50 0
44 49 0
42 50 0
41 48 0
42 46 0
41 44 0
42 42 0
44 41 0
46 42 0
48 41 0
50 42 0
52 41 0
51 43 0
52 45 0
51 47 0
52 49 0
51 51 0
49 52 0
47 51 0
45 52 0
43 51 0
41 52 0
39 51 0
40 49 0
39 47 0
40 45 0
39 43 0
40 41 0
41 39 0
43 40 0
45 39 0
47 40 0
49 3...

result:

ok good job

Test #45:

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

input:

92

output:

48 45 0
50 46 0
49 48 0
48 50 0
46 49 0
44 50 0
43 48 0
44 46 0
43 44 0
45 45 0
44 43 0
46 44 0
48 43 0
50 44 0
52 43 0
51 45 0
52 47 0
51 49 0
52 51 0
50 50 0
51 52 0
49 51 0
47 52 0
45 51 0
43 52 0
41 51 0
42 49 0
41 47 0
42 45 0
41 43 0
43 42 0
45 41 0
47 42 0
49 41 0
51 42 0
53 41 0
54 43 0
53 4...

result:

ok good job

Test #46:

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

input:

94

output:

50 45 0
52 46 0
51 48 0
52 50 0
50 51 0
48 52 0
46 51 0
44 52 0
43 50 0
44 48 0
43 46 0
44 44 0
46 43 0
48 44 0
50 43 0
52 44 0
54 43 0
53 45 0
54 47 0
53 49 0
54 51 0
53 53 0
51 54 0
49 53 0
47 54 0
45 53 0
43 54 0
41 53 0
42 51 0
41 49 0
42 47 0
41 45 0
42 43 0
43 41 0
45 42 0
47 41 0
49 42 0
51 4...

result:

ok good job

Test #47:

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

input:

96

output:

50 47 0
52 48 0
51 50 0
50 52 0
48 51 0
46 52 0
45 50 0
46 48 0
45 46 0
47 47 0
46 45 0
48 46 0
50 45 0
52 46 0
54 45 0
53 47 0
54 49 0
53 51 0
54 53 0
52 52 0
53 54 0
51 53 0
49 54 0
47 53 0
45 54 0
43 53 0
44 51 0
43 49 0
44 47 0
43 45 0
45 44 0
47 43 0
49 44 0
51 43 0
53 44 0
55 43 0
56 45 0
55 4...

result:

ok good job

Test #48:

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

input:

98

output:

52 47 0
54 48 0
53 50 0
54 52 0
52 53 0
50 54 0
48 53 0
46 54 0
45 52 0
46 50 0
45 48 0
46 46 0
48 45 0
50 46 0
52 45 0
54 46 0
56 45 0
55 47 0
56 49 0
55 51 0
56 53 0
55 55 0
53 56 0
51 55 0
49 56 0
47 55 0
45 56 0
43 55 0
44 53 0
43 51 0
44 49 0
43 47 0
44 45 0
45 43 0
47 44 0
49 43 0
51 44 0
53 4...

result:

ok good job

Test #49:

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

input:

100

output:

52 49 0
54 50 0
53 52 0
52 54 0
50 53 0
48 54 0
47 52 0
48 50 0
47 48 0
49 49 0
48 47 0
50 48 0
52 47 0
54 48 0
56 47 0
55 49 0
56 51 0
55 53 0
56 55 0
54 54 0
55 56 0
53 55 0
51 56 0
49 55 0
47 56 0
45 55 0
46 53 0
45 51 0
46 49 0
45 47 0
47 46 0
49 45 0
51 46 0
53 45 0
55 46 0
57 45 0
58 47 0
57 4...

result:

ok good job