QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#252061 | #7619. Make SYSU Great Again I | ucup-team1074 | WA | 1ms | 3620kb | C++17 | 818b | 2023-11-15 15:17:47 | 2023-11-15 15:17:48 |
Judging History
answer
#include<iostream>
#include<math.h>
#include<vector>
#include<unordered_map>
#include<algorithm>
#include<queue>
#include<string.h>
#define ll long long
using namespace std;
void solve()
{
int n,k;
cin>>n>>k;
for(int i=1;i<2*n;i++)
{
if(i%2==0)
cout<<i/2+1<<" "<<i/2<<endl;
else
cout<<i/2+1<<" "<<i/2+1<<endl;
}
int x=1,y=2;
for(int i=2*n;i<=k;i++)
{
if(x==y) y+=2;
if(y>n){
y=1;
x++;
}
cout<<x<<" "<<y<<endl;
y++;
}
}
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
cout.precision(10);
int t;
t=1;
while(t>0)
{
t--;
solve();
}
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3620kb
input:
3 6
output:
1 1 2 1 2 2 3 2 3 3 1 2
result:
wrong answer The answer is wrong: The maximum common divisor of row 3 and column -1980521344 is not the same.