GCD

Revision en1, by LushoPlusPlus, 2020-06-04 02:42:18

Hi dear community!

last day I was solving a GCD problems, it was easy for a,b <= 10^5 but when the limits change to a,b <=10^9, I got TLE how can I optimize this? what that it mean GDC(a,b)=GCD(b,a%b)? and how can I apply this to solve the problem?.

thanks in advanced

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English LushoPlusPlus 2020-06-04 02:42:18 277 Initial revision (published)