QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#266340#7619. Make SYSU Great Again Iucup-team073#WA 0ms3688kbC++20440b2023-11-26 13:09:302023-11-26 13:09:30

Judging History

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

  • [2023-11-26 13:09:30]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3688kb
  • [2023-11-26 13:09:30]
  • 提交

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