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

#include <iostream> #include <string.h> using namespace std; int dp[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=1; i<=M; i++) for (j=T;j>=0; j--) if
相关文章
相关标签/搜索