nq1s788

15 с отрезками

Feb 7th, 2026
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.30 KB | None | 0 0
  1. mx = 0
  2. for l in range(40):
  3.     for r in range(l, 40):
  4.         f = True
  5.         for x in range(-10, 50):
  6.             if not ((((x >= 5) and (x <= 30)) == ((x >= 14) and (x <= 23))) <= (not ((x >= l) and (x <= r)))):
  7.                 f = False
  8.         if f:
  9.             mx = max(mx, r - l)
  10. print(mx)
Advertisement
Add Comment
Please, Sign In to add comment