int GetCommonDevisor(int x, int y){ return (!y) ? x:GetCommonDevisor(y, x%y);} 转载于:https://www.cnblogs.com/jackill/archive/2009/07/06/1517692.html