提交记录 19180
提交时间 |
评测时间 |
2023-02-20 00:04:05 |
2023-02-20 00:04:11 |
#include <algorithm>
void sort(unsigned *a, int n) {
for (int d=n; d=d*.65; ) {int i=d;
if(d%4==1)goto L1;
if(d%4==2)goto L2;
if(d%4==3)goto L3;
for (; i<n; ) {
{int j = i;
do {
if (a[j-d]<=a[j]) break;
std::swap (a[j-d], a[j]);
j -=d;
} while (j>=d);}++i;L3:
{int j = i;
do {
if (a[j-d]<=a[j]) break;
std::swap (a[j-d], a[j]);
j -=d;
} while (j>=d);}++i;L2:
{int j = i;
do {
if (a[j-d]<=a[j]) break;
std::swap (a[j-d], a[j]);
j -=d;
} while (j>=d);}++i;L1:
{int j = i;
do {
if (a[j-d]<=a[j]) break;
std::swap (a[j-d], a[j]);
j -=d;
} while (j>=d);}++i;
}
}
}
Compilation | N/A | N/A | Compile OK | Score: N/A | 显示更多 |
Testcase #1 | 99.336 ms | 354 MB + 424 KB | Runtime Error | Score: 0 | 显示更多 |
Judge Duck Online | 评测鸭在线
Server Time: 2025-09-15 22:56:41 | Loaded in 0 ms | Server Status
个人娱乐项目,仅供学习交流使用 | 捐赠