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 阅读全文
posted @ 2020-07-20 22:01 JLNU-航 阅读(154) 评论(0) 推荐(0) 编辑
摘要:一.质数 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),每次执行都要 阅读全文
posted @ 2020-07-19 18:46 JLNU-航 阅读(196) 评论(0) 推荐(1) 编辑
摘要:![](https://img2020.cnblogs.com/blog/1637017/202007/1637017-20200707150209507-353208306.png) ![](https://img2020.cnblogs.com/blog/1637017/202007/1637017-20200707150235500-1507193545.png) 阅读全文
posted @ 2020-07-07 15:03 JLNU-航 阅读(211) 评论(0) 推荐(0) 编辑
摘要:![](https://img2020.cnblogs.com/blog/1637017/202007/1637017-20200707145819956-1500170495.png)![](https://img2020.cnblogs.com/blog/1637017/202007/1637017-20200707145824820-1803684397.png)![](https://im... 阅读全文
posted @ 2020-07-07 14:59 JLNU-航 阅读(154) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示