QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#538202 | #8934. Challenge NPC | ucup-team4736# | AC ✓ | 67ms | 3708kb | C++14 | 462b | 2024-08-31 08:52:14 | 2024-08-31 08:52:15 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define int long long
const int maxn=1e3+5;
int k;
signed main(){
ios::sync_with_stdio(false);
cin.tie(0);cout.tie(0);
cin>>k;k+=2;
cout<<k*2<<" "<<(k-1)*k<<" "<<2<<endl;
for(int i=1;i<=2*k;i++){
if(i&1)cout<<1<<" ";
else cout<<2<<" ";
}
cout<<endl;
for(int i=1;i<=k;i++){
for(int j=i+1;j<=k;j++){
cout<<2*i-1<<" "<<2*j<<endl;
cout<<2*i<<" "<<2*j-1<<endl;
}
}
return 0;
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3708kb
input:
1
output:
6 6 2 1 2 1 2 1 2 1 4 2 3 1 6 2 5 3 6 4 5
result:
ok ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
2
output:
8 12 2 1 2 1 2 1 2 1 2 1 4 2 3 1 6 2 5 1 8 2 7 3 6 4 5 3 8 4 7 5 8 6 7
result:
ok ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
3
output:
10 20 2 1 2 1 2 1 2 1 2 1 2 1 4 2 3 1 6 2 5 1 8 2 7 1 10 2 9 3 6 4 5 3 8 4 7 3 10 4 9 5 8 6 7 5 10 6 9 7 10 8 9
result:
ok ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
4
output:
12 30 2 1 2 1 2 1 2 1 2 1 2 1 2 1 4 2 3 1 6 2 5 1 8 2 7 1 10 2 9 1 12 2 11 3 6 4 5 3 8 4 7 3 10 4 9 3 12 4 11 5 8 6 7 5 10 6 9 5 12 6 11 7 10 8 9 7 12 8 11 9 12 10 11
result:
ok ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
5
output:
14 42 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 4 2 3 1 6 2 5 1 8 2 7 1 10 2 9 1 12 2 11 1 14 2 13 3 6 4 5 3 8 4 7 3 10 4 9 3 12 4 11 3 14 4 13 5 8 6 7 5 10 6 9 5 12 6 11 5 14 6 13 7 10 8 9 7 12 8 11 7 14 8 13 9 12 10 11 9 14 10 13 11 14 12 13
result:
ok ok
Test #6:
score: 0
Accepted
time: 55ms
memory: 3576kb
input:
433
output:
870 188790 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2...
result:
ok ok
Test #7:
score: 0
Accepted
time: 67ms
memory: 3616kb
input:
500
output:
1004 251502 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
result:
ok ok
Test #8:
score: 0
Accepted
time: 64ms
memory: 3608kb
input:
499
output:
1002 250500 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
result:
ok ok
Test #9:
score: 0
Accepted
time: 48ms
memory: 3632kb
input:
457
output:
918 210222 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2...
result:
ok ok
Test #10:
score: 0
Accepted
time: 64ms
memory: 3612kb
input:
497
output:
998 248502 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2...
result:
ok ok
Extra Test:
score: 0
Extra Test Passed