#include<bits/stdc++.h>
using namespace std;
const int N =110, M = 10010;
int n;
int f[N][M];
struct Stone{
int s, e, l;
}stone[N];
bool cmp(Stone a, Stone b){
return a.s * b.l < b.s * a.l;
AcWing 734 能量石 题解 (动态规划—DP—背包问题)
最新推荐文章于 2025-01-13 20:10:40 发布
