摘要:
#include using namespace std; const double INF = 0xfffff;//无穷大 double min(double a, double b) { return a > b ? b : a; } class Solution { private: int L, N, C, T; int VR, VT1, VT2; ... 阅读全文
摘要:
class sort { private int arr[]= {5,7,6,9,8,1,2,3,4,0}; public boolean InsertSort() { for(int i=1;i<arr.length;++i) { for(int j=i;j>0;j--) { if(arr[j-1]>=arr[j]) //前面的比后面的大就交换 { int temp=arr[j-1]; arr[ 阅读全文