| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1368313 | avighna | Thousands Islands (IOI22_islands) | C++20 | 14 ms | 4328 KiB |
#include <bits/stdc++.h>
using namespace std;
variant<bool, vector<int>> find_journey(int N, int M, vector<int> U, vector<int> V) {
vector<int> rig, lef;
for (int i = 0; i < M; ++i) {
if (U[i] == 0) {
lef.push_back(i);
} else {
rig.push_back(i);
}
}
if (lef.size() < 2 || rig.empty()) {
return false;
}
return vector<int>({lef[0], rig[0], lef[1], lef[0], rig[0], lef[1]});
}
#ifdef MACOS_LOCAL
#include "grader.cpp"
#endif| # | 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... | ||||
