题解列表
T1267-01背包问题
摘要:解题思路:滚动数组—— 一维dp数组遍历:for( ) 物品 for( 逆序) 背包递推公式: dp[ j ] = max( dp[ j ] , dp[ j -w[ i ] ] + ……
2832: 第n小的质数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,j,i,k=0; scanf("%d",&n); ……
2937: 短信计费
摘要:解题思路:注意事项:注意刚好能被70除的情况就行参考代码:#include <iostream>#include <cmath>using namespace std;int main(){ i……