题解列表

筛选

1723: 求最大值 超级简单做法

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){     // 定义一个长度为10的整型数组a  ……

1725: 统计字符 超简单做法

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){     // 定义两个字符串变量s1和s2   ……

普普通通的解题方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sum(int n){    int sum = 0;    for(int i = 1; i < n; i++)    if(……

蓝桥杯算法提高-快速排序C++

摘要:解题思路:使用快速排序标准解答注意事项:参考代码:#include<iostream>using namespace std;const int MAX=1e5+10;int a[MAX];int p……

C语言 两个数组+3个for循环解决问题

摘要:解题思路:  用 数组b 的下标记录,我们输入的 数组a 的各个值出现的次数例如 a[6]={ 5, 2, 3, 2, 2, 5 } ;因为 数组a 的最大值是5 ,所以 数组b 的下标最大值也是5那……