提交记录 21330


用户 题目 状态 得分 用时 内存 语言 代码长度
HCCH wc2017b1. 【WC2017】挑战-任务1 Time Limit Exceeded 67 3 s 1305556 KB C++17 334 B
提交时间 评测时间
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);
	}
    }
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1113.095 ms273 MB + 616 KBAcceptedScore: 34

Testcase #22.666 s893 MB + 500 KBAcceptedScore: 33

Testcase #33 s1274 MB + 980 KBTime Limit ExceededScore: 0


Judge Duck Online | 评测鸭在线
Server Time: 2025-07-19 22:43:32 | Loaded in 1 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠