Программа должна вывести одну из следующих строчек:
Boxes are equal, если коробки одинаковые,
The first box is smaller than the second one, если первая коробка может быть положена во вторую,
The first box is larger than the second one, если вторая коробка может быть положена в первую,
Boxes are incomparable, во всех остальных случаях.
Проверяющая программа говорит, что код не пошёл 5-ю проверку:
Test 5 Wrong answer.
В чём проблема именно, не ясно…
Вот код:
a1 = int(input()) b1 = int(input()) c1 = int(input()) a2 = int(input()) b2 = int(input()) c2 = int(input()) v1 = a1 * b1 * c1 v2 = a2 * b2 * c2 if a1 > a2 and a1 > b2 and a1 > c2\ or b1 > a2 and b1 > b2 and b1 > c2\ or c1 > a2 and c1 > b2 and c1 > c2\ or a2 > a1 and a2 > b1 and a2 > c1\ or b2 > a1 and b2 > b1 and b2 > c1\ or c2 > a1 and c2 > b1 and c2 > c1: print("Boxes are incomparable") else: if v1 > v2: print("The first box is larger than the second one") if v1 < v2: print("The first box is smaller than the second one") if v1 == v2: print("Boxes are equal")