Submission #1016478

#TimeUsernameProblemLanguageResultExecution timeMemory
1016478MohamedFaresNebiliThe Collection Game (BOI21_swaps)C++14
0 / 100
25 ms440 KiB
#include <bits/stdc++.h> #include "swaps.h" using namespace std; bool cmp(int i, int j) { schedule(i, j); vector<int> K = visit(); return K[0] == 1; } void solve(int N, int V) { vector<int> res(N); for(int l = 0; l < N; l++) res[l] = l + 1; sort(res.begin(), res.end(), cmp); answer(res); }
#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...