QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#539964#8934. Challenge NPCucup-team3659#WA 21ms7588kbC++17396b2024-08-31 16:09:072024-08-31 16:09:11

Judging History

你现在查看的是最新测评结果

  • [2024-08-31 16:09:11]
  • 评测
  • 测评结果:WA
  • 用时:21ms
  • 内存:7588kb
  • [2024-08-31 16:09:07]
  • 提交

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"; 
}

Details

Tip: Click on the bar to expand more detailed information

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]