QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#539964 | #8934. Challenge NPC | ucup-team3659# | WA | 21ms | 7588kb | C++17 | 396b | 2024-08-31 16:09:07 | 2024-08-31 16:09:11 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int n=512;
struct edge
{
int u,v;
}a[2000005];
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int m=0;
for(int i=1;i<=n;i++)
{
for(int j=1;j<i;j++)
{
a[++m]={2*i-1,2*j};
a[++m]={2*j-1,2*i};
}
}
cout<<2*n<<" "<<m<<" "<<2<<"\n";
for(int i=1;i<=m;i++)
cout<<a[i].u<<" "<<a[i].v<<"\n";
}
详细
Test #1:
score: 0
Wrong Answer
time: 21ms
memory: 7588kb
input:
1
output:
1024 261632 2 3 2 1 4 5 2 1 6 5 4 3 6 7 2 1 8 7 4 3 8 7 6 5 8 9 2 1 10 9 4 3 10 9 6 5 10 9 8 7 10 11 2 1 12 11 4 3 12 11 6 5 12 11 8 7 12 11 10 9 12 13 2 1 14 13 4 3 14 13 6 5 14 13 8 7 14 13 10 9 14 13 12 11 14 15 2 1 16 15 4 3 16 15 6 5 16 15 8 7 16 15 10 9 16 15 12 11 16 15 14 13 16 17 2 1 18 17 ...
result:
wrong answer Integer parameter [name=col] equals to 3, violates the range [1, 2]