Submission #544662

#TimeUsernameProblemLanguageResultExecution timeMemory
544662pokmui9909카드 역배치 (KOI15_reversal)C++17
25 / 25
1 ms328 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; ll A[25] = {}; int main(){ cin.tie(0) -> sync_with_stdio(false); for(int i = 1; i <= 20; i++){ A[i] = i; } for(int i = 1; i <= 10; i++){ ll L, R; cin >> L >> R; reverse(A + L, A + R + 1); } for(int i = 1; i <= 20; i++){ cout << A[i] << ' '; } }
#Verdict Execution timeMemoryGrader output
Fetching results...