Is __gcd(x,y) slower that gcd(x,y)?

Revision en1, by copyPasteCoder, 2024-12-26 16:28:15

For the problem 2043D - Problem about GCD,

  • 298543362 — using $$$gcd$$$ function — gives AC (578 ms)
  • 298543382 — using __$$$gcd$$$ function — gives TLE

I was earlier told that by my friends and mentors that __gcd is faster than gcd. Can anyone tell where did I go wrong $$$?$$$

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English copyPasteCoder 2024-12-26 16:28:15 372 Initial revision (published)