제출 #19108

#제출 시각아이디문제언어결과실행 시간메모리
19108Namnamseo버블 정렬 (OJUZ10_bubblesort)C++14
0 / 100
0 ms1204 KiB
#include <cstdio> #include <queue> using namespace std; int n,k,buf; priority_queue<int> pq; queue<int> q; int main() { freopen("input.txt","r",stdin); scanf("%d%d",&n,&k); for(int i=0;i<=k;++i) scanf("%d",&buf), pq.push(-buf); for(;pq.size();){ printf("%d ",-pq.top()); pq.pop(); if(scanf("%d",&buf)==1) pq.push(-buf); } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...