def
gcd(a, b):
while
b:
a, b
=
b, a
%
b
return
a
int gcd(int a, int b)
{
while (b)
{
tie(a, b) = make_pair(b, a % b);
}
return a;
}