提交记录 19141


用户 题目 状态 得分 用时 内存 语言 代码长度
user1 1001a. 测测你的排序2 Accepted 100 157.199 ms 48 KB C++14 211 B
提交时间 评测时间
2023-02-08 12:44:58 2023-02-08 12:45:00
#include <algorithm>

void sort(unsigned *a, int n) {
R:
for (int i=1; i<n; ++i) if(__builtin_expect(a[i-1]>a[i],0)) {
std::swap(a[i-1],a[i]);
for (; ++i<n; ) if(a[i-1]>a[i])std::swap(a[i-1],a[i]);
goto R;

}
}

CompilationN/AN/ACompile OKScore: N/A

Testcase #1157.199 ms48 KBAcceptedScore: 100


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