Rosetta Problems

Greatest of the Greatest Common Divisors

https://onlinejudge.u-aizu.ac.jp/problems/1463