背包DP:有依赖的背包问题 #include <cstdio> #include <cstdlib> #include <cmath> #include <cstring> #include <algorithm> using namespace std; int n, V; int f[2][100003]; int main() { scanf("%d%d", &n, &V); for (int i=1,…
https://www.luogu.org/problem/P2967 https://ac.nowcoder.com/acm/contest/1077/B 题目描述 Farmer John's cows love their video games! FJ noticed that after playing these games that his cows produced much more milk than usual, surely because contented cows m…
题目描述 Farmer John's cows love their video games! FJ noticed that after playing these games that his cows produced much more milk than usual, surely because contented cows make more milk. The cows disagree, though, on which is the best game console. On…
emm今天模拟赛的题.神奇地A了 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; int n,v,p,g,gp,pv; ][]; int main(){ int i,j,k; //freopen("vidgame.in","r",stdin); //freopen("v…