2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -2,7 +2,7 @@ static int gcd(int a,int b)
|
|||
{
|
||||
int min=a>b?b:a,max=a+b-min, div=min;
|
||||
for(int i=1;i<min;div=min/++i)
|
||||
if(max%div==0)
|
||||
if(min%div==0&&max%div==0)
|
||||
return div;
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue