fork download
  1. from functools import reduce
  2.  
  3. supersnail = lambda you,just: reduce(lambda lost,the: lost+the, [game for game in range(1,you+1) if you/float(game) == you//game]) == just
  4. print (supersnail (1337, 1536))
Success #stdin #stdout 0.03s 10320KB
stdin
Standard input is empty
stdout
True