回答編集履歴
1
追記
answer
CHANGED
@@ -1,4 +1,7 @@
|
|
1
1
|
math.log2は小数値を返却するので、`n乗(整数)`の条件を満たせなくなってしまいます。
|
2
2
|
|
3
3
|
<参考>
|
4
|
-
https://www.w3schools.com/python/ref_math_log2.asp
|
4
|
+
https://www.w3schools.com/python/ref_math_log2.asp
|
5
|
+
|
6
|
+
こちらの&演算による判定に変更すればいけるかと。
|
7
|
+
https://programming-place.net/ppp/contents/c/rev_res/math012.html
|