Pastehsjsjs

Untitled

May 9th, 2023
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. def f(x, a1, a2):
  2. return ((590 <= x <= 2280) <= (a1 <= x <= a2)) or (
  3. ((x % 30 == 0) <= (2570 <= x <= 3560)) <= ((50 <= x <= 6000) <= (a1 <= x <= a2)))
  4.  
  5.  
  6. min_l = 10 ** 10
  7. for a1 in range(550, 590):
  8. for a2 in range(2000, 2300):
  9. if all(f(x, a1, a2) for x in range(1, 5000)):
  10. min_l = min(a2 - a1, min_l)
  11.  
  12. print(min_l/10)
Advertisement
Add Comment
Please, Sign In to add comment