提交记录 34384
| 提交时间 |
评测时间 |
| 2026-08-14 23:10:30 |
2026-08-14 23:10:48 |
#include <string.h>
typedef unsigned int u32;
static u32 cnt[1024];
void sort(unsigned *a, int n) {
u32 *c1 = cnt, *c2 = cnt + 256, *c3 = cnt + 512, *c4 = cnt + 768;
memset(cnt, 0, sizeof(cnt));
for (int i = 0; i < n; i++) {
u32 x = a[i];
c1[x & 255]++;
c2[(x >> 8) & 255]++;
c3[(x >> 16) & 255]++;
c4[x >> 24]++;
}
// don't distribute (WA expected)
}
| Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
| Testcase #1 | 537.59 us | 416 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #2 | 522.401 ms | 381 MB + 504 KB | Wrong Answer | Score: 0 | 显示更多 |
| Testcase #3 | 1.045 s | 762 MB + 988 KB | Wrong Answer | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2026-09-09 00:10:12 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠