Tyrell has an array arr, denoting the weights of N burgers. The burgers can be eaten only
Fantastic news! We've Found the answer you've been seeking!
Question:
Tyrell has an array arr, denoting the weights of N burgers. The burgers can be eaten only continously ie in sequence as in arr. What should be the minimum weight eating capacity per day, of Tyrell, to consume all the burgers in k days?
Input format
The first line will contain the size of an array, N
Next N lines will contain N integers denoting array arr.
The last line will contain integer k
Constraints
kN
arri
Examples
Input:
Output:
Explanation:
k
arr
st day:
nd day:
rd day:
th day:
th day:
Min Cap to eat in a day required
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date: