07 2020 档案
摘要:一 .试除法求约数 #include<bits/stdc++.h> using namespace std; vector<int> get_res(int n) { vector<int> res; for(int i=1;i<=n/i;i++) { if(n%i==0){ res.push_ba
阅读全文
摘要:一.质数 1.试除法判断素数: #include<bits/stdc++.h> using namespace std; bool is_prime(int n) { if(n<2) return false; for(int i=2;i<=n/i;i++){ //如果用sqrt(n),每次执行都要
阅读全文
摘要: 
阅读全文
摘要:![](https://im...
阅读全文