// 最小花费 // https://www.nowcoder.com/practice/e6df3e3005e34e2598b9b565cfe797c9 // Medium #include <iostream> using namespace std; const int MAXN = 100; int L1, L2, L3, C1, C2, C3; int cost(int a, int b){ if(b - a == 0) return 0; if(b - a <= L1) return C1; if(b - a <= L2 && ...