QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#541355#8934. Challenge NPCucup-team4508#WA 11ms3948kbC++14462b2024-08-31 19:12:512024-08-31 19:12:51

Judging History

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

  • [2024-08-31 19:12:51]
  • 评测
  • 测评结果:WA
  • 用时:11ms
  • 内存:3948kb
  • [2024-08-31 19:12:51]
  • 提交

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

Details

Tip: Click on the bar to expand more detailed information

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