QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#541355 | #8934. Challenge NPC | ucup-team4508# | WA | 11ms | 3948kb | C++14 | 462b | 2024-08-31 19:12:51 | 2024-08-31 19:12:51 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define LL long long
LL n,i,j,k,m,t,useless;
LL a[500005];
int main(){
scanf("%lld",&useless);
printf("1002 250500 2\n");
for(i=1;i<=1002;i++){
if(i%2==1) printf("1 ");
else printf("2 ");
}
printf("\n");
for(i=3;i<=1002;i++){
if(i%2==1){
for(j=2;j<=i;j+=2)
printf("%lld %lld\n",i,j);
}
else{
for(j=1;j<=i;j+=2)
printf("%lld %lld\n",i,j);
}
}
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 11ms
memory: 3948kb
input:
1
output:
1002 250500 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 ...
result:
wrong output format Extra information in the output file