Submission #19109

#TimeUsernameProblemLanguageResultExecution timeMemory
19109Namnamseo버블 정렬 (OJUZ10_bubblesort)C++14
0 / 100
281 ms1980 KiB
#include <cstdio> #include <queue> using namespace std; int n,k,buf; priority_queue<int> pq; queue<int> q; int main() { 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...