Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Sport Watch by mortonfox
def pace_adjust(h1: int, h2: int, s: int) -> int:
if h2 > 3 * h1 or s < 95: return -1
if h2 < 2 * h1 and s > 97: return 1
return 0
print("Example:")
print(pace_adjust(60, 180, 97))
# These "asserts" are used for self-checking
assert pace_adjust(60, 190, 98) == -1
assert pace_adjust(70, 140, 92) == -1
assert pace_adjust(70, 130, 98) == 1
print("The mission is done! Click 'Check Solution' to earn rewards!")
June 12, 2024
Comments: