Submission #873412

#TimeUsernameProblemLanguageResultExecution timeMemory
873412Faisal_SaqibThe Collection Game (BOI21_swaps)C++17
3 / 100
27 ms600 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 "swaps.h" #include <iostream> #include <vector> using namespace std; vector<int> DNC(int l,int r) { vector<int> ans; for(int i=1;i<=r;i++) { ans.push_back(i); for(int j=i+1;j<=r;j++) { schedule(i,j); visit(); } } return ans; } void solve(int n, int v) { auto pa=DNC(1,n); answer(pa); }
#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...