Код: Выделить всё
a, i = set(), 1
while i
Подробнее здесь: [url]https://stackoverflow.com/questions/57025836/how-to-check-if-a-given-number-is-a-power-of-two[/url]Код: Выделить всё
a, i = set(), 1
while i
Подробнее здесь: [url]https://stackoverflow.com/questions/57025836/how-to-check-if-a-given-number-is-a-power-of-two[/url]