my code is passing test case but showing wa https://www.codechef.com/viewsolution/33544664
Read this whole thread: TLE in TREDIFF - #4 by ssjgz