C语言解法容易理解 摘要:解题思路:找到规律转化为简易的数学语言参考代码:#include<stdio.h>int main(){ int a; float b = 2; int c = 1; floa…… 题解列表 2023年09月15日 0 点赞 0 评论 472 浏览 评分:0.0
C语言自由下落距离问题 解题思路:每次反弹上升的高度为下降的高度的一半,高度为M,则第N次反弹的高度为M=M/2;每一次落地后反弹,球的路程为x=M*3注意事项:第五次落地时的反弹上去的路程不用算上参考代码:#includeintmain(){floatM,x=0, 题解列表 2023年09月15日 0 点赞 0 评论 509 浏览 评分:0.0
结构体之成绩统计2(用结构体指针,疯狂嵌套循环,缩小了工作量) 解题思路:这题写的好爽,具体解释写代码中了成绩我是以数组形式收取,免得写那么多参考代码:```c#includestructm{charsno[20];charname[20];intgrade[3];};//别忘了结构体结尾要打分号intmain(){intn;scanf("%d", 题解列表 2023年09月15日 0 点赞 0 评论 535 浏览 评分:9.9
第n小的质数(缩小循环) 摘要:参考代码: ```c #include #include int main() { int n; scanf("%d",&n); int a=2,k=0;//k是累计出现的质数 …… 题解列表 2023年09月14日 0 点赞 0 评论 652 浏览 评分:0.0
C语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n, m,i,j; char name[11][21];…… 题解列表 2023年09月14日 0 点赞 0 评论 612 浏览 评分:0.0
c语言简单,易懂!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>double f (int n){ if (n==0||n==1){ return 1; }else { …… 题解列表 2023年09月14日 1 点赞 0 评论 657 浏览 评分:0.0
c语言简单 优解!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int a,b,c; //分别记录人数!!! a=b=c=0; int n; …… 题解列表 2023年09月14日 0 点赞 0 评论 540 浏览 评分:0.0
c语言简单,代码少,易懂!!! 摘要:解题思路:注意事项:该坐标行列元素是从1开始的!!!参考代码:#include <stdio.h>int main (){ int n; int max,max_i,max_j; i…… 题解列表 2023年09月14日 0 点赞 0 评论 466 浏览 评分:0.0
c语言简单易懂!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int ctof(int n){ int s; s=32+n*9/5; return s;}int main (){…… 题解列表 2023年09月14日 0 点赞 0 评论 525 浏览 评分:0.0
二级C语言-自定义函数 递归简单C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>double f(int n){ if (n==0||n==1){ return…… 题解列表 2023年09月14日 0 点赞 0 评论 462 浏览 评分:0.0