QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#283119 | #7619. Make SYSU Great Again I | Evier | WA | 0ms | 3592kb | C++14 | 351b | 2023-12-13 21:12:27 | 2023-12-13 21:12:27 |
Judging History
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