洛谷P1807[已解决] 动态规划
78#include<cstdio>#include<cstring>#include<vector>#include<algorithm>using namespace std;const int maxn = 1505;struct Node { int w; int v; Node(int _v,int _w):v(_v),w(_w){}};vector<Node> Adj[maxn];int n;int dp[
原创
2021-04-26 20:15:24 ·
90 阅读 ·
0 评论