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(){
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]);
}
}
# | 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... |