I can not detect an error in the code. Help me find the error (code below, after the task):
Laptops packed in boxes were brought to the warehouse, which has a rectangular parallelepiped shape. Each box also has a rectangular parallelepiped shape. According to the rules of storage boxes with laptops must be placed in stock with the following two conditions:
- The sides of the boxes should be parallel to the sides of the warehouse.
- When placed in a warehouse, it is allowed to place the box anywhere (with the previous condition), including on the other box, but all boxes must be oriented the same way (i.e. one box cannot be “standing” and the other “lying”)
Write a program that, by the size of the warehouse and the size of the box with a laptop> determines the maximum number of laptops that can be placed in the warehouse.
Input format
The program receives six natural numbers as input. The first three set the length, height and width of the warehouse. The following three set the length, height and width of the box with the laptop, respectively.
Output format
The program should display one number - the maximum number of laptops that can be placed in stock.
Examples
Тест 1 Входные данные: 100 200 300 1 2 3 Вывод программы: 1000000 Тест 2 Входные данные: 100 200 300 3 2 1 Вывод программы: 1000000 Тест 3 Входные данные: 100 100 1 2 2 2 Вывод программы: Тест 4 Входные данные: 7 7 7 3 3 3 Вывод программы: 8
a = int(input()) # while a != -1: b = int(input()) c = int(input()) x = int(input()) y = int(input()) z = int(input()) m1 = int(a // x) * int(b // y) * int(c // z) m2 = int(a // x) * int(b // z) * int(c // y) m3 = int(a // y) * int(b // a) * int(c // z) m4 = int(a // y) * int(b // z) * int(c // x) m5 = int(a // z) * int(b // a) * int(c // y) m6 = int(a // z) * int(b // y) * int(c // x) if a >= x and b >= y and c >= z: if m1 > m2 and m1 > m3 and m1 > m4 and m1 > m5 and m1 > m6: print(m1) elif m2 > m3 and m2 > m4 and m2 > m5 and m2 > m6: print(m2) elif m3 > m4 and m3 > m5 and m3 > m6: print(m3) elif m4 > m5 and m4 > m6: print(m4) elif m5 > m6: print(m5) else: print(m6) else: print(0) # a = int(input())