Day 13: Claw Contraption

Megathread guidelines

  • Keep top level comments as only solutions, if you want to say something other than a solution put it in a new post. (replies to comments can be whatever)
  • You can send code in code blocks by using three backticks, the code, and then three backticks or use something such as https://topaz.github.io/paste/ if you prefer sending it through a URL

FAQ

  • VegOwOtenks@lemmy.world
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    edit-2
    2 days ago

    They do, if the remainder returned by divmod(…) wasn’t zero then it wouldn’t be divisble

    • Acters@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      you are right, we solve for y, but I am confident that solving for x after y would yield the correct result as long as y is fully divisible.