QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#283119#7619. Make SYSU Great Again IEvierWA 0ms3592kbC++14351b2023-12-13 21:12:272023-12-13 21:12:27

Judging History

This is the latest submission verdict.

  • [2023-12-13 21:12:27]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3592kb
  • [2023-12-13 21:12:27]
  • Submitted

answer

#include<bits/stdc++.h>
using namespace std;
int n,k;
int main(){
	cin>>n>>k;
	for(int i=1;i<n;i++){
		cout<<i<<" "<<i<<"\n";
		cout<<i<<" "<<i+1<<"\n";
	}
	cout<<n<<" "<<n<<"\n";
	cout<<n<<" "<<n-1<<"\n";
	int px=1,py=3;
	for(int i=2*n+1;i<=k;i++){
		if(py>=n)++px,py=1;
		while(py==px||py==px+1)++py;
		cout<<px<<" "<<py<<"\n";
	}
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3592kb

input:

3 6

output:

1 1
1 2
2 2
2 3
3 3
3 2

result:

wrong answer The answer is wrong: There are fewer than two numbers in one row or column