Closed NachiaVivias closed 2 months ago
同じ有理数を 2 回以上質問する場合があります。
3 -> 0 , 4 -> 0 の遷移の間違いが原因です。
https://github.com/NachiaVivias/cp-library/blob/4d814fc3c2ed6555719399d9a5be7e41add1cff5/Cpp/Include/nachia/math/rational-number-search.hpp#L74-L86
修正の参考: https://judge.yosupo.jp/submission/197971
同じ有理数を 2 回以上質問する場合があります。
3 -> 0 , 4 -> 0 の遷移の間違いが原因です。
https://github.com/NachiaVivias/cp-library/blob/4d814fc3c2ed6555719399d9a5be7e41add1cff5/Cpp/Include/nachia/math/rational-number-search.hpp#L74-L86