题解列表

筛选

化学品问题--线性dp详细解释

摘要:解题思路:用dp[i][0]记录第i个位置不放那个药品的方案数dp[i][1]记录第i个位置放药品的方案数参考代码:#include<bits/stdc++.h> using namespace s……

主体C语言的简单链表

摘要:解题思路:封装函数 调用注意事项:参考代码://// Created by Freedom on 2024/3/19.//#include <iostream>#include <cstdio>usi……

单词的长度

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    string s;    int f = 0;    ……

Dijskra最短路径

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int N=55; int mp[N][N]; int n,……

p进制转换q进制

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int m;char c[]={&#39;0&#39;,&#……