提交记录 21330
提交时间 |
评测时间 |
2024-02-22 17:54:27 |
2024-02-22 17:54:35 |
void sort(unsigned *a, int n) {
const int maxn = 1 << 27;
static unsigned A[maxn];
for (int i = 0; i < n; ++i) A[a[i] >> 5] |= 1u << (a[i] & 31ull);
for(unsigned i = 0; i < maxn; ++i)
{
while(A[i])
{
int t = __builtin_ctz(A[i]);
*(a++) = (i << 5) + t;
A[i] ^= (1u << t);
}
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 113.095 ms | 273 MB + 616 KB | Accepted | Score: 34 | 显示更多 |
Testcase #2 | 2.666 s | 893 MB + 500 KB | Accepted | Score: 33 | 显示更多 |
Testcase #3 | 3 s | 1274 MB + 980 KB | Time Limit Exceeded | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-07-19 22:43:32 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠