QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#109249#5528. Least Annoying Constructive ProblemchenshiWA 1ms1604kbC++261b2023-05-28 00:33:142023-05-28 00:33:18

Judging History

This is the latest submission verdict.

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-05-28 00:33:18]
  • Judged
  • Verdict: WA
  • Time: 1ms
  • Memory: 1604kb
  • [2023-05-28 00:33:14]
  • Submitted

answer

#include<cstdio>
using namespace std;
int n;
int main(){
	scanf("%d",&n);
	for(int i=1,t=(n-1)/2*2+1;i<=t;++i){
		for(int T=t/2,j=i,k=i%t+1;T--;j=(j+t-2)%t+1,k=k%t+1) printf("%d %d\n",j,k);
		if(n%2==0) printf("%d %d\n",(i+t/2)%t+1,n);
	}
	return 0;
}

详细

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 1604kb

input:

3

output:

1 2
2 3
3 1

result:

wrong answer Integer 1 violates the range [4, 3]