2005-12-25 最大公約数を求める C++ 頻出 int gcd(int a, int b) { if (b == 0) return a; else return gcd(b, a % b); }