C语言训练-求函数值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun(int x){ if(x==1) { return 10; } …… 题解列表 2023年01月05日 0 点赞 0 评论 347 浏览 评分:0.0
根据判断最大公约数是否为一来判断 摘要:解题思路:我觉得最最最简单的思路了注意事项:参考代码:#include <stdio.h>int main(){ int i = 0; for(i=1;i<=40;i++) { …… 题解列表 2023年01月05日 0 点赞 0 评论 260 浏览 评分:0.0
字符串正反连接(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>char *fun(char str[]){ char* str1 = str; char* str…… 题解列表 2023年01月05日 0 点赞 0 评论 269 浏览 评分:0.0
立方和不等式 摘要:解题思路:用for循环遍历注意事项:当s==n时,输出的是最大的i;当s>n时,输出i-1;参考代码:#include<iostream>using namespace std;int main(){…… 题解列表 2023年01月05日 0 点赞 0 评论 538 浏览 评分:0.0
多输入输出练习2 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define PI 3.1415int main(){ int i,n; double r,s; scanf(…… 题解列表 2023年01月06日 0 点赞 0 评论 287 浏览 评分:0.0
成绩转换(c语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; while(~scanf("%d",&n)) { …… 题解列表 2023年01月06日 0 点赞 0 评论 262 浏览 评分: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 评论 360 浏览 评分:0.0
轻松掌握最大公约数和最小公倍数的求解方法 摘要:解题思路:掌握求最大公约数和最小公倍数的方法注意事项:理清两个数与其最大公约数和最小公倍数之间的关系参考代码:#include<stdio.h>int main(){ int a,b; int i,j…… 题解列表 2023年01月06日 0 点赞 0 评论 314 浏览 评分:0.0
自由下落的距离计算(简单易懂) 摘要:解题思路:看作一个循环问题注意事项:题目求的经过的距离之和不算上最后一次触地弹起的高度参考代码:#include<stdio.h>int main(){ int n; float m; scan…… 题解列表 2023年01月06日 0 点赞 0 评论 227 浏览 评分:0.0
简单求解猴子吃桃的问题 摘要:解题思路:反向思维注意事项:只吃了九天,每天吃一半加一参考代码:#include<stdio.h>int main(){ int n,t=1; scanf("%d",&n); for(int i…… 题解列表 2023年01月06日 0 点赞 0 评论 299 浏览 评分:0.0