[编程入门]有规律的数列求和-题解(C语言代码) 摘要:解题思路:找出规律就能写。注意事项:x,y不能用int型。不然输出不了。参考代码:#include <stdio.h>int main(){ int i,n,c; float x=1,y=2,sum=…… 题解列表 2020年11月15日 0 点赞 0 评论 545 浏览 评分:0.0
[编程入门]电报加密-题解(C语言代码) 摘要:解题思路:每一个字母都有自己对应的ASCII值,相邻字母的ASCII值仅差1。注意事项:参考代码:#include#includeint main(){ int i; char a[100]…… 题解列表 2020年11月15日 0 点赞 0 评论 1152 浏览 评分:7.3
[编程入门]利润计算-题解(C语言代码) 摘要:解题思路:小学生都能看懂就不解释了。注意事项:注意区间和提成。参考代码:#include<stdio.h>int main(){ int x,y;scanf("%d",&y);if(y<=100000…… 题解列表 2020年11月15日 0 点赞 0 评论 909 浏览 评分:0.0
数列排序-题解(C语言代码) 摘要: #include #include #include using namespace std; int main(int argc, char const *argv[]) {…… 题解列表 2020年11月15日 0 点赞 0 评论 465 浏览 评分:0.0
蓝桥杯算法训练-递归求二项式系数值-题解(C语言代码) 摘要:这道题没看到有人发c语言的解答,我写完就发出来了,可以参考一下。 ```c #include int fun(int k,int n) { if(k==n||k==0) retur…… 题解列表 2020年11月15日 0 点赞 0 评论 1786 浏览 评分:9.9
[编程入门]求和训练-题解(C语言代码) 摘要:解题思路:分别求出三种之和,再相加。注意事项:注意pow函数的使用。参考代码:#include <stdio.h>#include <math.h>int main(){ int a,…… 题解列表 2020年11月15日 0 点赞 0 评论 960 浏览 评分:0.0
[编程入门]宏定义之找最大数-题解(C语言代码) 摘要:解题思路:函数中找最大值,就是两两比较,找出两数中的较大值,再将此处找出的较大值与剩下的一个值比较,然后找到最大值。注意事项:参考代码:#includefloat Max (float a,float…… 题解列表 2020年11月15日 0 点赞 0 评论 622 浏览 评分:8.0
[编程入门]Sn的公式求和-题解(C语言代码) 摘要:解题思路:自己敲一遍就理解了。注意事项:没什么注意的。参考代码:#include <stdio.h>int main(){ int sum=0,i,b,a=0; sca…… 题解列表 2020年11月15日 0 点赞 0 评论 315 浏览 评分:0.0
数据结构-二叉链表存储的二叉树-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#define stype chartypedef struct node{ struct node…… 题解列表 2020年11月15日 1 点赞 0 评论 721 浏览 评分:0.0
[编程入门]三个数找最大值-题解(C语言代码) 摘要:解题思路:先两个数比,在把比数的大数赋值到d。注意事项:1.注意if与else的使用。2.注意逻辑关系。参考代码:#include<stdio.h>int main(){ int a,b,c,d; s…… 题解列表 2020年11月15日 0 点赞 0 评论 809 浏览 评分:7.7