Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Number Guess by Moff
def checkio(attempts):
unused_divisors = set(range(2, 11))
nums = set(range(1, 101))
for rem, divisor in attempts:
unused_divisors.discard(divisor)
for i in range(1, 101):
if i % divisor != rem:
nums.discard(i)
return min(unused_divisors), min(nums)
Aug. 29, 2015