QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#326777 | #7756. Omniscia Spares None | Delay_for_five_minutes | AC ✓ | 1ms | 3964kb | C++20 | 2.2kb | 2024-02-14 00:29:27 | 2024-02-14 00:29:27 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int x[105] , y[105];
int cnt = 0;
void addp(int a,int b) {
x[++cnt] = a;
y[cnt] = b;
return ;
}
typedef pair<int,int> pii;
vector<pii> Ed;
void adde(int u,int v) {
Ed.push_back({u , v});
}
int main() {
int n ; cin >> n;
if(n <= 4) {
printf("Yes\n");
for(int i = 1;i <= n;i++) printf("0 %d\n",i) ;
printf("0\n") ; return 0;
}
if((n & 1) || n == 6) {
printf("No\n") ; return 0;
}
addp(0 , 1);
addp(0 , -1);
addp(1 , 0);
addp(-1 , 0);
addp(0 , 2);
addp(0 , -2) ;
adde(1 , 3) ; adde(1 , 4) ; adde(1 , 5) ; adde(2 , 3) ; adde(2 , 4) ; adde(2 , 6);
adde(3 , 4) ;
adde(3 , 5) ; adde(4 , 5) ; adde(3 , 6) ; adde(4 , 6) ;
int x_range = 1 , y_range = 2;
int cur = 0 ; ///0 , add to x , 1 , add to y
for(int i = 8;i <= n;i += 2) {
if(cur == 0) {
++x_range;
addp(x_range , 0);
addp(-x_range , 0);
}
else {
++y_range;
addp(0 , y_range);
addp(0 , -y_range);
}
adde(i - 1 , i - 2);
adde(i - 1 , i - 3);
adde(i , i - 2);
adde(i , i - 3);
adde(i , i - 4);
adde(i - 1 , i - 5);
cur ^= 1;
}
adde(n - 2 , n - 3) ;
///cur = 0 时,y为轴;cur = 1时 x为轴
int D;
if(cur == 0) D = 100;
else D = 2;
for(int i = 1;i <= cnt;i++) x[i] *= D , y[i] *= D;
for(int i = 1;i <= cnt;i++) {
// printf("I %d %d %d\n",i,x[i],y[i]) ;
if(cur == 0 && x[i] != 0) {
if(abs(x[i]) == D) {
y[i] += (D - 1);
}
else if(abs(x[i]) == x_range * D) {
y[i] += y_range*D + 1;
}
else {
y[i] += abs(x[i] / D) * D;
}
}
if(cur == 1 && y[i] != 0) {
x[i] += (x_range + 1 + abs(y[i]/D) - y_range)*D - 1;
}
}
printf("Yes\n") ;
for(int i = 1;i <= cnt;i++) printf("%d %d\n",x[i],y[i]) ;
printf("%d\n",Ed.size()) ;
for(auto [u,v] : Ed) printf("%d %d\n",u,v);
return 0;
}
这程序好像有点Bug,我给组数据试试?
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3896kb
input:
3
output:
Yes 0 1 0 2 0 3 0
result:
ok OK, Accepted.
Test #2:
score: 0
Accepted
time: 0ms
memory: 3844kb
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: 3844kb
input:
1
output:
Yes 0 1 0
result:
ok OK, Accepted.
Test #4:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
2
output:
Yes 0 1 0 2 0
result:
ok OK, Accepted.
Test #5:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
5
output:
No
result:
ok OK, Accepted.
Test #6:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
6
output:
No
result:
ok OK, Accepted.
Test #7:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
7
output:
No
result:
ok OK, Accepted.
Test #8:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
8
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 18 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 6 5
result:
ok OK, Accepted.
Test #9:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
9
output:
No
result:
ok OK, Accepted.
Test #10:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
10
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 301 -200 301 0 300 0 -300 24 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 8 7
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: 3960kb
input:
12
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 30 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 7 10 9
result:
ok OK, Accepted.
Test #13:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
13
output:
No
result:
ok OK, Accepted.
Test #14:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
14
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 401 -300 401 0 400 0 -400 36 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 7 13 12 13 11 14 12 14 11 14 10 13 9 12 11
result:
ok OK, Accepted.
Test #15:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
15
output:
No
result:
ok OK, Accepted.
Test #16:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
16
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 42 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 7 13 12 13 11 14 12 14 11 14 10 13 9 15 14 15 13 16 14 16 13 16 12 15 11 14 13
result:
ok OK, Accepted.
Test #17:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
17
output:
No
result:
ok OK, Accepted.
Test #18:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
18
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 501 -400 501 0 500 0 -500 48 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 7 13 12 13 11 14 12 14 11 14 10 13 9 ...
result:
ok OK, Accepted.
Test #19:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
19
output:
No
result:
ok OK, Accepted.
Test #20:
score: 0
Accepted
time: 0ms
memory: 3964kb
input:
20
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 54 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 7 13 12 13 11 14 12 14 11 14 10 13 9 15 14 15 13 16 14 16 13 16 12 15 11...
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: 3840kb
input:
22
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 601 -500 601 0 600 0 -600 60 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 7 13 12...
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: 0ms
memory: 3856kb
input:
24
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 66 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 7 13 12 13 11 14 12 14 11 14 10 13 9 15 14 15 13...
result:
ok OK, Accepted.
Test #25:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
25
output:
No
result:
ok OK, Accepted.
Test #26:
score: 0
Accepted
time: 0ms
memory: 3964kb
input:
26
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 701 -600 701 0 700 0 -700 72 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 1...
result:
ok OK, Accepted.
Test #27:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
27
output:
No
result:
ok OK, Accepted.
Test #28:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
28
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 78 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 7 13 12 13 11 14 12 14 1...
result:
ok OK, Accepted.
Test #29:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
29
output:
No
result:
ok OK, Accepted.
Test #30:
score: 0
Accepted
time: 0ms
memory: 3808kb
input:
30
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 801 -700 801 0 800 0 -800 84 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 ...
result:
ok OK, Accepted.
Test #31:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
31
output:
No
result:
ok OK, Accepted.
Test #32:
score: 0
Accepted
time: 0ms
memory: 3956kb
input:
32
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 90 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10 11 9 12 10 12 9 12 8 11 ...
result:
ok OK, Accepted.
Test #33:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
33
output:
No
result:
ok OK, Accepted.
Test #34:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
34
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 901 -800 901 0 900 0 -900 96 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 ...
result:
ok OK, Accepted.
Test #35:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
35
output:
No
result:
ok OK, Accepted.
Test #36:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
36
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 102 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 10 8 10 7 10 6 9 5 11 10...
result:
ok OK, Accepted.
Test #37:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
37
output:
No
result:
ok OK, Accepted.
Test #38:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
38
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 1001 -900 1001 0 1000 0 -1000 108 1 3 1 4...
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: 3772kb
input:
40
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 114 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 8 6 8 5 8 4 7 3 9 8 9 7 ...
result:
ok OK, Accepted.
Test #41:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
41
output:
No
result:
ok OK, Accepted.
Test #42:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
42
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1101 -10...
result:
ok OK, Accepted.
Test #43:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
43
output:
No
result:
ok OK, Accepted.
Test #44:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
44
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 126 1 3 1 4 1 5 2 3 2 4 2 6 3 4 3 5 4 5 3 6 4 6 7 6 7 5 ...
result:
ok OK, Accepted.
Test #45:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
45
output:
No
result:
ok OK, Accepted.
Test #46:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
46
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #47:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
47
output:
No
result:
ok OK, Accepted.
Test #48:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
48
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 138 1 3 1 4 1 5 2 3 2 4 2 6 3 4 ...
result:
ok OK, Accepted.
Test #49:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
49
output:
No
result:
ok OK, Accepted.
Test #50:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
50
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #51:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
51
output:
No
result:
ok OK, Accepted.
Test #52:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
52
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 150 1 3 ...
result:
ok OK, Accepted.
Test #53:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
53
output:
No
result:
ok OK, Accepted.
Test #54:
score: 0
Accepted
time: 0ms
memory: 3792kb
input:
54
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #55:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
55
output:
No
result:
ok OK, Accepted.
Test #56:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
56
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #57:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
57
output:
No
result:
ok OK, Accepted.
Test #58:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
58
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #59:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
59
output:
No
result:
ok OK, Accepted.
Test #60:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
60
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #61:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
61
output:
No
result:
ok OK, Accepted.
Test #62:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
62
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #63:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
63
output:
No
result:
ok OK, Accepted.
Test #64:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
64
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
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: 3836kb
input:
66
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #67:
score: 0
Accepted
time: 0ms
memory: 3776kb
input:
67
output:
No
result:
ok OK, Accepted.
Test #68:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
68
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #69:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
69
output:
No
result:
ok OK, Accepted.
Test #70:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
70
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #71:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
71
output:
No
result:
ok OK, Accepted.
Test #72:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
72
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #73:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
73
output:
No
result:
ok OK, Accepted.
Test #74:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
74
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #75:
score: 0
Accepted
time: 0ms
memory: 3760kb
input:
75
output:
No
result:
ok OK, Accepted.
Test #76:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
76
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #77:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
77
output:
No
result:
ok OK, Accepted.
Test #78:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
78
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #79:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
79
output:
No
result:
ok OK, Accepted.
Test #80:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
80
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #81:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
81
output:
No
result:
ok OK, Accepted.
Test #82:
score: 0
Accepted
time: 0ms
memory: 3796kb
input:
82
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #83:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
83
output:
No
result:
ok OK, Accepted.
Test #84:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
84
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #85:
score: 0
Accepted
time: 0ms
memory: 3732kb
input:
85
output:
No
result:
ok OK, Accepted.
Test #86:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
86
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #87:
score: 0
Accepted
time: 0ms
memory: 3772kb
input:
87
output:
No
result:
ok OK, Accepted.
Test #88:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
88
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #89:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
89
output:
No
result:
ok OK, Accepted.
Test #90:
score: 0
Accepted
time: 0ms
memory: 3896kb
input:
90
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #91:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
91
output:
No
result:
ok OK, Accepted.
Test #92:
score: 0
Accepted
time: 0ms
memory: 3860kb
input:
92
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #93:
score: 0
Accepted
time: 0ms
memory: 3712kb
input:
93
output:
No
result:
ok OK, Accepted.
Test #94:
score: 0
Accepted
time: 0ms
memory: 3788kb
input:
94
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #95:
score: 0
Accepted
time: 0ms
memory: 3768kb
input:
95
output:
No
result:
ok OK, Accepted.
Test #96:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
96
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Test #97:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
97
output:
No
result:
ok OK, Accepted.
Test #98:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
98
output:
Yes 0 100 0 -100 100 99 -100 99 0 200 0 -200 200 200 -200 200 0 300 0 -300 300 300 -300 300 0 400 0 -400 400 400 -400 400 0 500 0 -500 500 500 -500 500 0 600 0 -600 600 600 -600 600 0 700 0 -700 700 700 -700 700 0 800 0 -800 800 800 -800 800 0 900 0 -900 900 900 -900 900 0 1000 0 -1000 1000 1000 -10...
result:
ok OK, Accepted.
Test #99:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
99
output:
No
result:
ok OK, Accepted.
Test #100:
score: 0
Accepted
time: 0ms
memory: 3848kb
input:
100
output:
Yes 3 2 3 -2 2 0 -2 0 5 4 5 -4 4 0 -4 0 7 6 7 -6 6 0 -6 0 9 8 9 -8 8 0 -8 0 11 10 11 -10 10 0 -10 0 13 12 13 -12 12 0 -12 0 15 14 15 -14 14 0 -14 0 17 16 17 -16 16 0 -16 0 19 18 19 -18 18 0 -18 0 21 20 21 -20 20 0 -20 0 23 22 23 -22 22 0 -22 0 25 24 25 -24 24 0 -24 0 27 26 27 -26 26 0 -26 0 29 28 29...
result:
ok OK, Accepted.
Extra Test:
score: 0
Extra Test Passed