QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#538199 | #8934. Challenge NPC | ucup-team4736# | WA | 0ms | 3684kb | C++14 | 371b | 2024-08-31 08:50:05 | 2024-08-31 08:50:05 |
Judging History
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]