程序员的表白 (C语言代码) 摘要:解题思路:根据u字格式 利用for循环扫描打印 将u 分为两部分 竖线部分 和横线部分 分别打印 竖线部分有n行 每行有n+2 列 用两个循环嵌套即可注意事项:参考代码:#include<stdio.…… 题解列表 2018年06月19日 1 点赞 0 评论 1145 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,s=0,r=0; scanf("%d%d", &a, &b); s=a*b; w…… 题解列表 2018年06月19日 0 点赞 0 评论 517 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:直接利用字符串接收,用strlen()函数输出位数注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){char s[6]={0…… 题解列表 2018年06月19日 0 点赞 0 评论 741 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:利用sprintf函数来转换成字符串注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int a; char …… 题解列表 2018年06月19日 0 点赞 0 评论 638 浏览 评分:0.0
优质题解 蓝桥杯算法提高VIP-盾神与砝码称重 (C++代码) 摘要:```cpp DFS每种情况:每个砝码 3 种状态,假设左边为正,右边为负,遍历 3 种状态即可。 OPT(num - 1, sum + datas[num]); 第 num 个砝码放左边。 O…… 题解列表 2018年06月18日 4 点赞 6 评论 1910 浏览 评分:9.4
蓝桥杯2013年第四届真题-公式求值 (C语言代码) 摘要:解题思路其实我是错误答案,我只想问问哪错了,在低数值的情况下可以算出正确答案注意事项:不明白参考代码:#include<stdio.h>int fow(int i,int k);int j(int n…… 题解列表 2018年06月18日 2 点赞 11 评论 5548 浏览 评分:8.0
优质题解 蓝桥杯2015年第六届真题-机器人繁殖 (C++代码) 摘要:解题思路: 总数不超过50位,问题不大,可以用double保存,这题考的就是数学。我们可以把每一年增加的数量都列出来,看作一个数列,例如题目给的:5 9 17... 不难看出递推公式…… 题解列表 2018年06月18日 1 点赞 0 评论 1924 浏览 评分:6.7
【能量项链】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<algorithm> #include<cstring> using namespace std; con…… 题解列表 2018年06月18日 0 点赞 0 评论 1028 浏览 评分:9.0
P1019 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; const…… 题解列表 2018年06月18日 0 点赞 0 评论 841 浏览 评分:0.0
转换的问题来了 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<math.h> using namespace std; const i…… 题解列表 2018年06月18日 0 点赞 0 评论 609 浏览 评分:8.0