# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
944940 | gelastropod | 카멜레온의 사랑 (JOI20_chameleon) | C++14 | 14 ms | 448 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 "chameleon.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;
namespace {
int variable_example = 1;
} // namespace
void Solve(int N) {
vector<int> done(2 * N, false);
for (int i = 0; i < 2 * N; i++)
{
if (done[i])
continue;
for (int j = 0; j < 2 * N; j++)
{
if (done[j])
continue;
if (i != j)
{
vector<int> a = {i + 1, j + 1};
int b = Query(a);
if (b == 1)
{
done[i] = true;
done[j] = true;
Answer(i + 1, j + 1);
break;
}
}
}
}
}
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... |