摘要:
一看到题目就觉得是一个背包问题,但是不知道怎么写。 题解:直接求背包容量为2*h时所需要的花费。然后h~2h都是满足条件的,去最小值即可。 code: #include<bits/stdc++.h> using namespace std; typedef long long ll; const l 阅读全文
posted @ 2020-02-02 22:00
Target--fly
阅读(192)
评论(0)
推荐(0)
浙公网安备 33010602011771号