题解列表
2263: 蓝桥杯2015年第六届真题-饮料换购
摘要:解题思路:注意事项:参考代码:n=int(input())
m=n
s=0
while True:
if n<3:
break
s+=n//3
n……
蓝桥杯算法提高VIP-复数求和
摘要:解题思路:考察链表的建立与遍历注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<malloc.h>typedef struct link{ s……
编写题解 1010: [编程入门]利润计算(if)
摘要:解题思路:输入一个整数,判断它在所给已知条件的哪个范围内,然后按段去讨论,去计算,最后一块相加就是所要求的注意事项:按段去计算时,一定要分析每一段参考代码:#include<stdio.h>int m……
题解 1717: 数据结构-简单选择排序
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
int min(int a[], int n, int i) //判断最小值是数组中的哪个数
{
int j;
……
多个无序数按从小到大排序(以10个数为例子)
摘要:解题思路:先读入这多个无序数将其放入数组里,然后for循环遍历数组求出来无序数中的最大的那一个max。接下来同样遍历求出来最小的值min,每次求出来一个数组的最小值就输出,之后标记这个最小值在数组中的……
蓝桥杯算法提高VIP-选择排序(非递归100分)
摘要:```cpp
#include
#include
#include
#include
#include
#include
#include
#include
using name……
编写题解 1605: 蓝桥杯算法训练VIP-阿尔法乘积
摘要:#include<bits/stdc++.h>using namespace std;int a(int n,int sum){ if(n<10){ return n; } while(n!=0){……