# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
840504 | ogkostya | 가장 긴 여행 (IOI23_longesttrip) | C++17 | 21 ms | 332 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#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... |