Submission #971488

#TimeUsernameProblemLanguageResultExecution timeMemory
971488CyberCowThe Collection Game (BOI21_swaps)C++17
0 / 100
1 ms596 KiB
#include "swaps.h" #include <vector> using namespace std; void solve(int N, int V) { for (int i = 0; i < V; i++) { if (i % 2) { for (int j = 1; j <= N; j += 2) { schedule(j, j + 1); } } else { for (int j = 2; j <= N; j += 2) { schedule(j, j + 1); } schedule(1, N); } visit(); } vector<int> v; for (int i = 0; i < N; i++) { v.push_back(i + 1); } answer(v); }
#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...