摘要:
无注释的: #include <bits/stdc++.h> using namespace std; const int N = 100005; int a[N]; void quickSort(int q[], int l, int r){ if(l >= r){ return; } int i 阅读全文
摘要:
不带注释的选择排序: public void sort(int[] i) { for (int j = 0; j < i.length - 1; j++) { int min = i[j]; //假定最小值为当前值 int temp = j; //记录最小值的下标 for (int z = j; z 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; const int N = 50005, inf = 0x3f3f3f3f; //N是POJ3264的数据范围, //inf:0x3f3f3f3f的十进制是1061109567,是10^9级别的 int a[N 阅读全文