回答編集履歴
1
d
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
math.isqrt() で r² ≤ i
|
1
|
+
math.isqrt() で r² ≤ i を満たす最大の整数 r を求められるので、r² = i となれば、整数の平方根です
|
2
2
|
|
3
3
|
[math — Mathematical functions — Python 3.8.12 documentation](https://docs.python.org/3.8/library/math.html#math.isqrt)
|
4
4
|
|