QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#258927 | #7619. Make SYSU Great Again I | PZheng | WA | 0ms | 3532kb | C++14 | 222b | 2023-11-20 14:05:49 | 2023-11-20 14:05:49 |
Judging History
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;
}
详细
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]