题解列表
动态规划 最长公共子序列
摘要:解题思路:注意事项:参考代码:a = list(input())
b = list(input())
la = len(a)
lb =len(b)
dp=[[0 for i in range(……
【C语言题解】1025: [编程入门]数组插入处理
摘要:```
#include
定义一个数组来存放数字
int number [15];
int main(){
//清空数组
memset (number,0,sizeof(num……
二分查找求方案数 (最大值)
摘要:二分查找 巧克力划分的方案数 (最大值)
```c++
#include
using namespace std;
const int N = 1e5+10;
typedef long ……
蓝桥杯2022年第十三届省赛真题-数位排序
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int i,n,m,t,s; cin>>n>>m……
图的遍历-BFS广度优先搜索(C++)
摘要:解题思路:#include<iostream>
using namespace std;
#define MAX_VERTEX_NUM 50 // 定义最大结点数;
#define MAXQSI……
编写题解 2002: 计算数字个数(Python)
摘要:解题思路:题解一:通过遍历字符串判断字符是否为数字参考代码:n=input()
s1=0
for i in n:
if i.isdigit():
s1+=1
prin……
计负均正 使用C++语言编写 代码可能不是最简洁的 但是通俗易懂 容易理解 适合入门的 欢迎大家一起讨论
摘要:解题思路:注意事项:参考代码:#include <iostream>#include <iomanip>using namespace std;int main() { const int n ……