寻找矩阵最值,求大哥们给出简单的写法 摘要:数组比较小,不需要使用mallooc函数创建空间。 直接定义a[6][6]; 之后就是存储数据值及位置,在编写数组时,位置引用数组时需要加+1 代码如下: ```c #inclu…… 题解列表 2021年08月23日 0 点赞 4 评论 1501 浏览 评分:9.9
Tom数-题解(C语言) 摘要:```c #include #include int main() { char a[100000]; while(scanf("%s",&a)==1) { int sum…… 题解列表 2021年08月23日 0 点赞 0 评论 351 浏览 评分:0.0
[编程入门]三个字符串的排序 Python解决 摘要:解题思路: 使用列表进行降序注意事项: 字母也可以比较大小,使用sort哦,参考代码:fonta = input()fontb = input()fontc = input()list =…… 题解列表 2021年08月23日 0 点赞 0 评论 427 浏览 评分:0.0
[编程入门]三个数字的排序 Python解决 摘要:解题思路: 使用列表,for循环等参考代码:number = list(map(int,input().split()))number.sort()number_a = ''fo…… 题解列表 2021年08月23日 0 点赞 0 评论 475 浏览 评分:0.0
C语言-平均值计算 摘要:解题思路:for循环输入数组,for循环计算总值,if找出大于平均值的数注意事项:参考代码:#include<stdio.h>int main(){ int name[10]; int i,j,to…… 题解列表 2021年08月23日 0 点赞 0 评论 585 浏览 评分:0.0
求和训练另一种方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int fun1(int);int fun2(int);float fun3(int);int fun1…… 题解列表 2021年08月23日 0 点赞 0 评论 285 浏览 评分:0.0
1004: [递归]母牛的故事 摘要:解题思路: 根据题目列表格得到年数(0<n<55)和对应母牛数(CowsNumber)年数123456789母牛数123469131928从上可以看出: 当0<n<=3时,Co…… 题解列表 2021年08月23日 0 点赞 0 评论 315 浏览 评分: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 评论 297 浏览 评分: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 评论 304 浏览 评分:0.0
蓝桥杯第十二届国赛真题-123 二分+公式 摘要:解题思路: 直接暴力枚举求解,无论是时间还是空间上都不允许。但本题涉及到等差数列,因此考虑**等差数列求和公式**求解。 按照如下思路: 1.分别求出l和r对应哪一段(记为pl,pr); 2.…… 题解列表 2021年08月23日 0 点赞 2 评论 2165 浏览 评分:7.3