QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394575#7756. Omniscia Spares Nonele0nAC ✓1ms3984kbC++141.3kb2024-04-20 16:20:422024-04-20 16:20:42

Judging History

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

  • [2024-04-20 16:20:42]
  • 评测
  • 测评结果:AC
  • 用时:1ms
  • 内存:3984kb
  • [2024-04-20 16:20:42]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

vector< pair<int, int> > E;
pair<int, int> pos[100005];

int main()
{
	int n, i;
	scanf("%d", &n);
	if(n <= 4)
	{
		printf("Yes\n");
		for(i = 1; i <= n; i++)
			printf("0 %d\n", i);
		printf("0\n");
		return 0;
	}
	if(n == 6 || (n & 1))
	{
		printf("No\n");
		return 0;
	}
	for(i = 1; i <= n - 4; i++)
		E.emplace_back(make_pair(i, i + 4));
	E.emplace_back(make_pair(3, 4));
	for(i = 1; i <= n - 2; i += 2)
	{
		E.emplace_back(make_pair(i, i + 2));
		E.emplace_back(make_pair(i + 1, i + 2));
		E.emplace_back(make_pair(i, i + 3));
		E.emplace_back(make_pair(i + 1, i + 3));
	}
	E.emplace_back(make_pair(n - 3, n - 2));
	for(i = 1; i <= n; i += 2)
	{
		if(i == n - 3)
			continue;
		if((i / 2) & 1)
		{
			pos[i] = make_pair(i / 2, 0);
			pos[i + 1] = make_pair(-(i / 2), 0);
		}
		else
		{
			pos[i] = make_pair(0, i / 2 + 1);
			pos[i + 1] = make_pair(0, -(i / 2 + 1));
		}
	}
	if((n / 2) & 1)
	{
		pos[n - 3] = make_pair(1e9, n);
		pos[n - 2] = make_pair(-1e9, n);
	}
	else
	{
		pos[n - 3] = make_pair(n, 1e9);
		pos[n - 2] = make_pair(n, -1e9);
	}
	printf("Yes\n");
	for(i = 1; i <= n; i++)
		printf("%d %d\n", pos[i].first, pos[i].second);
	printf("%d\n", E.size());
	for(i = 0; i < E.size(); i++)
		printf("%d %d\n", E[i].first, E[i].second);
	return 0;
}

这程序好像有点Bug,我给组数据试试?

详细

Test #1:

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

input:

3

output:

Yes
0 1
0 2
0 3
0

result:

ok OK, Accepted.

Test #2:

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

input:

4

output:

Yes
0 1
0 2
0 3
0 4
0

result:

ok OK, Accepted.

Test #3:

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

input:

1

output:

Yes
0 1
0

result:

ok OK, Accepted.

Test #4:

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

input:

2

output:

Yes
0 1
0 2
0

result:

ok OK, Accepted.

Test #5:

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

input:

5

output:

No

result:

ok OK, Accepted.

Test #6:

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

input:

6

output:

No

result:

ok OK, Accepted.

Test #7:

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

input:

7

output:

No

result:

ok OK, Accepted.

Test #8:

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

input:

8

output:

Yes
0 1
0 -1
1 0
-1 0
8 1000000000
8 -1000000000
3 0
-3 0
18
1 5
2 6
3 7
4 8
3 4
1 3
2 3
1 4
2 4
3 5
4 5
3 6
4 6
5 7
6 7
5 8
6 8
5 6

result:

ok OK, Accepted.

Test #9:

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

input:

9

output:

No

result:

ok OK, Accepted.

Test #10:

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

input:

10

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
1000000000 10
-1000000000 10
0 5
0 -5
24
1 5
2 6
3 7
4 8
5 9
6 10
3 4
1 3
2 3
1 4
2 4
3 5
4 5
3 6
4 6
5 7
6 7
5 8
6 8
7 9
8 9
7 10
8 10
7 8

result:

ok OK, Accepted.

Test #11:

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

input:

11

output:

No

result:

ok OK, Accepted.

Test #12:

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

input:

12

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
12 1000000000
12 -1000000000
5 0
-5 0
30
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
3 4
1 3
2 3
1 4
2 4
3 5
4 5
3 6
4 6
5 7
6 7
5 8
6 8
7 9
8 9
7 10
8 10
9 11
10 11
9 12
10 12
9 10

result:

ok OK, Accepted.

Test #13:

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

input:

13

output:

No

result:

ok OK, Accepted.

Test #14:

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

input:

14

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
1000000000 14
-1000000000 14
0 7
0 -7
36
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
3 4
1 3
2 3
1 4
2 4
3 5
4 5
3 6
4 6
5 7
6 7
5 8
6 8
7 9
8 9
7 10
8 10
9 11
10 11
9 12
10 12
11 13
12 13
11 14
12 14
11 12

result:

ok OK, Accepted.

Test #15:

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

input:

15

output:

No

result:

ok OK, Accepted.

Test #16:

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

input:

16

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
16 1000000000
16 -1000000000
7 0
-7 0
42
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
12 16
3 4
1 3
2 3
1 4
2 4
3 5
4 5
3 6
4 6
5 7
6 7
5 8
6 8
7 9
8 9
7 10
8 10
9 11
10 11
9 12
10 12
11 13
12 13
11 14
12 14
13 15
14 15
13 16
14 16
13 14

result:

ok OK, Accepted.

Test #17:

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

input:

17

output:

No

result:

ok OK, Accepted.

Test #18:

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

input:

18

output:

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

result:

ok OK, Accepted.

Test #19:

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

input:

19

output:

No

result:

ok OK, Accepted.

Test #20:

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

input:

20

output:

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

result:

ok OK, Accepted.

Test #21:

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

input:

21

output:

No

result:

ok OK, Accepted.

Test #22:

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

input:

22

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
1000000000 22
-1000000000 22
0 11
0 -11
60
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
12 16
13 17
14 18
15 19
16 20
17 21
18 22
3 4
1 3
2 3
1 4
2 4
3 5
4 5
3 6
4 6
5 7
6 7
5 8
6 8
7 9
8 9
7 10
8 10
9 11
10 ...

result:

ok OK, Accepted.

Test #23:

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

input:

23

output:

No

result:

ok OK, Accepted.

Test #24:

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

input:

24

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
24 1000000000
24 -1000000000
11 0
-11 0
66
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
12 16
13 17
14 18
15 19
16 20
17 21
18 22
19 23
20 24
3 4
1 3
2 3
1 4
2 4
3 5
4 5
3 6
4 6
5 7
6 7
5 8
6 8
7 9
8...

result:

ok OK, Accepted.

Test #25:

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

input:

25

output:

No

result:

ok OK, Accepted.

Test #26:

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

input:

26

output:

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

result:

ok OK, Accepted.

Test #27:

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

input:

27

output:

No

result:

ok OK, Accepted.

Test #28:

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

input:

28

output:

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

result:

ok OK, Accepted.

Test #29:

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

input:

29

output:

No

result:

ok OK, Accepted.

Test #30:

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

input:

30

output:

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

result:

ok OK, Accepted.

Test #31:

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

input:

31

output:

No

result:

ok OK, Accepted.

Test #32:

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

input:

32

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
32 1000000000
32 -1000000000
15 0
-15 0
90
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
12 16
13 17
14 18
15 19
16 20
17 21
18 22
19 23
20 24
21 25
22 26
2...

result:

ok OK, Accepted.

Test #33:

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

input:

33

output:

No

result:

ok OK, Accepted.

Test #34:

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

input:

34

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
1000000000 34
-1000000000 34
0 17
0 -17
96
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
12 16
13 17
14 18
15 19
16 20
17 21
18 22
19 23
20 24
21...

result:

ok OK, Accepted.

Test #35:

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

input:

35

output:

No

result:

ok OK, Accepted.

Test #36:

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

input:

36

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
36 1000000000
36 -1000000000
17 0
-17 0
102
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
12 16
13 17
14 18
15 19
16 20
17 21
18 22
19...

result:

ok OK, Accepted.

Test #37:

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

input:

37

output:

No

result:

ok OK, Accepted.

Test #38:

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

input:

38

output:

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

result:

ok OK, Accepted.

Test #39:

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

input:

39

output:

No

result:

ok OK, Accepted.

Test #40:

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

input:

40

output:

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

result:

ok OK, Accepted.

Test #41:

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

input:

41

output:

No

result:

ok OK, Accepted.

Test #42:

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

input:

42

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
1000000000 42
-1000000000 42
0 21
0 -21
120
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
12 16
13 17...

result:

ok OK, Accepted.

Test #43:

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

input:

43

output:

No

result:

ok OK, Accepted.

Test #44:

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

input:

44

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
44 1000000000
44 -1000000000
21 0
-21 0
126
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
10 14
11 15
...

result:

ok OK, Accepted.

Test #45:

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

input:

45

output:

No

result:

ok OK, Accepted.

Test #46:

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

input:

46

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
1000000000 46
-1000000000 46
0 23
0 -23
132
1 5
2 6
3 7
4 8
5 9
6 10
7 11
8 12
9 13
1...

result:

ok OK, Accepted.

Test #47:

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

input:

47

output:

No

result:

ok OK, Accepted.

Test #48:

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

input:

48

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
48 1000000000
48 -1000000000
23 0
-23 0
138
1 5
2 6
3 7
4 8
5 9
6 10
7 11
...

result:

ok OK, Accepted.

Test #49:

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

input:

49

output:

No

result:

ok OK, Accepted.

Test #50:

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

input:

50

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
1000000000 50
-1000000000 50
0 25
0 -25
144
1 5
2 6
3 7
4 8
5 9...

result:

ok OK, Accepted.

Test #51:

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

input:

51

output:

No

result:

ok OK, Accepted.

Test #52:

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

input:

52

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
52 1000000000
52 -1000000000
25 0
-25 0
150
1 5
2 6
...

result:

ok OK, Accepted.

Test #53:

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

input:

53

output:

No

result:

ok OK, Accepted.

Test #54:

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

input:

54

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
1000000000 54
-1000000000 54
0 27
0 -27
1...

result:

ok OK, Accepted.

Test #55:

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

input:

55

output:

No

result:

ok OK, Accepted.

Test #56:

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

input:

56

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
56 1000000000
56 -1000000000
2...

result:

ok OK, Accepted.

Test #57:

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

input:

57

output:

No

result:

ok OK, Accepted.

Test #58:

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

input:

58

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
1000000000 58
-1000...

result:

ok OK, Accepted.

Test #59:

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

input:

59

output:

No

result:

ok OK, Accepted.

Test #60:

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

input:

60

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
60 10000...

result:

ok OK, Accepted.

Test #61:

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

input:

61

output:

No

result:

ok OK, Accepted.

Test #62:

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

input:

62

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #63:

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

input:

63

output:

No

result:

ok OK, Accepted.

Test #64:

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

input:

64

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #65:

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

input:

65

output:

No

result:

ok OK, Accepted.

Test #66:

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

input:

66

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #67:

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

input:

67

output:

No

result:

ok OK, Accepted.

Test #68:

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

input:

68

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #69:

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

input:

69

output:

No

result:

ok OK, Accepted.

Test #70:

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

input:

70

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #71:

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

input:

71

output:

No

result:

ok OK, Accepted.

Test #72:

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

input:

72

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #73:

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

input:

73

output:

No

result:

ok OK, Accepted.

Test #74:

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

input:

74

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #75:

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

input:

75

output:

No

result:

ok OK, Accepted.

Test #76:

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

input:

76

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #77:

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

input:

77

output:

No

result:

ok OK, Accepted.

Test #78:

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

input:

78

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #79:

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

input:

79

output:

No

result:

ok OK, Accepted.

Test #80:

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

input:

80

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #81:

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

input:

81

output:

No

result:

ok OK, Accepted.

Test #82:

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

input:

82

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #83:

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

input:

83

output:

No

result:

ok OK, Accepted.

Test #84:

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

input:

84

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #85:

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

input:

85

output:

No

result:

ok OK, Accepted.

Test #86:

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

input:

86

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #87:

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

input:

87

output:

No

result:

ok OK, Accepted.

Test #88:

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

input:

88

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #89:

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

input:

89

output:

No

result:

ok OK, Accepted.

Test #90:

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

input:

90

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #91:

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

input:

91

output:

No

result:

ok OK, Accepted.

Test #92:

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

input:

92

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #93:

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

input:

93

output:

No

result:

ok OK, Accepted.

Test #94:

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

input:

94

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #95:

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

input:

95

output:

No

result:

ok OK, Accepted.

Test #96:

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

input:

96

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #97:

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

input:

97

output:

No

result:

ok OK, Accepted.

Test #98:

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

input:

98

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Test #99:

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

input:

99

output:

No

result:

ok OK, Accepted.

Test #100:

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

input:

100

output:

Yes
0 1
0 -1
1 0
-1 0
0 3
0 -3
3 0
-3 0
0 5
0 -5
5 0
-5 0
0 7
0 -7
7 0
-7 0
0 9
0 -9
9 0
-9 0
0 11
0 -11
11 0
-11 0
0 13
0 -13
13 0
-13 0
0 15
0 -15
15 0
-15 0
0 17
0 -17
17 0
-17 0
0 19
0 -19
19 0
-19 0
0 21
0 -21
21 0
-21 0
0 23
0 -23
23 0
-23 0
0 25
0 -25
25 0
-25 0
0 27
0 -27
27 0
-27 0
0 29
0 -...

result:

ok OK, Accepted.

Extra Test:

score: 0
Extra Test Passed