编写题解 1009: [编程入门]数字的处理与判断--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ long int a,tem…… 题解列表 2022年03月04日 0 点赞 0 评论 385 浏览 评分:0.0
bfs+dfs(判断是否是关键点) 摘要:解题思路: 1.用bfs求出图的start 和 target 最短路径,因为要求关键点就是求start 到 target 路径上的关键点 2.用dfs判断路径上的点是否…… 题解列表 2022年03月04日 0 点赞 0 评论 387 浏览 评分:0.0
自定义函数求一元二次方程 摘要:解题思路:注意事项:参考代码:def dayu(b,c,d): g = (-c + f) / (2 * b) h = (-c - f) / (2 * b) print("x1={:.…… 题解列表 2022年03月04日 0 点赞 0 评论 498 浏览 评分:0.0
编写题解 1013: [编程入门]Sn的公式求和--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int n,An=0,Sn=0; scanf("%d",&n); while(n!=0){ …… 题解列表 2022年03月04日 0 点赞 0 评论 435 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100; i<1000; i++){ a = i…… 题解列表 2022年03月04日 0 点赞 0 评论 411 浏览 评分:0.0
蚂蚁感冒解题方法 摘要:解题思路:注意题目中说明第一个输入的数据为感冒的蚂蚁,正数为向右移动的蚂蚁,负数为向左移动的蚂蚁如果两只相邻的蚂蚁是同向移动,是不会相遇的,也就是不会掉头用给出的案例来讲解下-10 8 -20 12 …… 题解列表 2022年03月04日 0 点赞 0 评论 393 浏览 评分:0.0
蓝桥杯基础练习VIP-芯片测试c++ 摘要:```cpp #include using namespace std; const int N = 20; int a[N][N],s[N],n; int main() { cin >…… 题解列表 2022年03月04日 2 点赞 0 评论 574 浏览 评分:0.0
Huffuman树费用--python 摘要:解题思路:注意事项:参考代码:def create_huffman(nums): cost = 0 while len(nums) > 1: pa = nums.…… 题解列表 2022年03月04日 0 点赞 0 评论 414 浏览 评分:0.0
蓝桥杯算法提高-快速排序 摘要:解题思路:注意事项:快排时,先从右向左找小于基准值的数交换,再从左向右找大于基准数的值交换。参考代码:#include <iostream>using namespace std;void Quick…… 题解列表 2022年03月04日 0 点赞 0 评论 588 浏览 评分:0.0
求最小绝对值 摘要:```cpp #include using namespace std; int main() { int a[11],b[11]; for(int i=0;i>a[i]; b…… 题解列表 2022年03月04日 0 点赞 0 评论 431 浏览 评分:0.0