[编程入门]三个数字的排序 Python解决 摘要:解题思路: 使用列表,for循环等参考代码:number = list(map(int,input().split()))number.sort()number_a = ''fo…… 题解列表 2021年08月23日 0 点赞 0 评论 450 浏览 评分:0.0
C语言-平均值计算 摘要:解题思路:for循环输入数组,for循环计算总值,if找出大于平均值的数注意事项:参考代码:#include<stdio.h>int main(){ int name[10]; int i,j,to…… 题解列表 2021年08月23日 0 点赞 0 评论 511 浏览 评分:0.0
求和训练另一种方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int fun1(int);int fun2(int);float fun3(int);int fun1…… 题解列表 2021年08月23日 0 点赞 0 评论 231 浏览 评分:0.0
1004: [递归]母牛的故事 摘要:解题思路: 根据题目列表格得到年数(0<n<55)和对应母牛数(CowsNumber)年数123456789母牛数123469131928从上可以看出: 当0<n<=3时,Co…… 题解列表 2021年08月23日 0 点赞 0 评论 274 浏览 评分:0.0
递归算法,简单易懂 摘要:#include<iostream>using namespace std;int n,k;int judge(bool is_zero,int num){ num++; if (num …… 题解列表 2021年08月23日 0 点赞 0 评论 249 浏览 评分:0.0
字符串分类统计另一种方法 摘要:解题思路:注意事项:参考代码:int count1=0,count2=0,count3=0,count4=0; int i; char str[200]; gets(str); for(i=0;str…… 题解列表 2021年08月23日 0 点赞 0 评论 241 浏览 评分:0.0
蓝桥杯第十二届国赛真题-123 二分+公式 摘要:解题思路: 直接暴力枚举求解,无论是时间还是空间上都不允许。但本题涉及到等差数列,因此考虑**等差数列求和公式**求解。 按照如下思路: 1.分别求出l和r对应哪一段(记为pl,pr); 2.…… 题解列表 2021年08月23日 0 点赞 2 评论 2056 浏览 评分:7.3
DNA-题解(C语言) 中心点法 摘要:```c #include void edge(int i) { for(int j=0;j0) { c[m-i][m-i]='X'; c[m-i][m+i]='X'; …… 题解列表 2021年08月23日 0 点赞 0 评论 313 浏览 评分:9.9
1209:密码截获(40行解决)C语言 摘要:解题思路:重点在于回文字符串的寻找以及回文字符串的分类注意事项:直接看注释就好参考代码:#include<stdio.h>#include<string.h>int PalindromeString…… 题解列表 2021年08月23日 0 点赞 0 评论 646 浏览 评分:9.9
简便代码,利用数学思维, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float m,sum=0.0,t; int n; scanf("%f %d",&m,&n); t=m; fo…… 题解列表 2021年08月22日 0 点赞 0 评论 278 浏览 评分:9.9