摘要:
矩阵快速幂求自幂题目 例:给定A,k,M,求对于指数为 i = (1, ....., k - 1)的A的幂次和对M取模 #include<bits/stdc++.h> #define int long long using namespace std; const int N = 3; int A, 阅读全文
摘要:
法一:cmp函数 代码实现 #include<iostream> #include<algorithm> using namespace std; int cmp(int a, int b) { return a > b; } int main() { int num[5] = {1, 2, 3, 阅读全文