摘要:
如果n能被i整除i就是约数 #include <bits/stdc++.h> using namespace std; vector<int> get_divisors(int n) { vector<int> res; for (int i = 1; i <= n / i; i ++ ) { if 阅读全文
摘要:
是求(a^b) mod p 如果用暴力解法 O(b) 点击查看TLE代码c++ #include<iostream> using namespace std; int main() { int a,b,p; long long res=1; cin>>a>>b>>p; while(b--) res 阅读全文