数据结构-图的遍历——DFS深度优先搜索-题解(C语言代码) 摘要: #include #define N 100 void dfs(int cur,int num); int e[N][N]={0},book[N]={0}; int n,A[N]={0};…… 题解列表 2019年07月23日 0 点赞 0 评论 1828 浏览 评分:0.0
C语言训练-自守数问题-题解(C语言代码) 摘要:解题思路: 1.观察自守数: 0-0=0 1-1=0 25-5=20 (5一位数,20末尾1个0) 36-6=30 625-25=6…… 题解列表 2019年07月23日 0 点赞 0 评论 861 浏览 评分:0.0
[编程入门]三个数最大值-题解(C语言代码) 摘要:#include int main() { int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a; if(max…… 题解列表 2019年07月23日 0 点赞 0 评论 1022 浏览 评分:0.0
汽水瓶-题解(C语言代码) 摘要:观察可得,喝的汽水数为空瓶数除以二,向下取整。 不严格的数学证明,大概是: 若空瓶数为n,则可换汽水n/3; 这n/3个汽水喝完又可以换n/9(均为向下取整,暂且不考虑多两个空瓶的情况) 于是…… 题解列表 2019年07月23日 0 点赞 0 评论 965 浏览 评分:0.0
[编程入门]密码破译-题解(C语言代码) 摘要:#include int main() { char a[10]; gets(a); for(int i=0;a[i]!=0;i++) { if(a[i]=='C')a[i]…… 题解列表 2019年07月23日 0 点赞 0 评论 575 浏览 评分:0.0
[编程入门]三个数最大值-题解(C语言代码) 摘要:#include int main() { int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a; if(b>max)max=b; if…… 题解列表 2019年07月23日 0 点赞 0 评论 597 浏览 评分:0.0
[编程入门]三个数找最大值-题解(C语言代码) 摘要:#include int main() { int a,b,c,max; scanf("%d%d%d",&a,&b,&c); max=a; if(b>max)max=b; if…… 题解列表 2019年07月23日 0 点赞 0 评论 645 浏览 评分:0.0
[编程入门]分段函数求值-题解(C语言代码) 摘要:#include int main() { int x,y; scanf("%d",&x); if(x>=10)y=3*x-11; else if(x>=1)y=2*x-1; …… 题解列表 2019年07月23日 0 点赞 0 评论 684 浏览 评分:0.0
[编程入门]温度转换-题解(C语言代码) 摘要:#include int main() { float a,b; scanf("%f",&a); b=5*(a-32)/9.0; printf("c=%.2f",b);//记得加上…… 题解列表 2019年07月23日 0 点赞 0 评论 933 浏览 评分:0.0
C语言考试练习题_一元二次方程-题解(C语言代码) 摘要:** 参考代码: ** ```c #include #include int main() { double a,b,c; double d; while(scanf(…… 题解列表 2019年07月23日 0 点赞 0 评论 669 浏览 评分:0.0