(RQoj 15 采药------rwkj 10.1.5.253 1447) 动态规划 DP 2

70 3 71 100 69 1 1 2         #include <iostream> #include <string.h> using namespace std; int dp[105][1005], w[105],v[105],T,M; int max(int x,int y) { return x>y?x:y; } void f( ) { int i,j; for (i=M;
相关文章
相关标签/搜索