I have tried every case i could find on forum and net .....still my code gives wa...i havent used bfs just maths ...plzzzz provide me with some test cases in which my code fails...THANKS IN ADVANCEmy code ----->
GOT AC