Submission #510034

#TimeUsernameProblemLanguageResultExecution timeMemory
510034ElegiaThe Collection Game (BOI21_swaps)C++17
0 / 100
47 ms272 KiB
// // --- Sample implementation for the task swaps --- // // To compile this program with the sample grader, place: // swaps.h swaps_sample.cpp sample_grader.cpp // in a single folder and run: // g++ swaps_sample.cpp sample_grader.cpp // in this folder. // #include <cstdarg> #include <cstdio> #include <cstdlib> #include <set> #include <vector> #include <algorithm> #include <numeric> #include "swaps.h" using namespace std; void solve(int N, int V) { vector<int> ans(N); iota(ans.begin(), ans.end(), 1); sort(ans.begin(), ans.end(), [&](int x, int y) { schedule(x, y); return visit()[0]; }); answer(ans); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...