| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 138851 | 陈家宝 | 常用排序法 | C++ | Accepted | 100 | 32 MS | 1160 KB | 251 | 2024-03-19 16:25:25 |
#include<bits/stdc++.h> using namespace std; int n,x,ans; priority_queue<int,vector<int>,greater<int> >q; int main() { cin>>n; for(int i=0;i<n;i++)cin>>x,q.push(x); for(int i=0;i<n;i++){ cout<<q.top()<<" "; q.pop(); } return 0; }