NyaanNyaan / library

Competitive Programming Library
https://nyaannyaan.github.io/library/
Creative Commons Zero v1.0 Universal
215 stars 17 forks source link

[bug] SternBrocotTree について #97

Closed potato167 closed 10 months ago

potato167 commented 10 months ago

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 を入れるとオーバーフローが発生します。

NyaanNyaan commented 10 months ago

報告ありがとうございます!修正します

NyaanNyaan commented 10 months ago

修正しました