Rosetta Problems
← yosupo に戻る
Stern–Brocot Tree
https://judge.yosupo.jp/problem/stern_brocot_tree