C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n,b,c,d,e,f; scanf("%d",&n); { if(n>=0&&n<=9) pri…… 题解列表 2018年07月30日 1 点赞 0 评论 668 浏览 评分:0.0
C语言训练-斐波纳契数列 (C语言代码)递归+迭代 摘要:解题思路: 斐波纳契数an. n<2 a0=a1=1. n>2 an=an-1+an-2注意事项:参考代码使用迭代的方法…… 题解列表 2018年07月30日 0 点赞 0 评论 929 浏览 评分:0.0
C语言训练-自由落体问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int i,n; float sum=0,x=100; scanf("%d",&n); s…… 题解列表 2018年07月30日 0 点赞 0 评论 1010 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:先比较两个数,得出比较大的,再跟第三个数比较。参考代码:#include<stdio.h>int max(int n,int m,int i);int main(){ int a,b,…… 题解列表 2018年07月30日 0 点赞 0 评论 1071 浏览 评分:0.0
C语言训练-求函数值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int f(int n){ if(n==1) return 10; else if(n>1) return f(…… 题解列表 2018年07月30日 0 点赞 0 评论 753 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 (C语言代码) 摘要:解题思路:注意事项:奇数矩阵时。多加了一个 参考代码:#include <stdio.h>int main (){ int x,a[10][10]; int i,j,sum; …… 题解列表 2018年07月30日 0 点赞 0 评论 581 浏览 评分:0.0
C语言训练-数字母 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int count=0;int main (){ int i; char s[1000]; gets(s); for…… 题解列表 2018年07月30日 0 点赞 0 评论 1028 浏览 评分:0.0
C语言训练-最大数问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int max,x; scanf("%d",&x); max=x; while(scanf("%d",&x)…… 题解列表 2018年07月30日 0 点赞 0 评论 1092 浏览 评分:0.0
蓝桥杯历届试题-最大子阵 (C++代码) 摘要:解题思路: 二维压缩成一维的最大子段,枚举。参考代码:#include<bits/stdc++.h> #define Inf 0x3F3F3F3F using namespace s…… 题解列表 2018年07月30日 0 点赞 0 评论 1370 浏览 评分:0.0
可 AC(C语言代码) 摘要:解题思路: 注意事项: 比较简单,看解析即可;注意解析中的数组均为逆序存储 参考代码: #include<stdio.h> #include<math.h> v…… 题解列表 2018年07月31日 1 点赞 2 评论 477 浏览 评分:0.0