Submission #18467

#TimeUsernameProblemLanguageResultExecution timeMemory
18467eaststar카드 역배치 (KOI15_reversal)C++14
25 / 25
0 ms1084 KiB
#include <stdio.h> #include <algorithm> using namespace std; int a[21]; int main(){ int i,s,e; for(i=1;i<21;++i)a[i]=i; for(i=1;i<11;++i){ scanf("%d%d",&s,&e); reverse(a+s,a+e+1); } for(i=1;i<21;++i)printf("%d ",a[i]); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...