QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#817550#8934. Challenge NPCKKT89WA 0ms3652kbC++20977b2024-12-17 02:14:382024-12-17 02:14:38

Judging History

你现在查看的是最新测评结果

  • [2024-12-17 02:14:38]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3652kb
  • [2024-12-17 02:14:38]
  • 提交

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