FCTRL2 - ideone link for my code..
Im getting the correct answer for all test cases but SPOJ keeps giving me Wrong Answer as result. Can somebody take a look at my code and tell me what the mistake is ?
Ok figured out what was wrong with my code.