Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('Input size of BOX:')
- A=int(input('A= '))
- B=int(input('B= '))
- C=int(input('C= '))
- print('Input size of DOOR:')
- M=int(input('M= '))
- K=int(input('K= '))
- count=0
- # AB side
- if (A<K and B<M):
- print('BOX can enter in the DOOR horizontally by AB side')
- else: count=count+1
- if (B<K and A<M):
- print('BOX can enter in the DOOR vertically by AB side')
- else: count=count+1
- # AC side
- if (A<M and C<K):
- print('BOX can enter in the DOOR horizontally by AC side')
- else: count=count+1
- if (C<M and A<K):
- print('BOX can enter in the DOOR vertically by AC side')
- else: count=count+1
- # BC side
- if (B<K and C<M):
- print('BOX can enter in the DOOR horizontally by BC side')
- else: count=count+1
- if (C<K and B<M):
- print('BOX can enter in the DOOR vertically by BC side')
- else: count=count+1
- # Global
- if (count==6):
- print('Box can not enter in the door')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement