题解列表

筛选

题解 2701 取模C语言

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> in……

2835: 计算书费

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;double a[10]= { 28.9,32.7,45.6,78,35,86.2……

蓝桥杯算法提高-能量项链

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int n, i, k, left, right;    int arr[200], min;    l……

2836: 数组逆序重放

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a[100000];//不限制范围int main(){    ……

明明的随机数

摘要:解题思路:先输入N,输入N个数,先排序再去重,最后输出,这种解题有点麻烦但是易懂注意事项:参考代码:#include<stdio.h>  int main(){ int a[1000],n,i,j,t……

C++ 最长上升公共子序列

摘要:解题思路:正常模拟有点难以判断,但是这是一个经典的回文串,将字符串与自己的翻转串求最长公共子序列长度 ,字符串的长度减去最长子序列的长度 就是答案注意事项:参考代码:#include<bits/std……

两个for循环

摘要:解题思路:同时存在多个最多字符时要按字母表顺序输出,因此要创建一个26大小的整形数组,再与统计的最大数量max1比较数值相同时输出对应字符。注意事项:整型和字符之间的转换参考代码:#include<b……