Rosetta Problems

Rational Approximation

https://judge.yosupo.jp/problem/rational_approximation