Rosetta Problems

Bedao Testing Contest 01 - FRAC

https://oj.vnoi.info/problem/bedao_t1_frac