最大公约数与最小公倍数 摘要:解题思路:最小公倍数=两数相乘再除以最大公约数注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i,min,max; scanf("%d%d",&a,&b)…… 题解列表 2024年03月11日 0 点赞 0 评论 253 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码://思路 1.先求出两个数的最大公约数;//2.利用公式求最小公倍数=两个数的积/最大公约数#include <stdio.h>int main(){ int nu…… 题解列表 2024年03月11日 0 点赞 0 评论 310 浏览 评分:0.0
1027: [编程入门]自定义函数处理最大公约数与最小公倍数法二 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun1(int m,int n){ int min,num1; if(m>n){ min=n; …… 题解列表 2024年03月11日 0 点赞 0 评论 254 浏览 评分:0.0
甲流病人初筛,结构体数组写法,有注释 摘要:```c ```c #include typedef struct information{ char name[8]; float temperature; int cough…… 题解列表 2024年03月12日 1 点赞 0 评论 487 浏览 评分:0.0
开数组存字符按位+4再输出 摘要:解题思路:注意事项:参考代码:#include<cstdio>#include<iostream>#include<cstring>using namespace std;int main(){ in…… 题解列表 2024年03月12日 0 点赞 0 评论 224 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int n,i,f,b=0;//b为补发糖果个数,f为判断每个人是否相等的标志 int stu[10…… 题解列表 2024年03月12日 0 点赞 0 评论 205 浏览 评分:0.0
python 2798: 整数序列的元素最大跨度值 摘要:参考代码:n = input() arr = list(map(int, input().split())) print(max(arr)-min(arr))…… 题解列表 2024年03月12日 0 点赞 0 评论 314 浏览 评分:0.0
2854: 密码翻译 摘要:解题思路:注意事项:参考代码:a=input()b=[' ' for i in range(len(a))]for i in range(len(a)): if a[i]>=&#…… 题解列表 2024年03月12日 0 点赞 0 评论 322 浏览 评分:0.0
c语言超详解 摘要:解题思路:基本同上注意事项:充分的函数利用参考代码:#include<stdio.h>#include<ctype.h>#include<string.h> int main(){ char a[10…… 题解列表 2024年03月12日 0 点赞 0 评论 147 浏览 评分:0.0
python 2801: 奇数求和 摘要:参考代码:m, n = map(int, input().split()) sum = 0 for i in range(m, n + 1): if i % 2 != 0: …… 题解列表 2024年03月12日 0 点赞 0 评论 367 浏览 评分:0.0