Rosetta Problems

A/B < p/q < C/D

https://atcoder.jp/contests/abc408/tasks/abc408_g