QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#266340 | #7619. Make SYSU Great Again I | ucup-team073# | WA | 0ms | 3688kb | C++20 | 440b | 2023-11-26 13:09:30 | 2023-11-26 13:09:30 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int n,k;cin>>n>>k;
for(int i=1;i<n;++i)cout<<i<<' '<<i<<endl<<i<<' '<<i+1<<endl;
cout<<n<<' '<<n<<endl;cout<<1<<' '<<n<<endl;
int curx=1,cury=1;
for(int i=n*2+1;i<=k;++i){
if(curx==cury||curx+1==cury||(curx==1&&cury==n)){
++cury;
if(cury==n+1)cury=1,curx++;
}
cout<<curx<<' '<<cury<<endl;
}
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3688kb
input:
3 6
output:
1 1 1 2 2 2 2 3 3 3 1 3
result:
wrong answer The answer is wrong: There are fewer than two numbers in one row or column