提交记录 20676


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 wc2017b1. 【WC2017】挑战-任务1 Time Limit Exceeded 67 3 s 1305556 KB C++ 408 B
提交时间 评测时间
2023-12-01 16:04:36 2023-12-01 16:04:44
unsigned long long A[1<<26];
void sort(unsigned *a, int n) {
	for (int i=0; i<n; ++i) asm("bts %1, %0": "=m"(A[1<<25]): "r"(a[i]));
	for (int i=0; i<1<<25; ++i) {
		unsigned long long t = A[(1<<25)+i];
		while (t) {
			*a++ = i * 64u + __builtin_ctzll(t); t &= t-1; }}
	for (int i=-1<<25; i<0; ++i) {
		unsigned long long t = A[(1<<25)+i];
		while (t) {
			*a++ = i * 64u + __builtin_ctzll(t); t &= t-1; }}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1132.418 ms273 MB + 616 KBAcceptedScore: 34

Testcase #22.924 s893 MB + 500 KBAcceptedScore: 33

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


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