제출 #14955

#제출 시각아이디문제언어결과실행 시간메모리
14955abcd123버블 정렬 (OJUZ10_bubblesort)C11
11 / 100
1000 ms1352 KiB
#include<stdio.h> void main() { int size,count,i,j,k,x; int num[100000]; scanf("%d %d",&size,&count); for(i=0;i<size;i++) scanf("%d",&num[i]); for(i=0;i<size;i++) for(j=i+1;j<size;j++) if(num[i] == num[j]) for(k=0;k<size;k++) scanf("%d",&num[k]); 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...