主站
DreamJudge
院校信息
专业题库
模拟考试
机试真题
专业课程
讨论区
兑换中心
登录
注册
发布
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
阿达v吧
2024年3月8日 12:55
回文质数 题解:
P1706
回复 0
|
赞 0
|
浏览 169
#include<cstdio> #include<iostream> #include<cmath> using namespace std; bool isPrime(int n){ if(n<2){ return false; } int bound=sqrt(n); for(int i=2;i<=bound;++i){ &...
小王桐学
2024年2月6日 21:30
回文质数 题解:C
P1706
回复 0
|
赞 0
|
浏览 191
#include <stdio.h> #include <math.h> //判断素数 int isPrimary(int n) { int i; for(i = 2; i <= sqrt(n); i++) if(n % i == 0) break; if(i > sqrt(n)) return 1; else return 0; } //判断回文 int Palindrome(int n) { int a[100],i = 0,j; while(n) { a[i++] = n%...
swing123
2021年2月15日 16:59
题解太少凑个数
P1706
回复 0
|
赞 0
|
浏览 6.9k
#include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> #include<stdlib.h> using namespace std; bool prime(int n)//判断该数是否为质数 { if(n==1||n==0) return false; for(int i=2;i<=sqrt(...
fanxi
2020年5月16日 09:09
。。。。
P1706
回复 0
|
赞 0
|
浏览 6.3k
#include <stdio.h> #include <math.h> #include <string.h> int isz(int n) { if(n==0||n==1) return 0; for(int i=2;i<=sqrt(n);++i) { if(n%i==0)  ...
题目
回文质数
题解数量
4
发布题解
热门题解
1
回文质数 题解:
2
。。。。
3
回文质数 题解:C
4
题解太少凑个数