Rating changes for last rounds are temporarily rolled back. They will be returned soon. ×

Zahra.H's blog

By Zahra.H, 9 years ago, In English

Hi everyone i had a problem with this code. when i run that on my laptop it gives the correct answer but when i submit it CF says its wrong what should i do ??? here is my code

http://codeforces.com/contest/508/submission/10222184

  • Vote: I like it
  • 0
  • Vote: I do not like it

»
9 years ago, # |
  Vote: I like it +3 Vote: I do not like it

It's probably an issue with floating-point precision when you use pow. Rewrite pow(10, j) using only integer arithmetic and you'll be OK.

  • »
    »
    9 years ago, # ^ |
      Vote: I like it +11 Vote: I do not like it

    thank you so much i Rewrote it :)

    that was really helping :)