QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#801559 | #8934. Challenge NPC | Noobie_99# | WA | 18ms | 5192kb | C++20 | 785b | 2024-12-07 02:15:51 | 2024-12-07 02:15:52 |
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: 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]