l = lambda a,b:a-a*.5**(6048e5/b)>9e3 tests = ( (8e3, 4e4), (7e4, 8e2), (18e3, 6048e5), (18e3, 604800001), (18e3, 604799999), (1, 1), (1e5, 1), (1e9, 1e9)) for a,b in tests: print(int(a), int(b), l(a,b))
Standard input is empty
8000 40000 False 70000 800 True 18000 604800000 False 18000 604800001 False 18000 604799999 True 1 1 False 100000 1 True 1000000000 1000000000 True