#include<stdio.h>
int main(){
long long int n,k,i,j;
scanf("%lld %lld",&n,&k);
long long int arr[n];
for(i=0;i<n;i++){
scanf("%lld",&arr[i]);
}
for(i=0;i<=n*k;i++){
if(arr[i+1]<arr[i]){
int t=arr[i+1];
arr[i+1]=arr[i];
arr[i]=t;
}
}
for(i=0;i<n;i++){
printf("%lld ",arr[i]);
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
0 ms |
1084 KB |
SIGSEGV Segmentation fault |
2 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
3 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
4 |
Runtime error |
0 ms |
1084 KB |
SIGSEGV Segmentation fault |
5 |
Incorrect |
0 ms |
1084 KB |
Output isn't correct |
6 |
Runtime error |
0 ms |
1084 KB |
SIGSEGV Segmentation fault |
7 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
2 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
3 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
4 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
5 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
6 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
7 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
8 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
9 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
10 |
Runtime error |
0 ms |
1080 KB |
SIGSEGV Segmentation fault |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
10 ms |
1736 KB |
SIGSEGV Segmentation fault |
2 |
Runtime error |
8 ms |
1256 KB |
SIGSEGV Segmentation fault |
3 |
Runtime error |
11 ms |
1736 KB |
SIGSEGV Segmentation fault |
4 |
Runtime error |
19 ms |
1740 KB |
SIGSEGV Segmentation fault |
5 |
Runtime error |
25 ms |
1732 KB |
SIGSEGV Segmentation fault |
6 |
Runtime error |
13 ms |
1652 KB |
SIGSEGV Segmentation fault |
7 |
Incorrect |
0 ms |
1744 KB |
Output isn't correct |
8 |
Runtime error |
24 ms |
1736 KB |
SIGSEGV Segmentation fault |
9 |
Runtime error |
15 ms |
1500 KB |
SIGSEGV Segmentation fault |
10 |
Runtime error |
15 ms |
1736 KB |
SIGSEGV Segmentation fault |
11 |
Runtime error |
21 ms |
1736 KB |
SIGSEGV Segmentation fault |
12 |
Runtime error |
12 ms |
1740 KB |
SIGSEGV Segmentation fault |
13 |
Runtime error |
0 ms |
1580 KB |
SIGSEGV Segmentation fault |
14 |
Runtime error |
0 ms |
1736 KB |
SIGSEGV Segmentation fault |
15 |
Runtime error |
18 ms |
1736 KB |
SIGSEGV Segmentation fault |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Runtime error |
14 ms |
1736 KB |
SIGSEGV Segmentation fault |
2 |
Runtime error |
19 ms |
1740 KB |
SIGSEGV Segmentation fault |
3 |
Runtime error |
8 ms |
1260 KB |
SIGSEGV Segmentation fault |
4 |
Runtime error |
16 ms |
1648 KB |
SIGSEGV Segmentation fault |
5 |
Runtime error |
12 ms |
1736 KB |
SIGSEGV Segmentation fault |
6 |
Runtime error |
20 ms |
1732 KB |
SIGSEGV Segmentation fault |
7 |
Runtime error |
12 ms |
1576 KB |
SIGSEGV Segmentation fault |
8 |
Runtime error |
20 ms |
1740 KB |
SIGSEGV Segmentation fault |
9 |
Runtime error |
0 ms |
1504 KB |
SIGSEGV Segmentation fault |
10 |
Runtime error |
0 ms |
1736 KB |
SIGSEGV Segmentation fault |
11 |
Runtime error |
17 ms |
1740 KB |
SIGSEGV Segmentation fault |
12 |
Runtime error |
0 ms |
1736 KB |
SIGSEGV Segmentation fault |
13 |
Runtime error |
21 ms |
1732 KB |
SIGSEGV Segmentation fault |
14 |
Runtime error |
0 ms |
1736 KB |
SIGSEGV Segmentation fault |
15 |
Incorrect |
26 ms |
1744 KB |
Output isn't correct |