QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#355099 | #1837. Hamiltonian | YunQian | AC ✓ | 1ms | 3904kb | C++14 | 2.7kb | 2024-03-16 13:05:50 | 2024-03-16 13:05:51 |
Judging History
answer
#include<bits/stdc++.h>
#define ll long long
#define mk make_pair
#define fi first
#define se second
using namespace std;
inline int read(){
int x=0,f=1;char c=getchar();
for(;(c<'0'||c>'9');c=getchar()){if(c=='-')f=-1;}
for(;(c>='0'&&c<='9');c=getchar())x=x*10+(c&15);
return x*f;
}
const int mod=998244353;
int ksm(int x,int y,int p=mod){
int ans=1;
for(int i=y;i;i>>=1,x=1ll*x*x%p)if(i&1)ans=1ll*ans*x%p;
return ans%p;
}
int inv(int x,int p=mod){return ksm(x,p-2,p)%p;}
mt19937 rnd(time(0));
int randint(int l,int r){return rnd()%(r-l+1)+l;}
void add(int &x,int v){x+=v;if(x>=mod)x-=mod;}
void Mod(int &x){if(x>=mod)x-=mod;}
void cmax(int &x,int v){x=max(x,v);}
void cmin(int &x,int v){x=min(x,v);}
signed main(void){
#ifndef ONLINE_JUDGE
freopen("in.in","r",stdin);
#endif
int K=read(),n=0;
vector<pair<int,int> >ans;
auto adde=[&](int u,int v){ans.emplace_back(mk(u+1,v+1));};
if(K==1){
puts("2 1");
puts("1 2");
return 0;
}
else if(K==2){
puts("4 4");
puts("1 2");
puts("2 3");
puts("3 1");
puts("1 4");
return 0;
}
else if(3<=K&&K<=20){n=K;}
else if(K==21){
n=19;
adde(0,2);
}
else if(22<=K&&K<=30){
n=20;int cnt=K-n-1;
for(int i=0;i<cnt;i++)adde(2*i,(2*i+2)%n);
}
else if(K==31){
n=18;
for(int i=0;i<n;i+=2)adde(i,(i+2)%n); // -> 27
adde(0,4); // -> 29
adde(2,6); // -> 30
adde(4,8); // -> 31
}
else if(32<=K&&K<=40){
n=20;
for(int i=0;i<n;i+=2)adde(i,(i+2)%n);
int cnt=K-31;
for(int i=0;i<cnt;i++)adde(2*i,(2*i+4)%n);
}
else if(K==41){
n=20;
for(int i=0;i<n;i+=2)adde(i,(i+2)%n); // -> 30
for(int i=0;i+4<n;i+=2)adde(i,(i+4)%n); // -> 39
adde(0,6); // -> 41
}
else if(42<=K&&K<=50){
n=20;
for(int i=0;i<n;i+=2)adde(i,(i+2)%n),adde(i,(i+4)%n); // -> 40
int cnt=K-41;
for(int i=0;i<cnt;i++)adde(2*i,(2*i+6)%n);
}
else if(K==51){
n=20;
for(int i=0;i<n;i+=2)adde(i,(i+2)%n); // -> 30
for(int i=0;i<n;i+=2)adde(i,(i+4)%n); // -> 40
for(int i=0;i+4<n;i+=2)adde(i,(i+6)%n); // -> 49
adde(0,8); // -> 51
}
else if(52<=K&&K<=60){
n=20;
for(int i=0;i<n;i+=2)adde(i,(i+2)%n),adde(i,(i+4)%n),adde(i,(i+6)%n); // -> 50
int cnt=K-51;
for(int i=0;i<cnt;i++)adde(2*i,(2*i+8)%n);
}
for(int i=0;i<n;i++)adde(i,(i+1)%n);
cout<<n<<" "<<ans.size()<<endl;
for(auto t:ans)cout<<t.fi<<" "<<t.se<<endl;
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3904kb
input:
1
output:
2 1 1 2
result:
ok correct
Test #2:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
2
output:
4 4 1 2 2 3 3 1 1 4
result:
ok correct
Test #3:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
3
output:
3 3 1 2 2 3 3 1
result:
ok correct
Test #4:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
4
output:
4 4 1 2 2 3 3 4 4 1
result:
ok correct
Test #5:
score: 0
Accepted
time: 0ms
memory: 3900kb
input:
5
output:
5 5 1 2 2 3 3 4 4 5 5 1
result:
ok correct
Test #6:
score: 0
Accepted
time: 0ms
memory: 3888kb
input:
6
output:
6 6 1 2 2 3 3 4 4 5 5 6 6 1
result:
ok correct
Test #7:
score: 0
Accepted
time: 1ms
memory: 3892kb
input:
7
output:
7 7 1 2 2 3 3 4 4 5 5 6 6 7 7 1
result:
ok correct
Test #8:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
8
output:
8 8 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 1
result:
ok correct
Test #9:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
9
output:
9 9 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 1
result:
ok correct
Test #10:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
10
output:
10 10 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 1
result:
ok correct
Test #11:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
11
output:
11 11 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 1
result:
ok correct
Test #12:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
12
output:
12 12 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 1
result:
ok correct
Test #13:
score: 0
Accepted
time: 1ms
memory: 3668kb
input:
13
output:
13 13 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 1
result:
ok correct
Test #14:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
14
output:
14 14 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 1
result:
ok correct
Test #15:
score: 0
Accepted
time: 1ms
memory: 3816kb
input:
15
output:
15 15 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 1
result:
ok correct
Test #16:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
16
output:
16 16 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 1
result:
ok correct
Test #17:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
17
output:
17 17 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 1
result:
ok correct
Test #18:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
18
output:
18 18 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 1
result:
ok correct
Test #19:
score: 0
Accepted
time: 1ms
memory: 3588kb
input:
19
output:
19 19 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 1
result:
ok correct
Test #20:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
20
output:
20 20 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #21:
score: 0
Accepted
time: 1ms
memory: 3616kb
input:
21
output:
19 20 1 3 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 1
result:
ok correct
Test #22:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
22
output:
20 21 1 3 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #23:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
23
output:
20 22 1 3 3 5 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #24:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
24
output:
20 23 1 3 3 5 5 7 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #25:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
25
output:
20 24 1 3 3 5 5 7 7 9 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #26:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
26
output:
20 25 1 3 3 5 5 7 7 9 9 11 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #27:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
27
output:
20 26 1 3 3 5 5 7 7 9 9 11 11 13 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #28:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
28
output:
20 27 1 3 3 5 5 7 7 9 9 11 11 13 13 15 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #29:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
29
output:
20 28 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #30:
score: 0
Accepted
time: 1ms
memory: 3904kb
input:
30
output:
20 29 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #31:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
31
output:
18 30 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 1 1 5 3 7 5 9 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 1
result:
ok correct
Test #32:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
32
output:
20 31 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #33:
score: 0
Accepted
time: 1ms
memory: 3820kb
input:
33
output:
20 32 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #34:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
34
output:
20 33 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #35:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
35
output:
20 34 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 7 11 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #36:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
36
output:
20 35 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 7 11 9 13 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #37:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
37
output:
20 36 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 7 11 9 13 11 15 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #38:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
38
output:
20 37 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 7 11 9 13 11 15 13 17 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #39:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
39
output:
20 38 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 7 11 9 13 11 15 13 17 15 19 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #40:
score: 0
Accepted
time: 1ms
memory: 3724kb
input:
40
output:
20 39 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 7 11 9 13 11 15 13 17 15 19 17 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #41:
score: 0
Accepted
time: 1ms
memory: 3896kb
input:
41
output:
20 39 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 7 11 9 13 11 15 13 17 15 19 1 7 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #42:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
42
output:
20 41 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #43:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
43
output:
20 42 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 3 9 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #44:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
44
output:
20 43 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 3 9 5 11 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #45:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
45
output:
20 44 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 3 9 5 11 7 13 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #46:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
46
output:
20 45 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 3 9 5 11 7 13 9 15 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #47:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
47
output:
20 46 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 3 9 5 11 7 13 9 15 11 17 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #48:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
48
output:
20 47 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 3 9 5 11 7 13 9 15 11 17 13 19 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #49:
score: 0
Accepted
time: 1ms
memory: 3720kb
input:
49
output:
20 48 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 3 9 5 11 7 13 9 15 11 17 13 19 15 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #50:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
50
output:
20 49 1 3 1 5 3 5 3 7 5 7 5 9 7 9 7 11 9 11 9 13 11 13 11 15 13 15 13 17 15 17 15 19 17 19 17 1 19 1 19 3 1 7 3 9 5 11 7 13 9 15 11 17 13 19 15 1 17 3 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #51:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
51
output:
20 49 1 3 3 5 5 7 7 9 9 11 11 13 13 15 15 17 17 19 19 1 1 5 3 7 5 9 7 11 9 13 11 15 13 17 15 19 17 1 19 3 1 7 3 9 5 11 7 13 9 15 11 17 13 19 15 1 1 9 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #52:
score: 0
Accepted
time: 1ms
memory: 3696kb
input:
52
output:
20 51 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #53:
score: 0
Accepted
time: 1ms
memory: 3876kb
input:
53
output:
20 52 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 3 11 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #54:
score: 0
Accepted
time: 1ms
memory: 3900kb
input:
54
output:
20 53 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 3 11 5 13 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #55:
score: 0
Accepted
time: 0ms
memory: 3724kb
input:
55
output:
20 54 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 3 11 5 13 7 15 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #56:
score: 0
Accepted
time: 1ms
memory: 3884kb
input:
56
output:
20 55 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 3 11 5 13 7 15 9 17 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #57:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
57
output:
20 56 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 3 11 5 13 7 15 9 17 11 19 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #58:
score: 0
Accepted
time: 1ms
memory: 3768kb
input:
58
output:
20 57 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 3 11 5 13 7 15 9 17 11 19 13 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #59:
score: 0
Accepted
time: 1ms
memory: 3868kb
input:
59
output:
20 58 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 3 11 5 13 7 15 9 17 11 19 13 1 15 3 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct
Test #60:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
60
output:
20 59 1 3 1 5 1 7 3 5 3 7 3 9 5 7 5 9 5 11 7 9 7 11 7 13 9 11 9 13 9 15 11 13 11 15 11 17 13 15 13 17 13 19 15 17 15 19 15 1 17 19 17 1 17 3 19 1 19 3 19 5 1 9 3 11 5 13 7 15 9 17 11 19 13 1 15 3 17 5 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 1
result:
ok correct