where did I go wrong?

This is my solution for kitchen time table problem.what mistake did I do as it is replying me as wrong answer?

Here-

Input
1
3
10 20 30
15 5 15
Your Output
2
Expected Output
1

Dear, please dont use award point feature, it reduces your karma. Use “Accept Answer” instead.