QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#538201#8934. Challenge NPCucup-team4736#WA 0ms3560kbC++14462b2024-08-31 08:51:372024-08-31 08:51:44

Judging History

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

  • [2024-08-31 08:51:44]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3560kb
  • [2024-08-31 08:51:37]
  • 提交

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<<0<<" ";
		else cout<<1<<" ";
	}
	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;
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3560kb

input:

1

output:

6 6 2
0 1 0 1 0 1 
1 4
2 3
1 6
2 5
3 6
4 5

result:

wrong answer Integer parameter [name=col] equals to 0, violates the range [1, 2]