How to get past this weird MLE ?

Revision en1, by MedoN11, 2017-06-08 03:54:03

Hello, I was recently solving this problem :

My solution uses line sweep here :

It gets MLE on the first sample test case + 1200+MS. Now when I run this on custom invocation without reading/writing into file I get :

Used: 15 ms, 4 KB

Is it possible to get past this MLE ? Can someone explain what is going on?

Thanks !


  Rev. Lang. By When Δ Comment
en1 English MedoN11 2017-06-08 03:54:03 466 Initial revision (published)