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>
void main()
{
int size,count,i,j,x;
int num[100];
scanf("%d %d",&size,&count);
for(i=0;i<size;i++)
scanf("%d",&num[i]);
num[size] = '\0';
for(j=0;j<count;j++){
for(i=1;i<size;i++){
if(num[i-1] > num[i]){
x = num[i-1];
num[i-1] = num[i];
num[i] = x;
}
}
}
for(i=0;i<size;i++)
printf("%d ",num[i]);
//system("PAUSE");
}
# | 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... |