计算素数和(用C++) 摘要:参考代码:#include<iostream> using namespace std; bool isprime(int x) { int count = 0; for (int i …… 题解列表 2024年08月10日 0 点赞 0 评论 475 浏览 评分:7.3
质因数分解 摘要:解题思路:注意事项:参考代码n=int(input())f=2while f*f<=n: if n %f==0: print(n//f) f+=1…… 题解列表 2024年08月10日 0 点赞 0 评论 366 浏览 评分:0.0
IP判断 简单易懂(C语言代码) 摘要:```c #include #include #include #define lenth 256 // 检查给定的字符串是否为有效的IPv4地址 // 参数s: 表示IPv4地址的字符串…… 题解列表 2024年08月10日 2 点赞 0 评论 653 浏览 评分:10.0
二级C语言-自定义函数 摘要:解题思路: 采用递归求解注意事项: 包含#include<iomanip>以保证输出4位小数;参考代码:#include<iostream> using namespace std; #inclu…… 题解列表 2024年08月10日 0 点赞 0 评论 542 浏览 评分:7.0
DNA打印(新手容易理解) 摘要:解题思路: 先尝试打印一次对称的DNA,然后跑一个循环打印n次注意事项: ① 由于n次循环中,有一行的是重复的,单独拎出来打印; ② 'X'是大写的参考代码:d…… 题解列表 2024年08月10日 0 点赞 0 评论 466 浏览 评分:9.9
Java简单的a+b 摘要:Scanner sc=new Scanner(System.in); while(sc.hasNext()){ int a=sc.nextInt(); int b=sc.nextInt(); …… 题解列表 2024年08月10日 0 点赞 0 评论 541 浏览 评分:0.0
Cylinder最大圆柱体积 摘要:解题思路:pi的精度11位注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; const double pi = …… 题解列表 2024年08月10日 0 点赞 0 评论 544 浏览 评分:0.0
1114: C语言考试练习题_排列(dfs) 摘要:解题思路:dfs全排列注意事项:题目的输出顺序, 依次排除第 4 - 1 个数字参考代码:#include<iostream> #include<cmath> using namespace st…… 题解列表 2024年08月10日 0 点赞 0 评论 481 浏览 评分:0.0
牢第,包你懂的 摘要:对数据类型不了解的看这里:[C语言 中的 数据类型 超详解](https://blog.csdn.net/weixin_44982036/article/details/108773054 "C语言 …… 题解列表 2024年08月10日 0 点赞 0 评论 354 浏览 评分:0.0
1115: DNA 循环 摘要:解题思路:打印对角线X 第一行单独处理注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() …… 题解列表 2024年08月10日 0 点赞 0 评论 501 浏览 评分:6.0