This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<stdio.h>
int main(){
int n,k,i,j;
scanf("%d %d",&n,&k);
int arr[n];
for(i=0;i<n;i++){
scanf("%d",&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("%d ",arr[i]);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |