摘要: 头文件 /*author:revolIA*/ /*明日を変えるなら今日変えなきゃ*/ //#include<bits/stdc++.h> #include<cstdio> #include<iostream> #include<cmath> #include<vector> #include<alg 阅读全文
posted @ 2019-10-03 20:05 revolIA 阅读(213) 评论(0) 推荐(0)
摘要: 01背包 n个物品,v的体积,求最多能装下的价值 每个物品只能拿一次 https://www.acwing.com/problem/content/2/ 1 #include<bits/stdc++.h> 2 using namespace std; 3 int main(){ 4 int N,V, 阅读全文
posted @ 2019-10-01 18:40 revolIA 阅读(313) 评论(0) 推荐(0)