Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
167022 | C班 郑筱橦 | 常用排序法 | C++ | 编译错误 | 0 | 0 MS | 0 KB | 377 | 2024-08-19 15:49:20 |
#include<bits/stdc++.h> using namespace std; int main (){ int a[100000]; void InsertSort(int n){ for(int i=2; i<=n; i++) { int temp=a[i]; int j=i-1; while(j>=1 && temp<a[j]) { a[j+1]=a[j]; --j; } a[++j]=temp; } } return 0; }