Submission #510035

#TimeUsernameProblemLanguageResultExecution timeMemory
510035ElegiaThe Collection Game (BOI21_swaps)C++17
5 / 100
44 ms324 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); stable_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...