답안 #18045

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
18045 2016-01-19T00:48:49 Z baji072 카드 역배치 (KOI15_reversal) C++
0 / 25
1000 ms 1072 KB
#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]);
}
# 결과 실행 시간 메모리 Grader output
1 Execution timed out 1000 ms 1072 KB Program timed out
2 Execution timed out 1000 ms 1072 KB Program timed out
3 Execution timed out 1000 ms 1072 KB Program timed out
4 Execution timed out 1000 ms 1072 KB Program timed out
5 Execution timed out 1000 ms 1072 KB Program timed out
6 Execution timed out 1000 ms 1072 KB Program timed out
7 Execution timed out 1000 ms 1072 KB Program timed out
8 Execution timed out 1000 ms 1072 KB Program timed out
9 Execution timed out 1000 ms 1072 KB Program timed out
10 Execution timed out 1000 ms 1072 KB Program timed out
11 Execution timed out 1000 ms 1072 KB Program timed out
12 Execution timed out 1000 ms 1072 KB Program timed out
13 Execution timed out 1000 ms 1072 KB Program timed out
14 Execution timed out 1000 ms 1072 KB Program timed out
15 Execution timed out 1000 ms 1072 KB Program timed out
16 Execution timed out 1000 ms 1072 KB Program timed out
17 Execution timed out 1000 ms 1072 KB Program timed out
18 Execution timed out 1000 ms 1072 KB Program timed out
19 Execution timed out 1000 ms 1072 KB Program timed out
20 Execution timed out 1000 ms 1072 KB Program timed out