QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394527#7756. Omniscia Spares None251SecAC ✓0ms3980kbC++141.2kb2024-04-20 15:44:312024-04-20 15:44:31

Judging History

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

  • [2024-04-20 15:44:31]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3980kb
  • [2024-04-20 15:44:31]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int n;
vector<pair<int, int>> e;
int main() {
	scanf("%d", &n);
	if (n <= 4) {
		puts("Yes");
		for (int i = 1; i <= n; i++) printf("%d 0\n", i, 0);
		puts("0");
	}
	else if (n <= 6 || (n & 1)) puts("No");
	else {
		puts("Yes");
		puts("1 0"), puts("-1 0"), puts("0 1"), puts("0 -1");
		e.emplace_back(1, 3);
		e.emplace_back(1, 4);
		e.emplace_back(3, 4);
		e.emplace_back(2, 3);
		e.emplace_back(2, 4);
		for (int i = 6; i <= n; i += 2) {
			if (i % 4 == 2) {
				if (i == n - 2) printf("10000000 10000\n-100000000 10000\n");
				else printf("%d %d\n%d %d\n", i, 0, -i, 0);
				for (int j = i - 5; j < i - 1; j++) {
					if (j % 4 != 2) e.emplace_back(i - 1, j);
					if (j % 4 != 1) e.emplace_back(i, j);
				}
			}
			else {
				if (i == n - 2) printf("10000 10000000\n10000 -10000000\n");
				else printf("%d %d\n%d %d\n", 0, i, 0, -i);
				for (int j = i - 5; j < i - 1; j++) {
					if (j % 4 != 0) e.emplace_back(i - 1, j);
					if (j % 4 != 3) e.emplace_back(i, j);
				}
			}
		}
		e.emplace_back(n - 2, n - 3);
		printf("%d\n", (int)e.size());
		for (auto [u, v] : e) printf("%d %d\n", u, v);
	}
	return 0;
}

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

详细

Test #1:

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

input:

3

output:

Yes
1 0
2 0
3 0
0

result:

ok OK, Accepted.

Test #2:

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

input:

4

output:

Yes
1 0
2 0
3 0
4 0
0

result:

ok OK, Accepted.

Test #3:

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

input:

1

output:

Yes
1 0
0

result:

ok OK, Accepted.

Test #4:

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

input:

2

output:

Yes
1 0
2 0
0

result:

ok OK, Accepted.

Test #5:

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

input:

5

output:

No

result:

ok OK, Accepted.

Test #6:

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

input:

6

output:

No

result:

ok OK, Accepted.

Test #7:

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

input:

7

output:

No

result:

ok OK, Accepted.

Test #8:

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

input:

8

output:

Yes
1 0
-1 0
0 1
0 -1
10000000 10000
-100000000 10000
0 8
0 -8
18
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
6 5

result:

ok OK, Accepted.

Test #9:

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

input:

9

output:

No

result:

ok OK, Accepted.

Test #10:

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

input:

10

output:

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

result:

ok OK, Accepted.

Test #11:

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

input:

11

output:

No

result:

ok OK, Accepted.

Test #12:

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

input:

12

output:

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

result:

ok OK, Accepted.

Test #13:

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

input:

13

output:

No

result:

ok OK, Accepted.

Test #14:

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

input:

14

output:

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

result:

ok OK, Accepted.

Test #15:

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

input:

15

output:

No

result:

ok OK, Accepted.

Test #16:

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

input:

16

output:

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

result:

ok OK, Accepted.

Test #17:

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

input:

17

output:

No

result:

ok OK, Accepted.

Test #18:

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

input:

18

output:

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

result:

ok OK, Accepted.

Test #19:

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

input:

19

output:

No

result:

ok OK, Accepted.

Test #20:

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

input:

20

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
10000000 10000
-100000000 10000
0 20
0 -20
54
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
10 7
9 8
10 8
11 7
12 8
11 9
12 9
11 10
12 10
13 9
14 10
13 11
14 11
13 12
14 12
15 11
16...

result:

ok OK, Accepted.

Test #21:

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

input:

21

output:

No

result:

ok OK, Accepted.

Test #22:

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

input:

22

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
10000 10000000
10000 -10000000
22 0
-22 0
60
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
10 7
9 8
10 8
11 7
12 8
11 9
12 9
11 10
12 10
13 9
14 10
13 11
14 11
13 12
14 1...

result:

ok OK, Accepted.

Test #23:

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

input:

23

output:

No

result:

ok OK, Accepted.

Test #24:

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

input:

24

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
10000000 10000
-100000000 10000
0 24
0 -24
66
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
10 7
9 8
10 8
11 7
12 8
11 9
12 9
11 10
12 10
13 9
14 10
13 11
14 1...

result:

ok OK, Accepted.

Test #25:

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

input:

25

output:

No

result:

ok OK, Accepted.

Test #26:

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

input:

26

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
10000 10000000
10000 -10000000
26 0
-26 0
72
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
10 7
9 8
10 8
11 7
12 8
11 9
12 9
11 10
12 10
13 9
14 10
...

result:

ok OK, Accepted.

Test #27:

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

input:

27

output:

No

result:

ok OK, Accepted.

Test #28:

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

input:

28

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
10000000 10000
-100000000 10000
0 28
0 -28
78
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
10 7
9 8
10 8
11 7
12 8
11 9
12 9
11 10
12 10...

result:

ok OK, Accepted.

Test #29:

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

input:

29

output:

No

result:

ok OK, Accepted.

Test #30:

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

input:

30

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
10000 10000000
10000 -10000000
30 0
-30 0
84
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
10 7
9 8
10 8
11 7
12 8
11 9
12 9
1...

result:

ok OK, Accepted.

Test #31:

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

input:

31

output:

No

result:

ok OK, Accepted.

Test #32:

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

input:

32

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
10000000 10000
-100000000 10000
0 32
0 -32
90
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
10 7
9 8
10 8
11 7
12 8...

result:

ok OK, Accepted.

Test #33:

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

input:

33

output:

No

result:

ok OK, Accepted.

Test #34:

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

input:

34

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
10000 10000000
10000 -10000000
34 0
-34 0
96
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
10 7
9 8
10 8...

result:

ok OK, Accepted.

Test #35:

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

input:

35

output:

No

result:

ok OK, Accepted.

Test #36:

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

input:

36

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
10000000 10000
-100000000 10000
0 36
0 -36
102
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5
10 6
9 7
...

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: 3868kb

input:

38

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
10000 10000000
10000 -10000000
38 0
-38 0
108
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5
7 6
8 6
9 5...

result:

ok OK, Accepted.

Test #39:

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

input:

39

output:

No

result:

ok OK, Accepted.

Test #40:

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

input:

40

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
10000000 10000
-100000000 10000
0 40
0 -40
114
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8 4
7 5
8 5...

result:

ok OK, Accepted.

Test #41:

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

input:

41

output:

No

result:

ok OK, Accepted.

Test #42:

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

input:

42

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
10000 10000000
10000 -10000000
42 0
-42 0
120
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5 4
6 4
7 3
8...

result:

ok OK, Accepted.

Test #43:

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

input:

43

output:

No

result:

ok OK, Accepted.

Test #44:

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

input:

44

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
10000000 10000
-100000000 10000
0 44
0 -44
126
1 3
1 4
3 4
2 3
2 4
5 1
6 2
5 3
6 3
5...

result:

ok OK, Accepted.

Test #45:

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

input:

45

output:

No

result:

ok OK, Accepted.

Test #46:

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

input:

46

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
10000 10000000
10000 -10000000
46 0
-46 0
132
1 3
1 4
3 4
2 3
2 4
5 1
6 2...

result:

ok OK, Accepted.

Test #47:

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

input:

47

output:

No

result:

ok OK, Accepted.

Test #48:

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

input:

48

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
10000000 10000
-100000000 10000
0 48
0 -48
138
1 3
1 4
3 4
2 3...

result:

ok OK, Accepted.

Test #49:

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

input:

49

output:

No

result:

ok OK, Accepted.

Test #50:

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

input:

50

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
10000 10000000
10000 -10000000
50 0
-50 0
144
1 3
1...

result:

ok OK, Accepted.

Test #51:

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

input:

51

output:

No

result:

ok OK, Accepted.

Test #52:

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

input:

52

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
10000000 10000
-100000000 10000
0 52
0 -...

result:

ok OK, Accepted.

Test #53:

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

input:

53

output:

No

result:

ok OK, Accepted.

Test #54:

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

input:

54

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
10000 10000000
10000 -1000000...

result:

ok OK, Accepted.

Test #55:

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

input:

55

output:

No

result:

ok OK, Accepted.

Test #56:

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

input:

56

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
10000000 10000
-10...

result:

ok OK, Accepted.

Test #57:

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

input:

57

output:

No

result:

ok OK, Accepted.

Test #58:

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

input:

58

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
10000 1...

result:

ok OK, Accepted.

Test #59:

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

input:

59

output:

No

result:

ok OK, Accepted.

Test #60:

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

input:

60

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #61:

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

input:

61

output:

No

result:

ok OK, Accepted.

Test #62:

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

input:

62

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #63:

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

input:

63

output:

No

result:

ok OK, Accepted.

Test #64:

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

input:

64

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #65:

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

input:

65

output:

No

result:

ok OK, Accepted.

Test #66:

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

input:

66

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #67:

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

input:

67

output:

No

result:

ok OK, Accepted.

Test #68:

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

input:

68

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #69:

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

input:

69

output:

No

result:

ok OK, Accepted.

Test #70:

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

input:

70

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
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: 3796kb

input:

72

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #73:

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

input:

73

output:

No

result:

ok OK, Accepted.

Test #74:

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

input:

74

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #75:

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

input:

75

output:

No

result:

ok OK, Accepted.

Test #76:

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

input:

76

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #77:

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

input:

77

output:

No

result:

ok OK, Accepted.

Test #78:

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

input:

78

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #79:

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

input:

79

output:

No

result:

ok OK, Accepted.

Test #80:

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

input:

80

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #81:

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

input:

81

output:

No

result:

ok OK, Accepted.

Test #82:

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

input:

82

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #83:

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

input:

83

output:

No

result:

ok OK, Accepted.

Test #84:

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

input:

84

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #85:

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

input:

85

output:

No

result:

ok OK, Accepted.

Test #86:

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

input:

86

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #87:

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

input:

87

output:

No

result:

ok OK, Accepted.

Test #88:

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

input:

88

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #89:

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

input:

89

output:

No

result:

ok OK, Accepted.

Test #90:

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

input:

90

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #91:

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

input:

91

output:

No

result:

ok OK, Accepted.

Test #92:

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

input:

92

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #93:

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

input:

93

output:

No

result:

ok OK, Accepted.

Test #94:

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

input:

94

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #95:

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

input:

95

output:

No

result:

ok OK, Accepted.

Test #96:

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

input:

96

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #97:

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

input:

97

output:

No

result:

ok OK, Accepted.

Test #98:

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

input:

98

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Test #99:

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

input:

99

output:

No

result:

ok OK, Accepted.

Test #100:

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

input:

100

output:

Yes
1 0
-1 0
0 1
0 -1
6 0
-6 0
0 8
0 -8
10 0
-10 0
0 12
0 -12
14 0
-14 0
0 16
0 -16
18 0
-18 0
0 20
0 -20
22 0
-22 0
0 24
0 -24
26 0
-26 0
0 28
0 -28
30 0
-30 0
0 32
0 -32
34 0
-34 0
0 36
0 -36
38 0
-38 0
0 40
0 -40
42 0
-42 0
0 44
0 -44
46 0
-46 0
0 48
0 -48
50 0
-50 0
0 52
0 -52
54 0
-54 0
0 56
0 ...

result:

ok OK, Accepted.

Extra Test:

score: 0
Extra Test Passed