蓝桥杯算法提高VIP-盾神与砝码称重 摘要:解题思路:直接dfs,但是这里用到了一个剪枝,降低了时间复杂度注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int n,m; in…… 题解列表 2022年03月28日 0 点赞 0 评论 605 浏览 评分:0.0
c语言,详细注解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ printf("0");//保证空格出现位置 for(int i=1;i<=200000;i++){…… 题解列表 2022年03月29日 0 点赞 0 评论 519 浏览 评分:0.0
2263: 蓝桥杯2015年第六届真题-饮料换购 摘要:解题思路:注意事项:参考代码:n=int(input()) m=n s=0 while True: if n<3: break s+=n//3 n…… 题解列表 2022年03月29日 0 点赞 0 评论 533 浏览 评分:0.0
蓝桥杯算法提高VIP-复数求和 摘要:解题思路:考察链表的建立与遍历注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<malloc.h>typedef struct link{ s…… 题解列表 2022年03月29日 0 点赞 0 评论 435 浏览 评分:0.0
编写题解 1010: [编程入门]利润计算(if) 摘要:解题思路:输入一个整数,判断它在所给已知条件的哪个范围内,然后按段去讨论,去计算,最后一块相加就是所要求的注意事项:按段去计算时,一定要分析每一段参考代码:#include<stdio.h>int m…… 题解列表 2022年03月29日 0 点赞 0 评论 547 浏览 评分:0.0
题解 1717: 数据结构-简单选择排序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int min(int a[], int n, int i) //判断最小值是数组中的哪个数 { int j; …… 题解列表 2022年03月29日 0 点赞 0 评论 353 浏览 评分:0.0
多个无序数按从小到大排序(以10个数为例子) 摘要:解题思路:先读入这多个无序数将其放入数组里,然后for循环遍历数组求出来无序数中的最大的那一个max。接下来同样遍历求出来最小的值min,每次求出来一个数组的最小值就输出,之后标记这个最小值在数组中的…… 题解列表 2022年03月29日 0 点赞 0 评论 551 浏览 评分:0.0
蓝桥杯算法提高VIP-选择排序(非递归100分) 摘要:```cpp #include #include #include #include #include #include #include #include using name…… 题解列表 2022年03月29日 0 点赞 0 评论 413 浏览 评分:0.0