Ad
  • Custom User Avatar
  • Custom User Avatar

    fixed. float64

  • Custom User Avatar

    Thanks. I fixed both.

  • Custom User Avatar

    Test case related issues:

    The random tests aren't actually random, they're just a bunch of fixed tests.

    Also:

    If the time it takes to reach a distance is less than 1, the nozzle slows down to reach the point exactly in one second to achieve a more accurate and detailed print.

    This part is not tested: there are submitted solutions which passes despite never checking for this.

  • Custom User Avatar

    Please add sample tests.

    Initial code: return type is int, but the example in the description shows a non-integral return value. Is it int or float64?

  • Custom User Avatar

    it's ok in firefox as well now

  • Custom User Avatar

    That is strange, I see it as 1. Let me confirm with you on how I wrote it.
    (three backticks)math
    d= \sqrt{...}
    (three backticks)

  • Custom User Avatar

    I still see two formulas. Using Firefox.

    ETA: Opera doesn't have the problem

    Oh now it's just one

  • Custom User Avatar

    Done. Thanks!

  • Custom User Avatar

    Thankyou. Its been taken care of.

  • Custom User Avatar

    The description has a few problems:

    • the formula is rendered twice for some reason

    • it is not possible that a distance is less than a speed; the units don't line up. please reword this to something strictly correct

    Raising this as an issue to give yuou the chance to remove the rounding before it's too late.

  • Custom User Avatar

    Do not use rounding; use approximate equality.

    See documentation on writing tests with floating point numbers.