GCD �� Greatest Common Divisor�i�ő���j�̗�
| 1 | // GCD �� Greatest Common Divisor�i�ő���j�̗� |
| 2 | long long GCD(long long A, long long B) { |
| 3 | while (A >= 1 && B >= 1) { |
| 4 | if (A < B) B = B % A; // A < B �̏ꍇ�A�傫���� B ������������ |
| 5 | else A = A % B; // A >= B �̏ꍇ�A�傫���� A ������������ |
| 6 | } |
| 7 | if (A >= 1) return A; |
| 8 | return B; |
| 9 | } |
nothing calls this directly
no outgoing calls
no test coverage detected