Rosetta Problems

Nearest Fraction

https://atcoder.jp/contests/abc333/tasks/abc333_g