satinja's blog

By satinja, history, 11 years ago, In English

Hi everyone, I have recently participated in codeforces round #308 div2. My submission for problem got wrong answer on pretest 5th. After contest I checked output for same code on ideone (Ideone link here) and my local machine then got correct answer. I don't know why online judge of codeforces was showing wrong output. I request all of you to check on your local machine and let me know if my code is giving any error.

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

| Write comment?
»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Probably because of pre-built pow function. Although I don't know why's it so.

»
11 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

your logic is wrong check it.