QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#550105 | #8934. Challenge NPC | yzkadbq# | AC ✓ | 83ms | 4976kb | C++14 | 574b | 2024-09-07 09:47:00 | 2024-09-07 09:47:01 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
vector<int> e[1001];
int n,m,k;
int main(){
cin>>k;
k++;
n=2*k,m=0;
for(int i=0;i<k;i++){
for(int j=0;j<i;j++){
e[2*i].push_back(2*j+1);
e[2*i+1].push_back(2*j);
m+=2;
}
}
cout<<n<<" "<<m+1<<" "<<2<<endl;
for(int i=1;i<=k;i++){
cout<<"1 2 ";
}
cout<<endl;
for(int i=0;i<n;i++){
for(int v:e[i]){
cout<<i+1<<" "<<v+1<<endl;
}
}
cout<<n-1<<" "<<n<<endl;
return 0;
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3644kb
input:
1
output:
4 3 2 1 2 1 2 3 2 4 1 3 4
result:
ok ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3708kb
input:
2
output:
6 7 2 1 2 1 2 1 2 3 2 4 1 5 2 5 4 6 1 6 3 5 6
result:
ok ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
3
output:
8 13 2 1 2 1 2 1 2 1 2 3 2 4 1 5 2 5 4 6 1 6 3 7 2 7 4 7 6 8 1 8 3 8 5 7 8
result:
ok ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
4
output:
10 21 2 1 2 1 2 1 2 1 2 1 2 3 2 4 1 5 2 5 4 6 1 6 3 7 2 7 4 7 6 8 1 8 3 8 5 9 2 9 4 9 6 9 8 10 1 10 3 10 5 10 7 9 10
result:
ok ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
5
output:
12 31 2 1 2 1 2 1 2 1 2 1 2 1 2 3 2 4 1 5 2 5 4 6 1 6 3 7 2 7 4 7 6 8 1 8 3 8 5 9 2 9 4 9 6 9 8 10 1 10 3 10 5 10 7 11 2 11 4 11 6 11 8 11 10 12 1 12 3 12 5 12 7 12 9 11 12
result:
ok ok
Test #6:
score: 0
Accepted
time: 35ms
memory: 4644kb
input:
433
output:
868 187923 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 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: 79ms
memory: 4916kb
input:
500
output:
1002 250501 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 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: 56ms
memory: 4920kb
input:
499
output:
1000 249501 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 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: 67ms
memory: 4744kb
input:
457
output:
916 209307 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 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: 83ms
memory: 4976kb
input:
497
output:
996 247507 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 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