提交记录 5509
| 提交时间 |
评测时间 |
| 2018-08-28 16:57:56 |
2020-08-01 00:18:50 |
#include <stdio.h>
#include <algorithm>
#define MAXN 100001
unsigned a[MAXN];
int Min(int x,int y){
return x<y? x: y;
}
int main() {
fread(a, 1, MAXN * 4, stdin);
int n = a[0];
// Rearrange the ducks a[1] .. a[n] here
for (int i=17;i>=0;--i){
int m=(1<<i)-1;
if (m>=n) continue;
std::nth_element(a+1,a+m,a+Min(n+1,1<<i+1));
}
fwrite(a + 1, 1, n * 4, stdout);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Subtask #1 Testcase #1 | 5.84 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #2 | 8.84 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #3 | 8.37 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #4 | 8.85 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #5 | 162.23 us | 92 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #6 | 328.1 us | 172 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #7 | 455.17 us | 252 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #8 | 652.42 us | 404 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #9 | 877.15 us | 528 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #10 | 1.029 ms | 528 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #11 | 1.316 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #12 | 403.74 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #13 | 380.01 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #14 | 1.3 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #15 | 1.374 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #16 | 1.443 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #17 | 1.627 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #18 | 371.22 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #19 | 1.197 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #20 | 1.561 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-13 18:03:50 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠