Gerald 04- december cook off

Whats wrong with the following code : http://www.codechef.com/viewsolution/3124731
I am doing exactly the same way mentioned in tutorial .
Question’s link : http://www.codechef.com/COOK41/problems/GERALD04

think on the logic first ur code giving WA for third test case.

Sorry, I had a typo in the editorial before. Check that again.

The problem is that m1 in your code can be less than m2 like in 11:30 and 10:47.where m1=30 and m2=47.So,correct your value of t.

1 Like

Yeah… i did this other way but seeing editorial, got confused how can two contradictory things be correct!!