Painter problem sample input not understood

What are the sample input parameters and please explain by quoting another example with more boards and painters.

Input : k = 2, A = {10, 10, 10, 10}
Output : 20.
Here we can divide the boards into 2
equal sized partitions, so each painter
gets 20 units of board and the total
time taken is 20.

Input : k = 2, A = {10, 20, 30, 40}
Output : 60.
Here we can divide first 3 boards for
one painter and the last board for
second painter.

it is simillar to book allocation problem
if you have done it then try that approach

i got the problem , but please explain in terms of n,k ,t li .What are the parameters and how they are inputted from input…i.e.2
2
5
1
10…what is n ,k t li

I have used this code assuming n=2,k=2
a[0]=5,a[1]=1,time=10