立方和不等式 摘要:解题思路:用for循环遍历注意事项:当s==n时,输出的是最大的i;当s>n时,输出i-1;参考代码:#include<iostream>using namespace std;int main(){…… 题解列表 2023年01月05日 0 点赞 0 评论 797 浏览 评分:0.0
多输入输出练习2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415int main(){ int i,n; double r,s; scanf(…… 题解列表 2023年01月06日 0 点赞 0 评论 594 浏览 评分:0.0
成绩转换(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; while(~scanf("%d",&n)) { …… 题解列表 2023年01月06日 0 点赞 0 评论 754 浏览 评分:0.0
求e的值简单方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i; double e=1,t=1; scanf("%d",&n); for…… 题解列表 2023年01月06日 0 点赞 0 评论 650 浏览 评分:0.0
轻松掌握最大公约数和最小公倍数的求解方法 摘要:解题思路:掌握求最大公约数和最小公倍数的方法注意事项:理清两个数与其最大公约数和最小公倍数之间的关系参考代码:#include<stdio.h>int main(){ int a,b; int i,j…… 题解列表 2023年01月06日 0 点赞 0 评论 586 浏览 评分:0.0
自由下落的距离计算(简单易懂) 摘要:解题思路:看作一个循环问题注意事项:题目求的经过的距离之和不算上最后一次触地弹起的高度参考代码:#include<stdio.h>int main(){ int n; float m; scan…… 题解列表 2023年01月06日 0 点赞 0 评论 465 浏览 评分:0.0
简单求解猴子吃桃的问题 摘要:解题思路:反向思维注意事项:只吃了九天,每天吃一半加一参考代码:#include<stdio.h>int main(){ int n,t=1; scanf("%d",&n); for(int i…… 题解列表 2023年01月06日 0 点赞 0 评论 551 浏览 评分: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 评论 687 浏览 评分:0.0
编写题解 1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main() { int a,m; long long sum=0; cin>>a; …… 题解列表 2023年01月06日 0 点赞 0 评论 496 浏览 评分:0.0
c语言调用函数解决 摘要:解题思路:函数调用的方法,需要用全局变量,不然可能会出现运行错误注意事项:函数调用的方法,需要用全局变量,不然可能会出现运行错误参考代码:#include<stdio.h>int a,b,m,min,…… 题解列表 2023年01月06日 0 点赞 0 评论 648 浏览 评分:0.0