This problem was asked by Ema.
  Given an array of numbers 

 and an integer 

, your task is to split 

 into 

 non-empty consecutive partitions such that the maximum sum of any partition is minimized. Output the length of each of the 

 partitions. If there are multiple solutions, output the solution with the largest lexicographical order. 
 Solution A is considered to be lexicographically larger than Solution B if there exists an integer 

(

), where the first 

 partitions in A and B have the same length, and the 

th partition in A is longer than that in B. 
 For example, given 

 and 

, you should output 

, since the optimal partition is 

. Note that this example used this format solely for convenience, your program should follow the format described below.