QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#394818#7756. Omniscia Spares NonechenyitaooooAC ✓1ms3984kbC++141.3kb2024-04-20 19:58:202024-04-20 19:58:21

Judging History

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

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

answer

#include<bits/stdc++.h>
#define Ri register int 
using namespace std;
const int N=10005;
int from[N],to[N],tot,n;
void add(int u,int v){
	from[++tot]=u,to[tot]=v;
}
void outb(){
	printf("%d\n",tot);
	for(Ri i=1; i<=tot; ++i) printf("%d %d\n",from[i],to[i]);
}
int main(){
	scanf("%d",&n);
	if(n<=4){
		printf("Yes\n");
		for(Ri i=1; i<=n; ++i) printf("%d %d\n",1,i);
		printf("0\n");
		return 0;
	}
	if(n<=6 || n%2==1){
		printf("No\n");
		return 0;
	}
	printf("Yes\n");
	int nn=n/4*4;
	for(Ri i=1; i<=nn; i+=4){
		add(i,i+1),add(i+1,i+2),add(i+2,i+3),add(i+3,i);
	}
	add(1,3);
	for(Ri i=1; i<=nn-4; i+=4){
		add(i,i+4),add(i+1,i+5),add(i+2,i+6),add(i+3,i+7);
		add(i,i+5),add(i+2,i+5),add(i,i+7),add(i+2,i+7);
	}
	if(n%4==0){
		add(n-2,n);
		for(Ri i=1; i<=n-4; i+=4){
			printf("%d %d\n%d %d\n%d %d\n%d %d\n",-i,0,0,i,i,0,0,-i);
		}
		printf("%d %d\n%d %d\n%d %d\n%d %d\n",-n,0,N,N+N+N+N+N+N+N,n,0,N,-N-N-N-N-N-N-N-N);
		outb();
		return 0;
	}
	else{
		add(n,n-2),add(n,n-5),add(n,n-3);
		add(n-1,n-4),add(n-1,n-5),add(n-1,n-3);
		add(n-3,n-5);
		for(Ri i=1; i<=n-8; i+=4){
			printf("%d %d\n%d %d\n%d %d\n%d %d\n",-i,0,0,i,i,0,0,-i);
		}
		printf("%d %d\n%d %d\n%d %d\n%d %d\n%d %d\n%d %d\n",-N-N-N-N-N,N,0,n,N+N+N+N+N,N,0,-n,0,n+n,0,-n-n);
		outb();
	}
}

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

详细

Test #1:

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

input:

3

output:

Yes
1 1
1 2
1 3
0

result:

ok OK, Accepted.

Test #2:

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

input:

4

output:

Yes
1 1
1 2
1 3
1 4
0

result:

ok OK, Accepted.

Test #3:

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

input:

1

output:

Yes
1 1
0

result:

ok OK, Accepted.

Test #4:

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

input:

2

output:

Yes
1 1
1 2
0

result:

ok OK, Accepted.

Test #5:

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

input:

5

output:

No

result:

ok OK, Accepted.

Test #6:

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

input:

6

output:

No

result:

ok OK, Accepted.

Test #7:

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

input:

7

output:

No

result:

ok OK, Accepted.

Test #8:

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

input:

8

output:

Yes
-1 0
0 1
1 0
0 -1
-8 0
10005 70035
8 0
10005 -80040
18
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
1 3
1 5
2 6
3 7
4 8
1 6
3 6
1 8
3 8
6 8

result:

ok OK, Accepted.

Test #9:

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

input:

9

output:

No

result:

ok OK, Accepted.

Test #10:

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

input:

10

output:

Yes
-1 0
0 1
1 0
0 -1
-50025 10005
0 10
50025 10005
0 -10
0 20
0 -20
24
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
1 3
1 5
2 6
3 7
4 8
1 6
3 6
1 8
3 8
10 8
10 5
10 7
9 6
9 5
9 7
7 5

result:

ok OK, Accepted.

Test #11:

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

input:

11

output:

No

result:

ok OK, Accepted.

Test #12:

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

input:

12

output:

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

result:

ok OK, Accepted.

Test #13:

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

input:

13

output:

No

result:

ok OK, Accepted.

Test #14:

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

input:

14

output:

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

result:

ok OK, Accepted.

Test #15:

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

input:

15

output:

No

result:

ok OK, Accepted.

Test #16:

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

input:

16

output:

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

result:

ok OK, Accepted.

Test #17:

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

input:

17

output:

No

result:

ok OK, Accepted.

Test #18:

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

input:

18

output:

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

result:

ok OK, Accepted.

Test #19:

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

input:

19

output:

No

result:

ok OK, Accepted.

Test #20:

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

input:

20

output:

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

result:

ok OK, Accepted.

Test #21:

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

input:

21

output:

No

result:

ok OK, Accepted.

Test #22:

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

input:

22

output:

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

result:

ok OK, Accepted.

Test #23:

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

input:

23

output:

No

result:

ok OK, Accepted.

Test #24:

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

input:

24

output:

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

result:

ok OK, Accepted.

Test #25:

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

input:

25

output:

No

result:

ok OK, Accepted.

Test #26:

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

input:

26

output:

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

result:

ok OK, Accepted.

Test #27:

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

input:

27

output:

No

result:

ok OK, Accepted.

Test #28:

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

input:

28

output:

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

result:

ok OK, Accepted.

Test #29:

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

input:

29

output:

No

result:

ok OK, Accepted.

Test #30:

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

input:

30

output:

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

result:

ok OK, Accepted.

Test #31:

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

input:

31

output:

No

result:

ok OK, Accepted.

Test #32:

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

input:

32

output:

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

result:

ok OK, Accepted.

Test #33:

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

input:

33

output:

No

result:

ok OK, Accepted.

Test #34:

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

input:

34

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-50025 10005
0 34
50025 10005
0 -34
0 68
0 -68
96
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
9 10
10 11
11 12
12 9
13 14
14 15
15 16
16 13
17 18
18 19
19 20
20 17
21...

result:

ok OK, Accepted.

Test #35:

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

input:

35

output:

No

result:

ok OK, Accepted.

Test #36:

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

input:

36

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-36 0
10005 70035
36 0
10005 -80040
102
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
9 10
10 11
11 12
12 9
13 14
14 15
15 16
16 13
17 18
18 19
19...

result:

ok OK, Accepted.

Test #37:

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

input:

37

output:

No

result:

ok OK, Accepted.

Test #38:

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

input:

38

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-50025 10005
0 38
50025 10005
0 -38
0 76
0 -76
108
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
9 10
10 11
11 12
12 9
13 14
14 15
15 16
16 13
17 ...

result:

ok OK, Accepted.

Test #39:

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

input:

39

output:

No

result:

ok OK, Accepted.

Test #40:

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

input:

40

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-40 0
10005 70035
40 0
10005 -80040
114
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
9 10
10 11
11 12
12 9
13 14
14 15
15 1...

result:

ok OK, Accepted.

Test #41:

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

input:

41

output:

No

result:

ok OK, Accepted.

Test #42:

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

input:

42

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-50025 10005
0 42
50025 10005
0 -42
0 84
0 -84
120
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
9 10
10 11
11 12
12 9
13 14...

result:

ok OK, Accepted.

Test #43:

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

input:

43

output:

No

result:

ok OK, Accepted.

Test #44:

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

input:

44

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-44 0
10005 70035
44 0
10005 -80040
126
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
9 10
10 11
11 12...

result:

ok OK, Accepted.

Test #45:

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

input:

45

output:

No

result:

ok OK, Accepted.

Test #46:

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

input:

46

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-50025 10005
0 46
50025 10005
0 -46
0 92
0 -92
132
1 2
2 3
3 4
4 1
5 6
6 7
7 8
8 5
9 10
...

result:

ok OK, Accepted.

Test #47:

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

input:

47

output:

No

result:

ok OK, Accepted.

Test #48:

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

input:

48

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-48 0
10005 70035
48 0
10005 -80040
138
1 2
2 3
3 4
4 1
5 6
6 7
7 ...

result:

ok OK, Accepted.

Test #49:

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

input:

49

output:

No

result:

ok OK, Accepted.

Test #50:

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

input:

50

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-50025 10005
0 50
50025 10005
0 -50
0 100
0 -100
144
1 2
2 3
3 4
4...

result:

ok OK, Accepted.

Test #51:

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

input:

51

output:

No

result:

ok OK, Accepted.

Test #52:

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

input:

52

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-52 0
10005 70035
52 0
10005 -80040
150
1 2
...

result:

ok OK, Accepted.

Test #53:

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

input:

53

output:

No

result:

ok OK, Accepted.

Test #54:

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

input:

54

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-50025 10005
0 54
50025 10005
0 -54
0 108
0 ...

result:

ok OK, Accepted.

Test #55:

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

input:

55

output:

No

result:

ok OK, Accepted.

Test #56:

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

input:

56

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-56 0
10005 70035
56 0...

result:

ok OK, Accepted.

Test #57:

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

input:

57

output:

No

result:

ok OK, Accepted.

Test #58:

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

input:

58

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-50025 10005
0 58
5002...

result:

ok OK, Accepted.

Test #59:

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

input:

59

output:

No

result:

ok OK, Accepted.

Test #60:

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

input:

60

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #61:

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

input:

61

output:

No

result:

ok OK, Accepted.

Test #62:

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

input:

62

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #63:

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

input:

63

output:

No

result:

ok OK, Accepted.

Test #64:

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

input:

64

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #65:

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

input:

65

output:

No

result:

ok OK, Accepted.

Test #66:

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

input:

66

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #67:

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

input:

67

output:

No

result:

ok OK, Accepted.

Test #68:

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

input:

68

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #69:

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

input:

69

output:

No

result:

ok OK, Accepted.

Test #70:

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

input:

70

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #71:

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

input:

71

output:

No

result:

ok OK, Accepted.

Test #72:

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

input:

72

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #73:

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

input:

73

output:

No

result:

ok OK, Accepted.

Test #74:

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

input:

74

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #75:

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

input:

75

output:

No

result:

ok OK, Accepted.

Test #76:

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

input:

76

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #77:

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

input:

77

output:

No

result:

ok OK, Accepted.

Test #78:

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

input:

78

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #79:

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

input:

79

output:

No

result:

ok OK, Accepted.

Test #80:

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

input:

80

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #81:

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

input:

81

output:

No

result:

ok OK, Accepted.

Test #82:

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

input:

82

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #83:

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

input:

83

output:

No

result:

ok OK, Accepted.

Test #84:

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

input:

84

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #85:

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

input:

85

output:

No

result:

ok OK, Accepted.

Test #86:

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

input:

86

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #87:

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

input:

87

output:

No

result:

ok OK, Accepted.

Test #88:

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

input:

88

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #89:

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

input:

89

output:

No

result:

ok OK, Accepted.

Test #90:

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

input:

90

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #91:

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

input:

91

output:

No

result:

ok OK, Accepted.

Test #92:

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

input:

92

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #93:

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

input:

93

output:

No

result:

ok OK, Accepted.

Test #94:

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

input:

94

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #95:

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

input:

95

output:

No

result:

ok OK, Accepted.

Test #96:

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

input:

96

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #97:

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

input:

97

output:

No

result:

ok OK, Accepted.

Test #98:

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

input:

98

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Test #99:

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

input:

99

output:

No

result:

ok OK, Accepted.

Test #100:

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

input:

100

output:

Yes
-1 0
0 1
1 0
0 -1
-5 0
0 5
5 0
0 -5
-9 0
0 9
9 0
0 -9
-13 0
0 13
13 0
0 -13
-17 0
0 17
17 0
0 -17
-21 0
0 21
21 0
0 -21
-25 0
0 25
25 0
0 -25
-29 0
0 29
29 0
0 -29
-33 0
0 33
33 0
0 -33
-37 0
0 37
37 0
0 -37
-41 0
0 41
41 0
0 -41
-45 0
0 45
45 0
0 -45
-49 0
0 49
49 0
0 -49
-53 0
0 53
53 0
0 -53
...

result:

ok OK, Accepted.

Extra Test:

score: 0
Extra Test Passed