Hello everybody.
I've been trying to solve the FCTR problem and i think that my solution is right. However SPOJ keeps returning me WA (wrong answers). Here is my code:
I'm getting the right results for the given example input. Maybe the format of my output is wrong?
All ideas and suggestions are welcome.
Thank you in advance