Ad
  • Custom User Avatar

    little suggestion for anyone having trouble with float imprecision, since some of the random tests become egregiously big. you can make use of the fraction module in python.

    from fractions import Fraction
    
    Fraction(1, 10) # 1/10, or 0.1