QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#801559#8934. Challenge NPCNoobie_99#WA 18ms5192kbC++20785b2024-12-07 02:15:512024-12-07 02:15:52

Judging History

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

  • [2024-12-07 02:15:52]
  • 评测
  • 测评结果:WA
  • 用时:18ms
  • 内存:5192kb
  • [2024-12-07 02:15:51]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define all(x) ::begin(x), ::end(x)
void _d(auto... x) { ((cerr << ' ' << x), ...) << endl; }
#define debug(x...) cerr << "["#x"]:", _d(x)

int main() {
    cin.tie(0)->sync_with_stdio(0);

    int k;
    cin >> k;

    int n = 1004;

    vector<pair<int, int>> edges;
    vector<int> col(n);
    for (int i=0; i<n; i++) col[i] = i % 2;

    for (int i=0; i<n/2; i++) {
        for (int j=i+1; j<n/2; j++) {
            edges.emplace_back(2*i, 2*j+1);
            edges.emplace_back(2*i+1, 2*j);
        }
    }

    cout << n << ' ' << ssize(edges) << '\n';
    for (int e : col) cout << e+1 << ' ';
    cout << '\n';
    for (auto [u, v] : edges) cout << u+1 << ' ' << v+1 << '\n';
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 18ms
memory: 5192kb

input:

1

output:

1004 251502
1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 1 2 ...

result:

wrong answer Integer parameter [name=col] equals to 2, violates the range [1, 1]