質問するログイン新規登録

回答編集履歴

1

d

2021/12/24 09:49

投稿

tiitoi
tiitoi

スコア21962

answer CHANGED
@@ -1,4 +1,4 @@
1
- math.isqrt() で r² ≤ i となる最大の r を求められるので、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