C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:直接利用字符串接收,用strlen()函数输出位数注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){char s[6]={0…… 题解列表 2018年06月19日 0 点赞 0 评论 965 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:利用sprintf函数来转换成字符串注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int a; char …… 题解列表 2018年06月19日 0 点赞 0 评论 801 浏览 评分:0.0
优质题解 蓝桥杯算法提高VIP-盾神与砝码称重 (C++代码) 摘要:```cpp DFS每种情况:每个砝码 3 种状态,假设左边为正,右边为负,遍历 3 种状态即可。 OPT(num - 1, sum + datas[num]); 第 num 个砝码放左边。 O…… 题解列表 2018年06月18日 4 点赞 6 评论 2005 浏览 评分:9.4
蓝桥杯2013年第四届真题-公式求值 (C语言代码) 摘要:解题思路其实我是错误答案,我只想问问哪错了,在低数值的情况下可以算出正确答案注意事项:不明白参考代码:#include<stdio.h>int fow(int i,int k);int j(int n…… 题解列表 2018年06月18日 2 点赞 11 评论 5695 浏览 评分:8.0
优质题解 蓝桥杯2015年第六届真题-机器人繁殖 (C++代码) 摘要:解题思路: 总数不超过50位,问题不大,可以用double保存,这题考的就是数学。我们可以把每一年增加的数量都列出来,看作一个数列,例如题目给的:5 9 17... 不难看出递推公式 …… 题解列表 2018年06月18日 1 点赞 0 评论 2156 浏览 评分:6.7
【能量项链】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> using namespace std; con…… 题解列表 2018年06月18日 0 点赞 0 评论 1210 浏览 评分:9.0
P1019 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; const…… 题解列表 2018年06月18日 0 点赞 0 评论 945 浏览 评分:0.0
转换的问题来了 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<math.h> using namespace std; const i…… 题解列表 2018年06月18日 0 点赞 0 评论 769 浏览 评分:8.0
倒数第二 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[100]={0}; int m…… 题解列表 2018年06月18日 0 点赞 0 评论 1051 浏览 评分:2.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:5个char变量,声明时不要赋值,用scanf输入之后,再在用printf输出时实现变形。注意事项:不要忘记加分号(;),不要打错字,就这样吧!参考代码:(前面省略,这里只给出main以后的…… 题解列表 2018年06月18日 0 点赞 0 评论 934 浏览 评分:0.0