WA in nuclear reactor

can anybody help…I am getting Wa in which test cases??

question-link text
solution-link text

You are taking input incorrectly.

You are taking number of test cases, and the question doesn’t have any.

There will be only 1 line consisted of A,N,K integers.

//