# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
159711 | geon040702 | 카드 역배치 (KOI15_reversal) | C++14 | 2 ms | 504 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 <bits/stdc++.h>
using namespace std;
int card[50];
int main(void)
{
int i;
for(i=0;i<=20;i++) {
card[i] = i;
}
for(i=1;i<=10;i++) {
int a, b;
scanf("%d%d", &a, &b);
reverse(card + a, card + b + 1);
}
for(i=1;i<=20;i++) {
printf("%d ", card[i]);
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |