编写题解 1016: [编程入门]水仙花数判断--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c,i; for(i=100; i<1000; i++){ a = i…… 题解列表 2022年03月04日 0 点赞 0 评论 311 浏览 评分:0.0
蚂蚁感冒解题方法 摘要:解题思路:注意题目中说明第一个输入的数据为感冒的蚂蚁,正数为向右移动的蚂蚁,负数为向左移动的蚂蚁如果两只相邻的蚂蚁是同向移动,是不会相遇的,也就是不会掉头用给出的案例来讲解下-10 8 -20 12 …… 题解列表 2022年03月04日 0 点赞 0 评论 303 浏览 评分: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 评论 470 浏览 评分:0.0
Huffuman树费用--python 摘要:解题思路:注意事项:参考代码:def create_huffman(nums): cost = 0 while len(nums) > 1: pa = nums.…… 题解列表 2022年03月04日 0 点赞 0 评论 335 浏览 评分:0.0
蓝桥杯算法提高-快速排序 摘要:解题思路:注意事项:快排时,先从右向左找小于基准值的数交换,再从左向右找大于基准数的值交换。参考代码:#include <iostream>using namespace std;void Quick…… 题解列表 2022年03月04日 0 点赞 0 评论 511 浏览 评分: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 评论 340 浏览 评分:0.0
自定义函数 摘要:```cpp #include using namespace std; double fact(int n){ double a,b=1.0; for(a=1;ax>>n; fo…… 题解列表 2022年03月04日 0 点赞 0 评论 349 浏览 评分:0.0
字符串的查找删除-题解(C++代码)(不知为何检查不多,有没有大佬帮忙解决一下) 摘要:#include <iostream> #include <string> using namespace std; string upper_string(string s) { for …… 题解列表 2022年03月04日 0 点赞 0 评论 419 浏览 评分:0.0
1463: 蓝桥杯基础练习VIP-Sine之舞 C++头疼的递归 摘要:解题思路:递归嵌套,关键只是要看懂题目给出的公式到底是什么东西(给的数据真的很难猜啊)注意事项: A1= sin(1) A2 = sin(1-sin(2)) …… 题解列表 2022年03月04日 0 点赞 0 评论 422 浏览 评分:0.0
题解 2226: 蓝桥杯算法训练-排序(C语言——三目运算符求解) 摘要: #include #include #include int main() { int m,n,k,max,mid,min; scanf("%d %d …… 题解列表 2022年03月04日 0 点赞 0 评论 467 浏览 评分:0.0