Closed potato167 closed 10 months ago
https://github.com/NyaanNyaan/library/blob/master/math/stern-brocot-tree.hpp
26 行目、30 行目が int になっているが、Int であるべきだと思います。
例えば、Int = long long として、 X=1,Y=1e18 を入れるとオーバーフローが発生します。
報告ありがとうございます!修正します
修正しました
Describe the bug
https://github.com/NyaanNyaan/library/blob/master/math/stern-brocot-tree.hpp
26 行目、30 行目が int になっているが、Int であるべきだと思います。
Additional context
例えば、Int = long long として、 X=1,Y=1e18 を入れるとオーバーフローが発生します。