QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#536063 | #7619. Make SYSU Great Again I | Foedere0 | WA | 0ms | 3636kb | C++23 | 1004b | 2024-08-28 18:10:33 | 2024-08-28 18:10:33 |
Judging History
answer
#include <bits/stdc++.h>
#define int long long
#define endl '\n'
using namespace std;
typedef pair<int, int> PII;
const int N = 1000010;
int mod = 998244353;
int n, m;
void solve()
{
cin >> n >> m;
int o = 1, p = 1;
for (int i = 1; i <= 2 * n; i++)
{
cout << o << " " << p << endl;
if (i % 2 == 0)
o++;
if (i % 2 != 0)
p = n + 1 - p;
}
o = 1, p = 2;
bool st = 0;
for (int i = 2 * n + 1; i <= m; i++)
{
if (o == n + 1)
{
o = n;
p++;
st = 1;
}
if (o == 0)
{
o = 1;
p++;
st = 0;
}
cout << o << " " << p << endl;
if (!st)
o++;
else
o--;
}
}
signed main()
{
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int T = 1;
// cin >> T;
while (T--)
solve();
return 0;
}
详细
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3636kb
input:
3 6
output:
1 1 1 3 2 3 2 1 3 1 3 3
result:
wrong answer The answer is wrong: The maximum common divisor of row 2 and column 1639556224 is not the same.