Tom数-题解(C语言代码) 摘要:#include<stdio.h> #include<stdio.h> #include<string.h> int main() { char str[105];//定义字符数组 …… 题解列表 2021年02月21日 0 点赞 0 评论 517 浏览 评分:8.0
C语言训练-亲密数-题解(C语言代码) 摘要:#include <stdio.h> int wan(int a) { int sum = 1, i; for (i = 2; i < a; i++) { if (a % i == 0…… 题解列表 2021年02月21日 0 点赞 4 评论 708 浏览 评分:8.0
蓝桥杯基础练习VIP-矩形面积交-题解(C语言代码) 摘要:解题思路:本人一步步分类讨论,写了好久才写出来,是目前我写的最长的代码啦,好有成就感!!记录一下~注意事项:参考代码:#include<stdio.h>#include<math.h>void swa…… 题解列表 2021年02月22日 0 点赞 0 评论 866 浏览 评分:8.0
2299: 蓝桥杯2019年第十届真题-完全二叉树的权值 Python3 摘要:解题思路:注意事项: 由于python切片机制比较智能,所以这里不需要考虑最后一层的节点数是否缺少。参考代码:import math length, layer = int(input()…… 题解列表 2021年02月23日 0 点赞 0 评论 699 浏览 评分:8.0
C语言训练-求矩阵的两对角线上的元素之和-题解(C语言代码) 摘要:解题思路: 采用二维数组的方法 for循环遍历 注意事项: 对角线规律 n*n 阶 行: i 列:j 主对角线:i==j 副对角线:i + j==(n-1)…… 题解列表 2021年02月25日 0 点赞 1 评论 1060 浏览 评分:8.0
优质题解 并查集高效解决“全球变暖” 摘要:解题思路: 1.首先根据并查集可以得到在地球变暖前一共有多少岛屿:事先求出一共有多少'#',之后每合并一个就减一,最后剩的个数就是岛屿数量。并且每个岛屿的祖先都是指向了一个…… 题解列表 2021年02月25日 0 点赞 0 评论 955 浏览 评分:8.0
1201: 回文数(一) 递归 摘要:```javascript #include//这个思路和回文(二)差不多 using namespace std; const int N=1e3; char m[N]={0}; int …… 题解列表 2021年02月28日 0 点赞 0 评论 684 浏览 评分:8.0
[编程入门]矩阵对角线求和-题解(C语言代码)(二维数组) 摘要:```c #include int main() { int a=0,b=0; int arr[3][3],row,col; for(row=0;row…… 题解列表 2021年03月02日 0 点赞 0 评论 588 浏览 评分:8.0
1669: 求圆的面积 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ float r; scanf("%f",&r); printf("%.2f",r*r*3.14159);}…… 题解列表 2021年03月03日 0 点赞 0 评论 1397 浏览 评分:8.0
if、else if、else每个条件 摘要:解题思路:每个条件都列出来注意事项:参考代码#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a<=b&&a…… 题解列表 2021年03月03日 0 点赞 0 评论 370 浏览 评分:8.0