dxnge

Task 8

Sep 16th, 2021
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. a = input().split()
  2. a = list(map(int, a))
  3. x = abs(a[1] - a[2]) - 1
  4. x2 = a[0]+a[1]-a[2]-1
  5. x3 = a[0]+a[2]-a[1]-1
  6. print(min(x, x2, x3))
Advertisement
Add Comment
Please, Sign In to add comment