I am trying to solve https://community.topcoder.com/stat?c=problem_statement&pm=2384&rd=4755
My code is here http://pastebin.com/Y1GtwPg8
My solution fails in last two given test cases . how to handle those cases? Help please . Thanks in advance :)
I am trying to solve https://community.topcoder.com/stat?c=problem_statement&pm=2384&rd=4755
My code is here http://pastebin.com/Y1GtwPg8
My solution fails in last two given test cases . how to handle those cases? Help please . Thanks in advance :)