class Solution { public: /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param nums int整型vector * @param k int整型 * @return int整型 */ int numOfFeedPlans(vector<int>& nums, int k) { int beg, end, sum; beg = end = 0; sum = nums[0]; int n = nums.size(); int ans = 0; while (end < n) { if (s...