TOPIC

Wrong answer (5%) - Help me please

Paula Andrezza asked 1 year ago

Question solved. Code removed.

I don't understand what is the problem here! I even tested using uDebug and answer is identical to the accepted output! Help me please

This topic was solved and cannot recieve new replies.

  • feodorv replied 1 year ago

    I think that double (instead of float) can give you desired accuracy.

                if((int)(i*10) % 10 == 0)

    So why don't you use integers (with multiplication coefficient 10) from the very beginning???