Ad
  • Custom User Avatar

    Because it breaks the loop as soon as you possible; otherwise lots of cycles would be wasted, and it would be much slower.

    See it for yourself: Click on "fork", comment out the random tests (and some of the larger fixed tests), and run it; then comment out the two lines in question and run it again.

    Cheers

  • Default User Avatar

    if abc > n:
    break

    why is it so useful