QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#541374#8934. Challenge NPCucup-team4508#WA 14ms3884kbC++14483b2024-08-31 19:14:582024-08-31 19:14:58

Judging History

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

  • [2024-08-31 19:14:58]
  • 评测
  • 测评结果:WA
  • 用时:14ms
  • 内存:3884kb
  • [2024-08-31 19:14:58]
  • 提交

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 251000 2\n");
	for(i=1;i<=1002;i++){
		if(i%2==1) printf("1 ");
		else printf("2 ");
	}
	printf("\n");
	LL sum=0;
	for(i=3;i<=1002;i++){
		if(i%2==1){
			for(j=2;j<=i;j+=2)
			  printf("%lld %lld\n",i,j),sum++;
		}
		else{
			for(j=1;j<=i;j+=2)
			  printf("%lld %lld\n",i,j),sum++;
		}
	}
	return 0;
} 

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 14ms
memory: 3884kb

input:

1

output:

1002 251000 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:

ok ok

Test #2:

score: -100
Wrong Answer
time: 14ms
memory: 3788kb

input:

2

output:

1002 251000 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 answer The graph is not correct