摘要:
选择排序: void Selection_Sort(ElementType A[], int N) { int i, MinPosition; for (i = 0; i < N; i++) { MinPosition = scanForMin(A, i, N-1); //从A[i]到A[N-1]中 阅读全文
摘要:
快速幂取模运算 1 #include <iostream> 2 using namespace std; 3 4 int main() 5 { 6 int a, b, c; 7 long long ans = 1, base = a; 8 9 a %= c; 10 while (b) { 11 if 阅读全文