提交记录 19173


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

void sort(unsigned *a, int n) {
	for (int d=n; d=d*.7; ) {
		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 #118.762 s510 MB + 8 KBAcceptedScore: 100


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