Advertisement
vadim_sharaf

Untitled

Sep 21st, 2021
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. x, y, z = map(int, input().split())
  2. if y > z:
  3.     y, z = z, y
  4. a = (z - y) - 1
  5. b = (x - z) + (y -1)
  6. print(min(a, b))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement