我不是张玉想——生命之树-题解(C++代码) 摘要:## 一、解题思路: #### 树形DP ## 二、完整代码(仅供参考,欢迎提出建议和指正) ```cpp #include #include #include #include #i…… 题解列表 2020年08月28日 0 点赞 0 评论 1798 浏览 评分:9.9
C语言训练-求矩阵的两对角线上的元素之和-题解(C语言代码) 摘要:解题思路: a[j][i] a[j][i]1 2 3 //a[0][0] a[2][0]4 5 6 //a[1][1] a[1][1]7 8 9 /…… 题解列表 2020年08月28日 0 点赞 0 评论 1482 浏览 评分:9.9
小九九-题解(C语言代码)注意细节 摘要:注意事项:输出格式左对齐,%-3d就是左对齐如果这个整形不够3位,就补空格,比如 i=3;printf("%-3d",i); 输出结果是3空格空格参考代码:#include<stdio.h> m…… 题解列表 2020年08月28日 0 点赞 3 评论 2223 浏览 评分:9.8
C语言训练-"水仙花数"问题2-题解(C语言代码) 摘要:注意事项:水仙花是三位数,所以100~1000之间的数参考代码:#include<stdio.h> #include<math.h> main() { int i,a,x; …… 题解列表 2020年08月28日 0 点赞 0 评论 1440 浏览 评分:9.9
蓝桥杯2015年第六届真题-穿越雷区-题解(Python代码) 摘要:解题思路: 很明显用广搜就能解决。参考代码:n = int(input()) #模拟地图 mMap = [list(input().split()) for _ in range(n)] …… 题解列表 2020年08月28日 0 点赞 0 评论 1042 浏览 评分:9.9
C语言训练-"水仙花数"问题1-题解(C语言代码) 摘要:参考代码:#include<stdio.h> main() { int a,x=0,j,m; scanf("%d",&m); a=m; while(a!=0…… 题解列表 2020年08月28日 0 点赞 0 评论 1286 浏览 评分:9.9
求长方形面积-题解(C语言代码) 摘要:解题思路:长方形的周长公式:C=2*(a+b),长方形的面积公式:S=a*b注意事项:打印“C:”、“S:”,使用半角冒号参考代码:#include<stdio.h> main() { …… 题解列表 2020年08月28日 0 点赞 0 评论 1489 浏览 评分:7.5
求平方和-题解(C语言代码) 摘要:解题思路:一种是直接a*a+b*b,还有一种是用数学函数pow(a,2)+pow(b,2)注意事项:当用数学函数时不要忘记头文件#include<math.h>参考代码:#include<stdio.…… 题解列表 2020年08月28日 0 点赞 4 评论 2808 浏览 评分:9.9
[编程入门]完数的判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int stu(int n){//找因数 ,判断完数。 int a[1000]; int i=…… 题解列表 2020年08月28日 0 点赞 0 评论 1662 浏览 评分:9.9