Ad
  • Default User Avatar

    Your code uses the floating point number division operator / instead of // for integer division since python version 3.
    In python versions 2.x / could mean integer division, but this has been changed incompatibly since version 3.
    You must calculate with integers only, not floats. Then it works.
    The problem is that floating point numbers have only limited precision, they can't store verly large integers.
    In python, integers can be as large as you want, but always divide using // to get an integer result.

  • Default User Avatar

    help plz. don't know to do with [29879210959179984, 5605981268940187] should equal [79677895891146625, 14949283383840498] python