QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#801558 | #8934. Challenge NPC | Noobie_99# | WA | 18ms | 5372kb | C++20 | 783b | 2024-12-07 02:14:47 | 2024-12-07 02:14:49 |
Judging History
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';
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 18ms
memory: 5372kb
input:
1
output:
1004 251502 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 ...
result:
wrong answer Integer parameter [name=col] equals to 2, violates the range [1, 1]