摘要:
点击查看代码 #include <iostream> #include <ctime> using namespace std; const int N = 1e5 + 10; int n; int a[N]; //从小到大 //插入排序 //第一个元素默认有序,然后从第二个元素开始与前面所有元素比 阅读全文
摘要:
include include using namespace std; const int N = 1e5 + 10; int n; int a[N]; //从小到大 //插入排序 //第一个元素默认有序,然后从第二个元素开始与前面所有元素比较 //若第二个元素小,则将大于它的所有元素统一右移,将 阅读全文