-
Notifications
You must be signed in to change notification settings - Fork 0
/
korobki.py
29 lines (29 loc) · 1.15 KB
/
korobki.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
a1 = int(input())
b1 = int(input())
c1 = int(input())
a2 = int(input())
b2 = int(input())
c2 = int(input())
if ((a1 == a2 and b1 == b2 and c1 == c2) or
(a1 == a2 and b1 == c2 and c1 == b2) or
(a1 == c2 and b1 == a2 and c1 == b2) or
(a1 == b2 and b1 == a2 and c1 == c2) or
(a1 == b2 and b1 == c2 and c1 == a2) or
(a1 == c2 and b1 == b2 and c1 == a2)):
print('Boxes are equal')
elif ((a1 <= a2 and b1 <= b2 and c1 <= c2) or
(a1 <= a2 and b1 <= c2 and c1 <= b2) or
(a1 <= c2 and b1 <= a2 and c1 <= b2) or
(a1 <= b2 and b1 <= a2 and c1 <= c2) or
(a1 <= b2 and b1 <= c2 and c1 <= a2) or
(a1 <= c2 and b1 <= b2 and c1 <= a2)):
print('The first box is smaller than the second one')
elif ((a1 >= a2 and b1 >= b2 and c1 >= c2) or
(a1 >= a2 and b1 >= c2 and c1 >= b2) or
(a1 >= c2 and b1 >= a2 and c1 >= b2) or
(a1 >= b2 and b1 >= a2 and c1 >= c2) or
(a1 >= b2 and b1 >= c2 and c1 >= a2) or
(a1 >= c2 and b1 >= b2 and c1 >= a2)):
print('The first box is larger than the second one')
else:
print('Boxes are incomparable')