vadim_sharaf

Untitled

Sep 21st, 2021
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. x = sorted(map(int, input().split()))
  2. y = sorted(map(int, input().split()))
  3. if x == y:
  4.     print('Boxes are equal')
  5. elif x[0] <= y[0] and x[1]<=y[1] and x[2]<=y[2]:
  6.     print('The first box is smaller than the second one')
  7. elif x[0] >= y[0] and x[1]>=y[1] and x[2]>=y[2]:
  8.     print('The first box is larger than the second one')
  9. else: print('Boxes are incomparable')
Advertisement
Add Comment
Please, Sign In to add comment