提交记录 5228
| 用户 |
题目 |
状态 |
得分 |
用时 |
内存 |
语言 |
代码长度 |
| user1 |
ch7344. 鸭子排队 |
Wrong Answer |
0 |
1.301 ms |
792 KB |
C++ |
300 B |
| 提交时间 |
评测时间 |
| 2018-08-13 16:59:54 |
2020-08-01 00:14:08 |
#include<stdio.h>
#include<algorithm>
#define MAXN 100001
unsigned a[MAXN];
int n;
int main() {
fread(a, 1, MAXN * 4, stdin);
n = a[0];int j;
// Rearrange the ducks a[1] .. a[n] here
for (int i=n;i>1;i=j)j=(i+1)>>1,std::nth_element(a, a+j, a+i);
fwrite(a + 1, 1, n * 4, stdout);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Subtask #1 Testcase #1 | 5.52 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #2 | 8.34 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #3 | 8.6 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #4 | 8.92 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #5 | 125.66 us | 92 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #6 | 282.8 us | 172 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #7 | 355.87 us | 252 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #8 | 657.81 us | 404 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #9 | 936.77 us | 528 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #10 | 888.75 us | 528 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #11 | 1.296 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #12 | 446.59 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #13 | 433.56 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #14 | 1.301 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #15 | 1.213 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #16 | 1.25 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #17 | 1.249 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #18 | 424.41 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #19 | 1.141 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #20 | 1.266 ms | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-12 06:25:02 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠