ChatCrawlerпоиск по публичному Telegram Открыть приложение
О

Основы Python

сообщение · 2025-03-31 19:27 UTC
A
Ответсообщение недоступно
Всем привет! Застряла на задаче «Властелин Чисел: Две Башни» Выдавет «Неправильный ответ» на 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)

Вся лента · оригинал в Telegram

Открыть в Telegram Каталог площадок Искать в ChatCrawler

Слепок открытой публичной ленты из поискового индекса ChatCrawler — «Google по публичному Telegram»; обновляется по мере обхода площадки. Время — UTC.

Только публичный контент, официальный API Telegram. О проекте · Вопросы · Чего мы не делаем · Убрать страницу из выдачи · Каталог