Rosetta Problems

Rectangle GCD

https://atcoder.jp/contests/abc254/tasks/abc254_f