贪心题,记得要特判一下没有一级饲料的情况,否则会WA #9 #10 2个点。然后不要像本苟蒻一样比赛的时候一不小心给数组的大小少打了个0,导致25%,其余段错误。 #include <iostream> #include <algorithm> using namespace std; int n;long long int m,a;long long int feeds[100010];int ans; int main() { ios::sync_with_stdio(false); cout.tie(0);cin.tie(0); cin&g...