fork download
  1. f = lambda a, b: (b-a + 0.1) // (b-a + 0.2)
  2.  
  3.  
  4. mx = lambda a,b: f(a,b) * a + f(b,a) * b + a * (1- f(a,b) - f(b,a))
  5.  
  6.  
  7. for i in range(-10, 10):
  8. for j in range(-10, 10):
  9. t1 = mx(i,j)
  10. t2 = max(i,j)
  11. assert t1==t2
  12. #print(f(i, j))
Success #stdin #stdout 0.03s 9836KB
stdin
Standard input is empty
stdout
Standard output is empty