This website works better with JavaScript
Главная
Обзор
Помощь
Регистрация
Вход
wolves
/
leetcode
зеркало из
https://git.wolves.top/wolves/leetcode.git
Следить
1
В избранное
0
Ответвить
0
Файлы
Задачи
0
Вики
Дерево:
affa209d93
Ветки
Метки
main
leetcode
/
greed
/
lcs01.py
lcs01.py
118 B
История
Исходник
1
2
3
4
5
6
import math
def least_minutes(n: int) -> int:
if n == 0:
return 0
return math.ceil(math.log2(n)) + 1