#include <algorithm> #include <iostream> #include <vector> using namespace std; struct stop{ int r, p, a; }; // 停泊申请 class Solution { public: int minEnergyCost(int f, int m, int n, vector<stop> rp) { if (f * m < n) return -1; sort(rp.begin(), rp.end(), [](const stop& a...