QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#509089 | #8041. Life is Hard and Undecidable, but... | 333zhan | WA | 0ms | 3800kb | C++20 | 663b | 2024-08-08 09:55:45 | 2024-08-08 09:55:46 |
Judging History
answer
#include <bits/stdc++.h>
#define int long long
using namespace std;
inline int read () {
int w = 1, s = 0; char ch = getchar ();
for (; ! isdigit (ch); ch = getchar ()) if (ch == '-') w = -1;
for (; isdigit (ch); ch = getchar ()) s = (s << 1) + (s << 3) + (ch ^ 48);
return s * w;
}
void solve () {
int n = read ();
printf ("%lld\n", 2 * n - 1);
for (int i = 1; i <= 2 * n - 1; i ++) {
printf ("1 %lld\n", i);
}
}
signed main () {
// ios::sync_with_stdio (false);
// cin.tie (nullptr);
int T = 1;
// cin >> T;
// T = read ();
while (T --) {
solve ();
}
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3800kb
input:
1
output:
1 1 1
result:
ok n=1
Test #2:
score: -100
Wrong Answer
time: 0ms
memory: 3792kb
input:
2
output:
3 1 1 1 2 1 3
result:
wrong answer Alive at generation 2