QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#763300#7619. Make SYSU Great Again Irotcar07WA 0ms3660kbC++23221b2024-11-19 19:27:542024-11-19 19:27:57

Judging History

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

  • [2024-11-19 19:27:57]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3660kb
  • [2024-11-19 19:27:54]
  • 提交

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;
    }
}

Details

Tip: Click on the bar to expand more detailed information

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.