# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
20114 | hongjun7 | 카드 역배치 (KOI15_reversal) | C++14 | 0 ms | 1084 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <cstdio>
#include <algorithm>
using namespace std;
int a[22], l, r;
int main() {
for (int i = 1; i <= 20; i++) a[i] = i;
for (int i = 1; i <= 10; i++) {
scanf("%d%d", &l, &r);
reverse(a + l, a + r + 1);
}
for (int i = 1; i <= 20; i++)printf("%d ", a[i]);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |