제출 #15642

#제출 시각아이디문제언어결과실행 시간메모리
15642ggoh버블 정렬 (OJUZ10_bubblesort)C++98
0 / 100
92 ms5828 KiB
#include<cstdio> #include<set> int a,b,i,x; std::multiset<int>S; std::multiset<int>::iterator t; main() { scanf("%d%d",&a,&b); for(i=0;i<=b;i++) { scanf("%d",&x); S.insert(x); } for(;!S.empty();i++) { t=S.begin(); printf("%d ",*t); S.erase(t); if(i<a)scanf("%d",&x),S.insert(x); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...