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 smile

  • created

    May '11
  • last reply

    May '11
  • 1

    reply

  • 263

    views

  • 1

    user

I found the problem. It was in the checking of the input data's values. I just removed that checking without touching the logic and everything went well. smile