Submission #993192

# Submission time Handle Problem Language Result Execution time Memory
993192 2024-06-05T12:30:05 Z stdfloat Longest Trip (IOI23_longesttrip) C++17
0 / 100
0 ms 344 KB
#include "bits/stdc++.h"
#include "longesttrip.h"
using namespace std;

vector<int> longest_trip(int n, int D) {
    return {};

    vector<int> v = {0};
    vector<bool> vis(n);
    while ((int)v.size() <= (n >> 1)) {
        assert(!v.empty());

        bool tr = false;
        for (int i = 0; i < n && !tr; i++) {
            if (!vis[i] && are_connected({v.back()}, {i})) {
                v.push_back(i);
                tr = vis[i] = true;
            }
        }

        if (!tr) v.pop_back();
    }

    return v;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB Incorrect
2 Halted 0 ms 0 KB -