QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#538199#8934. Challenge NPCucup-team4736#WA 0ms3684kbC++14371b2024-08-31 08:50:052024-08-31 08:50:05

Judging History

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

  • [2024-08-31 08:50:05]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3684kb
  • [2024-08-31 08:50:05]
  • 提交

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

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1

output:

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

result:

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