Блог пользователя omkar21_pro

Автор omkar21_pro, история, 4 часа назад, По-английски

In recent codeforces div 4 round In Problem E triple operations my code is giving different output than what is on local machine

Here is my submission 275029038

I do not understand why is that so myoutput

codeforces output

  • Проголосовать: нравится
  • +2
  • Проголосовать: не нравится

»
3 часа назад, # |
Rev. 2   Проголосовать: нравится +1 Проголосовать: не нравится

Don't use log function. It works with doubles, that's why you are getting WA. Write yours own LOG function

  • »
    »
    3 часа назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    Thank you very much for reply

»
3 часа назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

I recommend writing your own logarit function, because the built-in one only works with double. Btw, about the problem, I suggest you this 275041318, Precalculate the number of operations needed for each number.