提交记录 5504
| 提交时间 |
评测时间 |
| 2018-08-28 16:39:27 |
2020-08-01 00:18:45 |
#include <stdio.h>
#define MAXN 100001
unsigned a[MAXN];
int main() {
fread(a, 1, MAXN * 4, stdin);
int n = a[0];
// Rearrange the ducks a[1] .. a[n] here
for (int i=n;i>1;--i){
unsigned &x=a[i>>1], &y=a[i];
if (x>y) x^=y^=x^=y;
}
fwrite(a + 1, 1, n * 4, stdout);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Subtask #1 Testcase #1 | 5.31 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #2 | 6.2 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #3 | 6.35 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #4 | 5.95 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #5 | 57.88 us | 92 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #6 | 111.98 us | 172 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #7 | 162.36 us | 252 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #8 | 271.42 us | 404 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #9 | 357.91 us | 528 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #10 | 357.3 us | 528 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #11 | 543.32 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #12 | 199.02 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #13 | 241.72 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #14 | 477.31 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #15 | 198.11 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #16 | 542.72 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #17 | 541.42 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #18 | 242.84 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #19 | 198.95 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #20 | 542.74 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-11-23 10:21:37 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠