Submission #854371

#TimeUsernameProblemLanguageResultExecution timeMemory
854371mychecksedadThe Collection Game (BOI21_swaps)C++17
0 / 100
23 ms592 KiB
#include <swaps.h> #include <bits/stdc++.h> using namespace std; #define ll long long int #define MOD (1000000000+7) #define MOD1 (998244353) #define pb push_back #define all(x) x.begin(), x.end() #define en cout << '\n' void schedule(int, int); vector<int> visit(); void answer(std::vector<int>); vector<int> B; void solv(int l, int r){ sort(all(B), [&](const int &x, const int &y){ schedule(y, x); vector<int> f = visit(); return f[0]; }); } void solve(int N, int V){ for(int i = 1; i <= N; ++i) B.pb(i); solv(1, N); reverse(all(B)); answer(B); }
#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...