蓝桥杯2017年第八届真题-分考场 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define N 301#define min(a,b) a>b?b:a;int gxb[N]…… 题解列表 2019年02月01日 1 点赞 0 评论 1106 浏览 评分:0.0
C二级辅导-等差数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int s=0,a=2,n; scanf("%d",&n); while(n--) { …… 题解列表 2019年02月01日 0 点赞 0 评论 847 浏览 评分:0.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:注意事项:s一定要赋初值 否则运行错误 因为s值可能不为零。参考代码:#include<stdio.h>int main(){ int s=0,a,n; scanf("%d",&…… 题解列表 2019年02月01日 0 点赞 0 评论 701 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:关键两位小数参考代码:#include<stdio.h>int main(){ int x; float y; scanf("%d", &x); if(x…… 题解列表 2019年02月01日 0 点赞 0 评论 763 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d", &a,&b,&c); max=a…… 题解列表 2019年02月01日 0 点赞 0 评论 748 浏览 评分:0.0
蓝桥杯算法提高VIP-凶手 (C++代码)--真题解! 比手算快,代码简短; 摘要:解题思路: 这就是逻辑运算转换成代码语言,注意我使用的一些优化简短代码的技巧注意事项:参考代码:#include <bits/stdc++.h> #define _for(i,a,b)…… 题解列表 2019年02月01日 0 点赞 0 评论 1342 浏览 评分:6.3
优质题解 简单的数学题 (C语言代码) 摘要:解题思路: 解题的关键在于知道点到直线的距离公式。 其中:公式中的直线方程为Ax+By+C=0,点P的坐标为(x0,y0)。 至于公式如何推导出来的,请去百度好好再学习学习吧,属于中…… 题解列表 2019年02月01日 1 点赞 0 评论 2414 浏览 评分:4.0
优质题解 比赛排名 (C++代码) 摘要:解题思路: 定义一个结构体,保存学号和总分。 1.按要求输入数据,并把总分求出保存到结构体变量中 2.然后把总分不低于分数线的放入到向量容器中。 3.对向量排序,然后再输出向量…… 题解列表 2019年02月01日 0 点赞 0 评论 2062 浏览 评分:6.6
素数回文 (C语言代码) 摘要:解题思路: 1.编写一个huiwen(int x)函数判断整数x是否回文数。 2.编写一个prime(int n)函数判断n是否是素数。 3.在主函数中判断a到b的所有奇数是否是回文…… 题解列表 2019年02月01日 1 点赞 0 评论 1090 浏览 评分:0.0