# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
26512 | Nirjhor | Carnival (CEOI14_carnival) | C++14 | 9 ms | 2020 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
const int N = 155;
int n, sz;
vector <int> v;
int color[N];
bitset <N> done;
int main() {
cin >> n;
v.push_back(1);
sz = 1, done[1] = 1;
for (int i = 2; i <= n; ++i) {
cout << sz + 1 << " ";
for (int x : v) {
cout << x << " ";
}
cout << i << endl;
int distinct;
cin >> distinct;
if (distinct == sz + 1) {
++sz, done[i] = 1;
v.push_back(i);
}
}
for (int i = 0; i < sz; ++i) {
color[v[i]] = i + 1;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |