母牛的故事 (C语言代码) 摘要:解题思路:注意事项:参考代码:# include <stdio.h>int main(){ int n, dn; int a, b, c, d; scanf("%d", &n); while(n >…… 题解列表 2018年12月12日 3 点赞 1 评论 482 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.6 (C语言代码) 摘要:解题思路:看参考代码先自己琢磨注意事项:注意c语言的位数变化参考代码:#include<stdio.h>int main(){ int a,b,c,x; for(x=100;x<1000;x++) {…… 题解列表 2018年12月12日 0 点赞 0 评论 973 浏览 评分:0.0
蓝桥杯算法提高VIP-陶陶摘苹果2 (C语言代码) 摘要:解题思路:新手上路,多多指教注意事项:参考代码:#include <stdio.h>int main(){ int n,m,i,j=0,k; scanf("%d%d",&n,&m); int a[n]…… 题解列表 2018年12月11日 1 点赞 0 评论 1477 浏览 评分:8.0
优质题解 蓝桥杯基础练习VIP-回形取数 (C语言代码) 解题思路:前面的题解看了,有一个大佬巧妙用题目测试数据的bug(测试数据中没有-1,或许没有负数);这里我来介绍一种适合任何测试数据的解法(数据范围和题目相同,但是测试数据能兼容每一个整数):首先定义两个数组:a[maxn][maxn]、flag[maxn][maxn];a用来保存每一个输入的数据, 题解列表 2018年12月11日 25 点赞 3 评论 2819 浏览 评分:8.2
C语言程序设计教程(第三版)课后习题6.6 (C语言代码) 摘要:解题思路:水仙花数是由三位数组成 利用三个for循环来打印出来所有的三位数(由111-999) 在所有三位数中写出水仙花数的 题解列表 2018年12月11日 0 点赞 0 评论 936 浏览 评分:0.0
对称矩阵 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 100int c(int a[][N],int n);int main(){ int a[N][N]; in…… 题解列表 2018年12月11日 0 点赞 0 评论 3243 浏览 评分:9.9
平方和与立方和 新手做法(推荐!)(C语言代码) 摘要:解题思路:注意事项:参考代码:int main(){ int i; int m,n; int sum1,sum2; while(scanf("%d %d",&m,&n)!=EO…… 题解列表 2018年12月11日 5 点赞 0 评论 2120 浏览 评分:7.3
数据结构-二叉排序树的基本操作 (C语言代码) 摘要:解题思路: 首先先建立一颗二叉搜索树,再去寻找结点,比较简单。注意事项: 注意建立树前main函数中赋予树头结点初值为空参考代码:#include<stdio.h> #include<s…… 题解列表 2018年12月11日 1 点赞 0 评论 2029 浏览 评分:9.0
字符串问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char *p1,char *p2);int main(){ int L; …… 题解列表 2018年12月11日 0 点赞 0 评论 1628 浏览 评分:0.0
switch函数打造,简单清晰的代码; #includestructggt{intyear;intmonth;intday;};intzdy(intyear,intmonth,intday);intmain(){structggtggt_1;scanf("%d%d%d",&ggt_1.year, 题解列表 2018年12月11日 9 点赞 0 评论 1792 浏览 评分:9.5