[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意最大公因数与最小公倍数的关系,最小公倍数=(用户输入两数的乘积)/最大公约数,所以可以先求最大公约数。假设用户输a=6和b=9,i(用来计数),最大公约数肯定是肯定小于等于6或9,那么不…… 题解列表 2023年08月23日 0 点赞 0 评论 313 浏览 评分:0.0
老是对不准需要的类型,还是得多练练 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int h,i; double sum = 0.0,r = 0.0,d=0.0; scanf…… 题解列表 2023年08月23日 0 点赞 1 评论 402 浏览 评分:0.0
数列规律运用找出公式 摘要:#include<stdio.h> int main() { int a,b,sum=0; scanf("%d",&a); for(int i=0;i<a;i++){…… 题解列表 2023年08月23日 0 点赞 0 评论 326 浏览 评分:0.0
知道有枚举法,相减法,辗转相除法 摘要:1.枚举法 #include <stdio.h> int main() { int a,b,l=0,h; scanf("%d%d",&a,&b); for (int…… 题解列表 2023年08月23日 0 点赞 0 评论 252 浏览 评分:0.0
50分怎么办? 摘要:输入问题。每次输入学生的信息,用一个直接读入即可。scanf("%s %d %d", &students[i].name, &students[i].age, &students[i].marks);…… 题解列表 2023年08月24日 0 点赞 0 评论 378 浏览 评分:0.0
求素数,大于2的数看其是否能被2整除 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int su(int a){ if(a == 2) printf("prime"); if(a > 2…… 题解列表 2023年08月24日 0 点赞 0 评论 305 浏览 评分:0.0
等差数列(Java) 摘要:解题思路:注意事项:参考代码:方法一:import java.util.Scanner; public class Main { public static void main(Str…… 题解列表 2023年08月24日 0 点赞 0 评论 410 浏览 评分:0.0
1.输入n*n个数,记录大小输出位置2.使用数组 摘要:1.记录大小比较 #include<stdio.h> int main() { int i,n,m,qa,cam=0; scanf("%d",&i); for (i…… 题解列表 2023年08月24日 0 点赞 0 评论 247 浏览 评分:0.0
1011[编程入门]最大公约数与最小公倍数(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdbool.h>int main(){ int m,n; scanf("%d %d",&m,&n); …… 题解列表 2023年08月25日 0 点赞 0 评论 347 浏览 评分:0.0
3154: 蓝桥杯2023年第十四届省赛真题-子串简写 摘要:解题思路: 在本子上手写模拟一下就出来了。以c2为结尾,记录当前有多少个c2,存在dp数组内 以c1为开头,循环寻找c1,从c1到结尾的c2个数存在dp[i]内,相减就是c2个数,再留出k…… 题解列表 2023年08月26日 0 点赞 0 评论 596 浏览 评分:0.0