2955: 判决素数个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll prime (ll x)//先判断…… 题解列表 2024年06月30日 0 点赞 0 评论 442 浏览 评分:0.0
2955: 判决素数个数 摘要:解题思路:循环判断x到y有多少个质数注意事项:后面定义sum来累加计算 rutern不能写成cout MYdamn里是i …… 题解列表 2024年07月17日 0 点赞 0 评论 548 浏览 评分:0.0
编写题解 2955: 判决素数个数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int c(int n){ if(n==1) return 0; for(int i…… 题解列表 2024年08月22日 0 点赞 0 评论 764 浏览 评分:0.0
嗨嗨!我又来了昂!!!! ```cpp#includeusingnamespacestd;intkunkun(intx){//判断素数if(x==1){return0;}if(x==2){return1;}intj=2;while(j 题解列表 2023年02月23日 0 点赞 0 评论 909 浏览 评分:9.9
2955: 判决素数个数 ```cpp#include#includeusingnamespacestd;boolgg(intx){if(x==1)returnfalse;if(x==2)returntrue;intj=2;while(j>n>>m;for(inti=min(n,m);i 题解列表 2023年02月24日 0 点赞 0 评论 772 浏览 评分:9.9
2955: 判决素数个数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long n,m,b,sum=0;int pdsushu(int x){…… 题解列表 2023年07月22日 0 点赞 0 评论 566 浏览 评分:9.9
判决素数个数(自定义函数) 摘要:解题思路:在主函数里调用自定义的函数参考代码:#include<iostream>using namespace std;void pss(int x,int y){ int s = 0; int i…… 题解列表 2023年10月28日 0 点赞 0 评论 623 浏览 评分:9.9
会战兵力 是80万对60万 优势在我 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int prime(ll x){ …… 题解列表 2024年10月07日 0 点赞 0 评论 441 浏览 评分:9.9