#include<stdio.h>
#include<algorithm>
int arr[30],a,b,i;main(){for(a=1;a<21;i++)arr[a]=a;for(;i<10;i++){scanf("%d%d",&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 |