QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#399953#7756. Omniscia Spares Nonedongyc666AC ✓1ms3832kbC++171.1kb2024-04-26 20:10:422024-04-26 20:10:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3

output:

Yes
1 0
2 0
3 0
0

result:

ok OK, Accepted.

Test #2:

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

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

input:

1

output:

Yes
1 0
0

result:

ok OK, Accepted.

Test #4:

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

input:

2

output:

Yes
1 0
2 0
0

result:

ok OK, Accepted.

Test #5:

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

input:

5

output:

No

result:

ok OK, Accepted.

Test #6:

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

input:

6

output:

No

result:

ok OK, Accepted.

Test #7:

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

input:

7

output:

No

result:

ok OK, Accepted.

Test #8:

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

input:

8

output:

Yes
100 -1
100 1
99 0
101 0
0 -100000002
0 100000002
98 0
102 0
18
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
5 6

result:

ok OK, Accepted.

Test #9:

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

input:

9

output:

No

result:

ok OK, Accepted.

Test #10:

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

input:

10

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-100000002 0
100000002 0
0 97
0 103
24
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
7 8

result:

ok OK, Accepted.

Test #11:

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

input:

11

output:

No

result:

ok OK, Accepted.

Test #12:

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

input:

12

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
0 -100000003
0 100000003
97 0
103 0
30
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10 12
8 12
7 11
9 10

result:

ok OK, Accepted.

Test #13:

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

input:

13

output:

No

result:

ok OK, Accepted.

Test #14:

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

input:

14

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-100000003 0
100000003 0
0 96
0 104
36
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10 12
8 12
7 11
11 13
11 14
12 13
12 14
10 14
9 13
11 12

result:

ok OK, Accepted.

Test #15:

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

input:

15

output:

No

result:

ok OK, Accepted.

Test #16:

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

input:

16

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
0 -100000004
0 100000004
96 0
104 0
42
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10 12
8 12
7 11
11 13
11 14
12 13
12 14
10 14
9 13
13 15
13 16
14 15
14 16...

result:

ok OK, Accepted.

Test #17:

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

input:

17

output:

No

result:

ok OK, Accepted.

Test #18:

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

input:

18

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-100000004 0
100000004 0
0 95
0 105
48
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10 12
8 12
7 11
11 13
11 14
12 13
12 14
10 14
9 13
13 15
13 16
...

result:

ok OK, Accepted.

Test #19:

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

input:

19

output:

No

result:

ok OK, Accepted.

Test #20:

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

input:

20

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
0 -100000005
0 100000005
95 0
105 0
54
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10 12
8 12
7 11
11 13
11 14
12 13
12 14
10 14
9 13...

result:

ok OK, Accepted.

Test #21:

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

input:

21

output:

No

result:

ok OK, Accepted.

Test #22:

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

input:

22

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-100000005 0
100000005 0
0 94
0 106
60
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10 12
8 12
7 11
11 13
11 14
12 13
12 14...

result:

ok OK, Accepted.

Test #23:

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

input:

23

output:

No

result:

ok OK, Accepted.

Test #24:

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

input:

24

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
0 -100000006
0 100000006
94 0
106 0
66
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10 12
8 12
7 11
11 13
11 1...

result:

ok OK, Accepted.

Test #25:

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

input:

25

output:

No

result:

ok OK, Accepted.

Test #26:

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

input:

26

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-100000006 0
100000006 0
0 93
0 107
72
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10 12
8 12
7 11...

result:

ok OK, Accepted.

Test #27:

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

input:

27

output:

No

result:

ok OK, Accepted.

Test #28:

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

input:

28

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
0 -100000007
0 100000007
93 0
107 0
78
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 12
10 11
10...

result:

ok OK, Accepted.

Test #29:

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

input:

29

output:

No

result:

ok OK, Accepted.

Test #30:

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

input:

30

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-100000007 0
100000007 0
0 92
0 108
84
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 10
5 9
9 11
9 ...

result:

ok OK, Accepted.

Test #31:

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

input:

31

output:

No

result:

ok OK, Accepted.

Test #32:

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

input:

32

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
0 -100000008
0 100000008
92 0
108 0
90
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8 9
8 10
6 1...

result:

ok OK, Accepted.

Test #33:

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

input:

33

output:

No

result:

ok OK, Accepted.

Test #34:

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

input:

34

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-100000008 0
100000008 0
0 91
0 109
96
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
3 7
7 9
7 10
8...

result:

ok OK, Accepted.

Test #35:

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

input:

35

output:

No

result:

ok OK, Accepted.

Test #36:

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

input:

36

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
0 -100000009
0 100000009
91 0
109 0
102
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6 7
6 8
4 8
...

result:

ok OK, Accepted.

Test #37:

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

input:

37

output:

No

result:

ok OK, Accepted.

Test #38:

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

input:

38

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-100000009 0
100000009 0
0 90
0 110
108
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
1 5
5 7
5 8
6...

result:

ok OK, Accepted.

Test #39:

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

input:

39

output:

No

result:

ok OK, Accepted.

Test #40:

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

input:

40

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
0 -100000010
0 100000010
90 0
110 0
114
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4 5
4 6
2 6
...

result:

ok OK, Accepted.

Test #41:

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

input:

41

output:

No

result:

ok OK, Accepted.

Test #42:

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

input:

42

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-100000010 0
100000010 0
0 89
0 111
120
3 4
1 3
2 3
1 4
2 4
3 5
3 6
4...

result:

ok OK, Accepted.

Test #43:

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

input:

43

output:

No

result:

ok OK, Accepted.

Test #44:

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

input:

44

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
0 -100000011
0 100000011
89 0
111 0
126
3 4
1 3
2 3
1 ...

result:

ok OK, Accepted.

Test #45:

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

input:

45

output:

No

result:

ok OK, Accepted.

Test #46:

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

input:

46

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-100000011 0
100000011 0
0 88
0 112
132
3 4...

result:

ok OK, Accepted.

Test #47:

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

input:

47

output:

No

result:

ok OK, Accepted.

Test #48:

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

input:

48

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
0 -100000012
0 100000012
88 ...

result:

ok OK, Accepted.

Test #49:

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

input:

49

output:

No

result:

ok OK, Accepted.

Test #50:

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

input:

50

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-100000012 0
1000...

result:

ok OK, Accepted.

Test #51:

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

input:

51

output:

No

result:

ok OK, Accepted.

Test #52:

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

input:

52

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
0 ...

result:

ok OK, Accepted.

Test #53:

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

input:

53

output:

No

result:

ok OK, Accepted.

Test #54:

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

input:

54

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #55:

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

input:

55

output:

No

result:

ok OK, Accepted.

Test #56:

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

input:

56

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #57:

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

input:

57

output:

No

result:

ok OK, Accepted.

Test #58:

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

input:

58

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #59:

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

input:

59

output:

No

result:

ok OK, Accepted.

Test #60:

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

input:

60

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #61:

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

input:

61

output:

No

result:

ok OK, Accepted.

Test #62:

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

input:

62

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #63:

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

input:

63

output:

No

result:

ok OK, Accepted.

Test #64:

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

input:

64

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #65:

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

input:

65

output:

No

result:

ok OK, Accepted.

Test #66:

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

input:

66

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #67:

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

input:

67

output:

No

result:

ok OK, Accepted.

Test #68:

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

input:

68

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #69:

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

input:

69

output:

No

result:

ok OK, Accepted.

Test #70:

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

input:

70

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #71:

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

input:

71

output:

No

result:

ok OK, Accepted.

Test #72:

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

input:

72

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #73:

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

input:

73

output:

No

result:

ok OK, Accepted.

Test #74:

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

input:

74

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #75:

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

input:

75

output:

No

result:

ok OK, Accepted.

Test #76:

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

input:

76

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #77:

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

input:

77

output:

No

result:

ok OK, Accepted.

Test #78:

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

input:

78

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #79:

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

input:

79

output:

No

result:

ok OK, Accepted.

Test #80:

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

input:

80

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #81:

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

input:

81

output:

No

result:

ok OK, Accepted.

Test #82:

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

input:

82

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #83:

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

input:

83

output:

No

result:

ok OK, Accepted.

Test #84:

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

input:

84

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #85:

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

input:

85

output:

No

result:

ok OK, Accepted.

Test #86:

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

input:

86

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #87:

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

input:

87

output:

No

result:

ok OK, Accepted.

Test #88:

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

input:

88

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #89:

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

input:

89

output:

No

result:

ok OK, Accepted.

Test #90:

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

input:

90

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #91:

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

input:

91

output:

No

result:

ok OK, Accepted.

Test #92:

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

input:

92

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #93:

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

input:

93

output:

No

result:

ok OK, Accepted.

Test #94:

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

input:

94

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #95:

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

input:

95

output:

No

result:

ok OK, Accepted.

Test #96:

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

input:

96

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Test #97:

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

input:

97

output:

No

result:

ok OK, Accepted.

Test #98:

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

input:

98

output:

Yes
0 99
0 101
-1 100
1 100
0 98
0 102
-2 100
2 100
0 97
0 103
-3 100
3 100
0 96
0 104
-4 100
4 100
0 95
0 105
-5 100
5 100
0 94
0 106
-6 100
6 100
0 93
0 107
-7 100
7 100
0 92
0 108
-8 100
8 100
0 91
0 109
-9 100
9 100
0 90
0 110
-10 100
10 100
0 89
0 111
-11 100
11 100
0 88
0 112
-12 100
12 100
0 ...

result:

ok OK, Accepted.

Test #99:

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

input:

99

output:

No

result:

ok OK, Accepted.

Test #100:

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

input:

100

output:

Yes
100 -1
100 1
99 0
101 0
100 -2
100 2
98 0
102 0
100 -3
100 3
97 0
103 0
100 -4
100 4
96 0
104 0
100 -5
100 5
95 0
105 0
100 -6
100 6
94 0
106 0
100 -7
100 7
93 0
107 0
100 -8
100 8
92 0
108 0
100 -9
100 9
91 0
109 0
100 -10
100 10
90 0
110 0
100 -11
100 11
89 0
111 0
100 -12
100 12
88 0
112 0
10...

result:

ok OK, Accepted.

Extra Test:

score: 0
Extra Test Passed