| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1357273 | retr0foxx | Chameleon's Love (JOI20_chameleon) | C++20 | 17 ms | 428 KiB |
#include "chameleon.h"
#include <vector>
#include <iostream>
namespace {
} // namespace
void Solve(int N) {
for (int i = 1; i <= 2*N; ++i)
{
for (int j = i+1; j <= 2*N; ++j)
{
int pv = Query(std::vector<int>{i, j});
// printf("%i, %i -> %i\n", i, j, pv);
if (pv == 1)
{
Answer(i, j);
// printf("%i and %i\n", i, j);
}
}
}
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
