제출 #581245

#제출 시각아이디문제언어결과실행 시간메모리
581245alontanayThe Collection Game (BOI21_swaps)C++14
0 / 100
2 ms208 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 <bits/stdc++.h> #define f first #define s second using namespace std; using pi = pair<int,int>; void solve(int N, int V) { for(int i = 1; i <= N; i ++) { for(int j = i + 1; j <= N; j ++) { schedule(i,j); visit(); } } vector<int> res(N); for(int i = 0; i < N; i ++) { res[i] = N-i; } answer(res); } /* g++ swaps2.cpp grader.cpp -o g.exe && g.exe 5 1000 2 1 5 3 4 1 1 */ /* 4 1 5 3 4 */
#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...