fork(2) download
  1. l = lambda a,b:a-a*.5**(6048e5/b)>9e3
  2.  
  3. tests = (
  4. (8e3, 4e4), (7e4, 8e2), (18e3, 6048e5), (18e3, 604800001),
  5. (18e3, 604799999), (1, 1), (1e5, 1), (1e9, 1e9))
  6.  
  7. for a,b in tests:
  8. print(int(a), int(b), l(a,b))
Success #stdin #stdout 0.01s 9992KB
stdin
Standard input is empty
stdout
8000 40000 False
70000 800 True
18000 604800000 False
18000 604800001 False
18000 604799999 True
1 1 False
100000 1 True
1000000000 1000000000 True