>>258
for _ in 0..log2(n) as usize 的に回せばいいんでは?

まずやらないけど