QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#817550 | #8934. Challenge NPC | KKT89 | WA | 0ms | 3652kb | C++20 | 977b | 2024-12-17 02:14:38 | 2024-12-17 02:14:38 |
Judging History
answer
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef unsigned long long int ull;
mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());
ll myRand(ll B) { return (ull)rng() % B; }
int main() {
cin.tie(nullptr);
ios::sync_with_stdio(false);
int n;
cin >> n;
vector<pair<int, int>> v;
v.emplace_back(3, 2);
v.emplace_back(4, 1);
int cur = 3;
for (int i = 0; i < n; ++i) {
cur += 2;
for (int j = cur - 1; j >= 1; j -= 2) {
v.emplace_back(j, cur);
}
for (int j = cur - 3; j >= 1; j -= 2) {
v.emplace_back(j, cur + 1);
}
}
cout << 4 + 2 * n << " " << v.size() << " " << 2 << '\n';
for (int i = 0; i < 4 + 2 * n; ++i) {
cout << i % 2 + 1 << " ";
}
cout << '\n';
for (auto &i : v) {
cout << i.first << " " << i.second << '\n';
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3652kb
input:
1
output:
6 5 2 1 2 1 2 1 2 3 2 4 1 4 5 2 5 2 6
result:
wrong answer The graph is not correct