# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
840504 | ogkostya | Longest Trip (IOI23_longesttrip) | C++17 | 21 ms | 332 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 "longesttrip.h"
#include <algorithm>
#include <random>
std::vector<int> longest_trip(int N, int D)
{
std::vector<int> pos = {};
for (int i = 0; i < N; i++)
{
pos.push_back(i);
}
// First create an instance of an engine.
std::random_device rd;
std::mt19937 g(rd());
std::shuffle(begin(pos), end(pos), g);
std::vector<int> an1 = {};
std::vector<int> an2 = {};
an1.push_back(pos[0]);
std::vector<int> temp1 = {};
std::vector<int> temp2 = {};
int size = pos.size();
bool endnoconnect = false;
# | 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... |