Meera and Solo Chocolates

Limits: 3s, 512 MB

Meera bought candies from the store. She is now going to distribute those among her N friends. She makes her friends stand in a line. Then, she chooses an array A of length K containing positive integers.


This is a companion discussion topic for the original entry at https://toph.co/p/meera-and-solo-chocolates