题解列表

筛选

p进制转换q进制

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

线性动态规划c++版

摘要:解题思路:简单的线性规划前i个字符的最大松散值=max(算上第i个,不算第i个)算上第i个=前i-2个字符的最大松散值+i的权重不算第i个=前i-1个字符的最大松散值注意事项:参考代码:#includ……

1226题解——贪心

摘要:解题思路:分奇偶两种情况考虑。注意事项:参考代码:#include <stdio.h> #include <iostream>   using namespace std;   int gc……