QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#601969 | #8934. Challenge NPC | racxa# | WA | 2ms | 8316kb | C++14 | 731b | 2024-09-30 17:01:08 | 2024-09-30 17:01:17 |
Judging History
answer
#include <bits/stdc++.h>
#define ll long long
#define pii pair<int, int>
#define ff first
#define ss second
using namespace std;
const int N = 2e5 + 10;
vector<int> g[N];
int main() {
ios_base::sync_with_stdio(false); cin.tie(0);
int k;
cin >> k;
int edges = 0;
int n = (k + 2);
for(int i = 1; i <= 2 * n; i++) {
int start = (i & 1 ? i - 1 : i - 3);
for(int j = start; j > 0; j -= 2) {
g[i].push_back(j);
edges++;
}
}
cout << 2 * n << " " << edges << " " << 2 << "\n";
for(int v = 1; v <= 2 * n; v++) {
for(int u : g[v]) {
cout << v << " " << u << "\n";
}
}
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 2ms
memory: 8316kb
input:
1
output:
6 6 2 3 2 4 1 5 4 5 2 6 3 6 1
result:
wrong answer Integer parameter [name=col] equals to 3, violates the range [1, 2]