Problem Statement: https://codeforces.com/problemset/problem/279/B
My Code: https://ide.codingblocks.com/s/90408
Most Probably I am doing something wrong inside maxSum function which returns the maximum sum till he can read the books in time t from the array of cumulative sum (aka prefix sum) but I am not able to understand what is going wrong?