提交记录 19171


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 1001a. 测测你的排序2 Accepted 100 776.56 us 48 KB C++14 228 B
提交时间 评测时间
2023-02-19 23:23:32 2023-02-19 23:23:34
#include <algorithm>

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


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