FCTRL2 - ideone link for my code.7.

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 ?

  • created

    Jul '17
  • last reply

    Jul '17
  • 1

    reply

  • 559

    views

  • 1

    user

  • 1

    link

Ok figured out what was wrong with my code.

  1. on line number 18 i used break instead of continue.
  2. i wasn't printing a new line after outputting 1 for numbers 0 and 1.

Suggested Topics

Topic Category Replies Views Activity
C and C++ 0 35 26d

Want to read more? Browse other topics in C and C++ or view latest topics.