Submission #18045

#TimeUsernameProblemLanguageResultExecution timeMemory
18045baji072카드 역배치 (KOI15_reversal)C++98
0 / 25
1000 ms1072 KiB
#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 timeMemoryGrader output
Fetching results...