c++自定义函数解法 摘要:解题思路:判断素数,再在主函数中使用循环注意事项:1,2为特殊情况参考代码:#include<iostream> #include<algorithm>using namespace std;bool…… 题解列表 2023年10月15日 0 点赞 0 评论 363 浏览 评分:0.0
C语言训练-数字母 摘要:**代码:** ```c #include #include int main() { int count=0,len,i=0; char a[100]; ge…… 题解列表 2023年10月15日 0 点赞 0 评论 284 浏览 评分:0.0
C语言训练-数字母 摘要:**思路:** 如果参数是字母,`isalpha`函数返回true。 `isalpha`函数原型在`cctype`中。 `'\0'`是字符串的结尾 **代码:** ```c++ #incl…… 题解列表 2023年10月15日 0 点赞 0 评论 341 浏览 评分:0.0
肿瘤检测(注意肿瘤中的点如果在边界上,也算是周长) 摘要:解题思路:理解题意之后,if表达式里或就完事了注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); int a…… 题解列表 2023年10月15日 0 点赞 0 评论 583 浏览 评分:0.0
蓝桥杯2022年第十三届省赛真题-修剪灌木,超简单10行 摘要:解题思路:列举样例的情况不难发现,靠左边的树苗离右边的长度决定了它的最高度,同理,靠右的树苗离左边界的距离决定了它的高度,这样看来这个题目就简单多了N为树苗数,不难得出公式,第i课树苗若靠左最高长2(…… 题解列表 2023年10月15日 0 点赞 2 评论 318 浏览 评分:0.0
C语言训练-斐波纳契数列 摘要:**解题方法:**迭代法。 **代码:** ```c #include int func(int n) { if(n2) { result=pre_re…… 题解列表 2023年10月16日 0 点赞 0 评论 348 浏览 评分:0.0
String方法>>>>>>>>>>>>>>>>>>>>>>> 摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scan…… 题解列表 2023年10月16日 0 点赞 0 评论 436 浏览 评分:0.0
c++循环解法 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int main(){ int n=0,sum=0,s=0…… 题解列表 2023年10月16日 0 点赞 0 评论 422 浏览 评分:0.0
c++主函数单个循环避免超时 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int f(int x){ int sum=0; for(…… 题解列表 2023年10月16日 0 点赞 0 评论 433 浏览 评分:0.0
c++最简分数 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring>using namespace std;int yue(int x,int y){ for(int…… 题解列表 2023年10月16日 0 点赞 0 评论 331 浏览 评分:0.0