题解列表

筛选

编写题解 2909: 直方图

摘要:解题思路:写代码里了注意事项:写代码里了参考代码:#include<stdio.h>int main(){    int n,s=-1,i;    scanf("%d",&n);    int num……

用二叉树的思想进行减枝

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int asd(int a);int main(){ int m,a,b,i,j,e=0; scanf(……

1107: 纪念品分组

摘要:解题思路:动态数组:vector<int>p(n)sort 对数组进行降序排序两重遍历,只要两项加起来小于等于w,就分为一组已分配好的纪念品置成-1(价格不会达到的数)第一重遍历会遇到已经分配好的纪念……

拼接平方数

摘要:```python n, m = map(int, input().split()) ls = [i for i in range(n, m + 1) if int(i**0.5)**2 == i……

排列 dfs暴力

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; // 全局变量声明 int n, a[5], b[5], m = 0; ……

蓝桥杯2024年第十五届省赛真题-遗迹

摘要:## 知识点 动态规划。 ## 题面 小蓝找到了一个外星文明留下来的遗迹,遗迹大门的屏幕上有一个长度为m 的字符串 t 和一个输入框,下面还有一个键盘,键盘为一个长度为 n 的字符串 s ,由一……

2875: 回文子串

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int main( ){    char s[501]={0};    int n,len,beg……