素数回文(欧拉筛) 摘要:解题思路:欧拉筛注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint …… 题解列表 2025年04月08日 0 点赞 0 评论 430 浏览 评分:0.0
两个条件——素数、回文 摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long int su(int n) { if(…… 题解列表 2024年08月18日 0 点赞 0 评论 478 浏览 评分:9.9
素数回文 C++ ####解题思路:####参考代码:```cpp#includeusingnamespacestd;boolis_prime(intn){//判断素数if(na>>b;for(inti=a;i 题解列表 2023年04月07日 0 点赞 0 评论 610 浏览 评分:0.0
1250: 素数回文 ```cpp#includeusingnamespacestd;boola[100001000];intmain(){longlongn1,n2,t=0,t1,t2=0;cin>>n1>>n2;for(inti=2;i 题解列表 2023年02月02日 0 点赞 0 评论 571 浏览 评分:9.9
素数回文优质题解c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool a[100001000];int main(){ long long n1,n2,t…… 题解列表 2022年08月11日 0 点赞 0 评论 660 浏览 评分:9.9
暴力拆解法,容易理解 摘要:解题思路:注意事项:实在不会就暴力拆解。参考代码:#include<bits/stdc++.h>using namespace std;int sushu(int n){ int k=sqrt(…… 题解列表 2022年07月21日 0 点赞 2 评论 451 浏览 评分:9.9
SinzoL--题解 1250: 素数回文 ####居然有人来看(撒花QWQ)####好的,我们开始正题,我的题解比较直观,但看起来较为繁琐,速度较慢,就没见过这么慢的,超时的除外,(每个测试点你都把5~1,000,000,000的数据先计算出来再打印,能不慢吗QWQ)####思路的话, 题解列表 2022年07月07日 0 点赞 1 评论 481 浏览 评分:9.9
简单的素数与回文数结合计算 摘要:解题思路: 不是很牛的建议分别写两个函数,分别用来确定是不是素数和是不是回文数。注意事项: 注意输出换行符就好。参考代码:#include<iostream> using…… 题解列表 2022年02月18日 0 点赞 0 评论 750 浏览 评分:9.9
简单易懂,看看吧 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool isprime(int n){ for (int i = 2; i < n; ++i…… 题解列表 2022年02月11日 0 点赞 0 评论 546 浏览 评分:0.0
1250: 素数回文 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; bool sushu(int &n){//判断素数 if(n…… 题解列表 2022年01月01日 0 点赞 0 评论 645 浏览 评分:0.0