动态规划--01背包
exmy
Less is more, and more is less.
展开
-
蓝桥杯--算法提高 01背包
题解水水更健康~#include <iostream>#include <algorithm>using namespace std;const int maxn = 5000 + 10;int dp[maxn];int n, m;int main(){ cin >> n >> m; int w, v; for(int i = 0; i < n; ++i)原创 2016-03-16 17:52:34 · 1022 阅读 · 0 评论 -
PAT--1068. Find More Coins
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which could accept all kinds of coins as payments. However,原创 2017-07-30 23:13:21 · 363 阅读 · 0 评论