Rosetta Problems

Greatest Common Divisor

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