提交记录 61777
| 提交时间 |
评测时间 |
| 2026-09-19 23:06:19 |
2026-09-19 23:06:24 |
// phase probe: only the fixed-stride top-byte scatter (deliberately WA)
#include <stdlib.h>
#include <string.h>
static unsigned fill[256];
void sort(unsigned *a, int n) {
unsigned stride = (unsigned)((n + 255) / 256) + (unsigned)(n >> 9) + 4096;
unsigned *tmp = (unsigned *)malloc((size_t)stride * 256u * 4u);
if (!tmp) return;
memset(fill, 0, sizeof(fill));
for (int i = 0; i < n; i++) {
unsigned v = a[i];
unsigned b = v >> 24;
tmp[(size_t)b * stride + fill[b]] = v;
fill[b]++;
}
/* leave a untouched -> WA, we only want the timing */
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 176.542 ms | 382 MB + 492 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-11-06 15:15:34 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠