QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#763300 | #7619. Make SYSU Great Again I | rotcar07 | WA | 0ms | 3660kb | C++23 | 221b | 2024-11-19 19:27:54 | 2024-11-19 19:27:57 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,k;cin>>n>>k;
int x=1,y=1;
for(int i=1;i<=k;i++){
cout<<x<<' '<<y<<'\n';
if(i&1) x=x%n+1;
else y=y%n+1;
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3660kb
input:
3 6
output:
1 1 2 1 2 2 3 2 3 3 1 3
result:
ok The answer is correct.
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3628kb
input:
3 7
output:
1 1 2 1 2 2 3 2 3 3 1 3 1 1
result:
wrong answer The answer is wrong: Multiple numbers filled in a grid.