QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#258927#7619. Make SYSU Great Again IPZhengWA 0ms3532kbC++14222b2023-11-20 14:05:492023-11-20 14:05:49

Judging History

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

  • [2023-11-20 14:05:49]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3532kb
  • [2023-11-20 14:05:49]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n,k;
	cin>>n>>k;
	cout<<1<<' '<<1<<endl;
	for(int i=2;i<k;i++){
		cout<<(i+1)/2<<' '<<(i+2)/2<<endl;
	}
	cout<<(k+1)/2<<' '<<1<<endl;
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3532kb

input:

3 6

output:

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

result:

ok The answer is correct.

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3532kb

input:

3 7

output:

1 1
1 2
2 2
2 3
3 3
3 4
4 1

result:

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