Advertisement
Pastehsjsjs

Untitled

May 9th, 2023
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | Source Code | 0 0
  1. def f(x, a1, a2):
  2. return ((2540 <= x <= 8000) and (not (a1 <= x <= a2))) <= (4100 <= x <= 8230)
  3.  
  4.  
  5. min_l = 10 ** 10
  6. #254 409
  7. for a1 in range(2340, 2600):
  8. for a2 in range(4000, 4150):
  9. if all(f(x, a1, a2) for x in range(1, 10000)):
  10. min_l = min(a2 - a1, min_l)
  11.  
  12. print(min_l / 10)#155.9 => 156
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement