提交记录 5952
| 提交时间 |
评测时间 |
| 2018-09-13 18:51:51 |
2020-08-01 00:37:22 |
#include <stdio.h>
const int MAXN = 100001;
unsigned a[MAXN];
int n;
int main() {
fread(a, 1, MAXN * 2, stdin);
for (register int o = (n = a[0]) / 2, i, j; o ; --o) {
i = o;
while ((j = i << 1) <= n){
if (j + 1 <= n && a[j | 1] < a[j]) ++j;
if (a[i] < a[j]) break;
a[i] ^= a[j] ^= a[i] ^= a[j], i = j;
}
}
fwrite(a + 1, 1, n * 2, stdout);
return 0;
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Subtask #1 Testcase #1 | 5.99 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #2 | 6.66 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #3 | 7.46 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #4 | 7.56 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #5 | 87.35 us | 72 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #6 | 165.22 us | 132 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #7 | 243.89 us | 192 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #8 | 401.4 us | 308 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #9 | 392.03 us | 400 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #10 | 388.86 us | 400 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #11 | 368.3 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #12 | 290.45 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #13 | 300.58 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #14 | 304.13 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #15 | 288.3 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #16 | 367.88 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #17 | 369.53 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #18 | 305.52 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #19 | 286.67 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #20 | 367.37 us | 596 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-10 23:33:50 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠