Whats wrong with the following code : CodeChef: Practical coding for everyone
I am doing exactly the same way mentioned in tutorial .
Question’s link : CodeChef: Practical coding for everyone
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!!