提交记录 5953
| 提交时间 |
评测时间 |
| 2018-09-13 18:53:33 |
2020-08-01 00:37:23 |
#include <stdio.h>
const int MAXN = 100001;
unsigned a[MAXN];
int n;
void shift(int x){
int i = x, j;
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;
}
}
int main() {
fread(a, 1, MAXN * 4, stdin);
n = a[0];
for (int i = n / 2; i ; --i) shift(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.62 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #2 | 6.65 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #3 | 7.67 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #4 | 6.78 us | 20 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #5 | 91.41 us | 92 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #6 | 178.32 us | 172 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #7 | 263.75 us | 252 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #8 | 431.19 us | 404 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #9 | 562.25 us | 528 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #10 | 565.71 us | 528 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #11 | 872.51 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #12 | 250.17 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #13 | 399.46 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #14 | 772.74 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #15 | 412.39 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #16 | 866.04 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #17 | 875.12 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #18 | 597.49 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #19 | 411.88 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
| Subtask #1 Testcase #20 | 870.73 us | 792 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-04-10 23:34:15 | Loaded in 2 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠