(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
相關文章
相關標籤/搜索