提交记录 13163
| 提交时间 |
评测时间 |
| 2020-07-27 11:23:10 |
2020-08-01 03:05:27 |
#include <bits/stdc++.h>
using namespace std;
vector<pair<unsigned,int> >v[1048579];
void sort(unsigned *a, int n) {
int i,j=-1,k;
vector<pair<unsigned,int> >::iterator it;
for(i=0;i<n;++i){
k=a[i]>>12,it=lower_bound(v[k].begin(),v[k].end(),pair<unsigned,int>{a[i],0});
if(it->first==a[i])++it->second;
else v[k].insert(it,pair<unsigned,int>{a[i],1});
}
for(i=0;i<1048576;++i){
for(auto o:v[i]){
for(k=o.second;k;--k)a[++j]=o.first;
}
}
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 2.821 ms | 24 MB + 32 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-03-24 20:16:08 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠