提交记录 19162


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 1001c. 测测你的排序4 Accepted 100 41.67 s 522248 KB C++14 228 B
提交时间 评测时间
2023-02-19 20:49:13 2023-02-19 20:50:00
#include <algorithm>

void sort(unsigned *a, int n) {
	for (int d=n; d=d*.5; ) {
		for (int i=d; i<n; ++i) {
			int j = i;
			do {
				if (a[j-d]<=a[j]) break;
				std::swap (a[j-d], a[j]);
				j -=d;
			} while (j>=d);
		}
	}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #141.67 s510 MB + 8 KBAcceptedScore: 100


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