# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
18045 | baji072 | 카드 역배치 (KOI15_reversal) | C++98 | 1000 ms | 1072 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<stdio.h>
#include<algorithm>
int arr[30],a,b,i;
int main(){
for(a=1;a<21;i++)arr[a]=a;
for(i=0;i<10;i++)
{
scanf("%d %d\n",&a,&b);
std::reverse(arr+a,arr+b+1);
}
for(i=1;i<21;i++)printf("%d ",arr[i]);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |