摘要:
一 .试除法求约数 #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://img2020.cnblogs.com/blog/1637017/202007/1637017-20200707150209507-353208306.png) ![](https://img2020.cnblogs.com/blog/1637017/202007/1637017-20200707150235500-1507193545.png) 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/1637017/202007/1637017-20200707145819956-1500170495.png)![](https://img2020.cnblogs.com/blog/1637017/202007/1637017-20200707145824820-1803684397.png)![](https://im... 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200628083916455-796031681.png) ![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200628083921081-997672554.png) ![](https://im 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200625195827704-1496286067.png)![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200625195834015-1167299415.png)![](https://im... 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200618211926456-1753358141.png) ![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200618212009307-1871313517.png) 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200618154606453-801676047.png)![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200618154615271-1754429475.png)![](https://img... 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200614212039195-1896853595.png) ![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200615090755217-2146055528.png) 阅读全文
摘要:
![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200613093147919-543870264.png) ![](https://img2020.cnblogs.com/blog/1637017/202006/1637017-20200613093348952-686390564.png) 阅读全文