轻松掌握最大公约数和最小公倍数的求解方法 摘要:解题思路:掌握求最大公约数和最小公倍数的方法注意事项:理清两个数与其最大公约数和最小公倍数之间的关系参考代码:#include<stdio.h>int main(){ int a,b; int i,j…… 题解列表 2023年01月06日 0 点赞 0 评论 308 浏览 评分:0.0
自由下落的距离计算(简单易懂) 摘要:解题思路:看作一个循环问题注意事项:题目求的经过的距离之和不算上最后一次触地弹起的高度参考代码:#include<stdio.h>int main(){ int n; float m; scan…… 题解列表 2023年01月06日 0 点赞 0 评论 219 浏览 评分:0.0
简单求解猴子吃桃的问题 摘要:解题思路:反向思维注意事项:只吃了九天,每天吃一半加一参考代码:#include<stdio.h>int main(){ int n,t=1; scanf("%d",&n); for(int i…… 题解列表 2023年01月06日 0 点赞 0 评论 293 浏览 评分:0.0
暴力解法(凑字数。。。。。。。 摘要:解题思路:def sushu(n): if n==2: return 2 for i in range(2, n): if n % i == 0: …… 题解列表 2023年01月06日 0 点赞 0 评论 382 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int a,m; long long sum=0; cin>>a; …… 题解列表 2023年01月06日 0 点赞 0 评论 251 浏览 评分:0.0
c语言调用函数解决 摘要:解题思路:函数调用的方法,需要用全局变量,不然可能会出现运行错误注意事项:函数调用的方法,需要用全局变量,不然可能会出现运行错误参考代码:#include<stdio.h>int a,b,m,min,…… 题解列表 2023年01月06日 0 点赞 0 评论 327 浏览 评分:0.0
编写题解 1015: [编程入门]求和训练 摘要:解题思路:注意事项:cout<<std::fixed<<setprecision(2)<<xxx=====cout<<setiosflags(ios::fixed)<<setprecision(2)<…… 题解列表 2023年01月06日 0 点赞 0 评论 258 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串(C语言) 摘要:#include <stdio.h> #include <string.h> int main() { int i; int n = 0; char p[100] …… 题解列表 2023年01月06日 0 点赞 0 评论 288 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int x,y,z; for(int a=100; a<1000; …… 题解列表 2023年01月06日 0 点赞 0 评论 238 浏览 评分:0.0
九九乘法表(详细) 摘要:解题思路:双重循环注意事项:题目要求乘积占2位且左对齐,因此,乘积的格式为%-2d参考代码:#include<stdio.h>int main(){ int i,j; for(i=1;i<…… 题解列表 2023年01月06日 0 点赞 0 评论 301 浏览 评分:0.0