Ответсообщение недоступно
Всем привет!
Застряла на задаче «Властелин Чисел: Две Башни»
Выдавет «Неправильный ответ» на 3-м тесте. В IDE у меня все нормально работает, какие числа только не пробовала. Подскажите, плиз, что не так.
Код:
number = int(input())
digit_1 = int(number / 100) % 10
digit_2 = int(number / 10) % 10
digit_3 = number % 10
case_1 = int(str(digit_1) + str(digit_2))
case_2 = int(str(digit_1) + str(digit_3))
case_3 = int(str(digit_2) + str(digit_3))
case_4 = int(str(digit_2) + str(digit_1))
case_5 = int(str(digit_3) + str(digit_1))
case_6 = int(str(digit_3) + str(digit_2))
max = max(case_1, case_2, case_3, case_4, case_5, case_6)
if 10 <= case_1 < case_2 and case_3 and case_4 and case_5 and case_6:
print(case_1, max)
elif 10 <= case_2 < case_1 and case_3 and case_4 and case_5 and case_6:
print(case_2, max)
elif 10 <= case_3 < case_1 and case_2 and case_4 and case_5 and case_6:
print(case_3, max)
elif 10 <= case_4 < case_1 and case_2 and case_3 and case_5 and case_6:
print(case_4, max)
elif 10 <= case_5 < case_1 and case_2 and case_3 and case_4 and case_6:
print(case_5, max)
elif 10 <= case_6 < case_1 and case_2 and case_3 and case_4 and case_5:
print(case_6, max)