QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#601969#8934. Challenge NPCracxa#WA 2ms8316kbC++14731b2024-09-30 17:01:082024-09-30 17:01:17

Judging History

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

  • [2024-09-30 17:01:17]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:8316kb
  • [2024-09-30 17:01:08]
  • 提交

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]