__gcd VS std::gcd
Разница между en3 и en4, 0 символ(ов) изменены
Hello Codeforces,  ↵
Just got TLE on [problem:2116C] using `__gcd`, but after switching to `gcd` from `<numeric>`, my code got AC!↵
↵
**TLE Submission (using `__gcd`)**: [Submission #322284306](https://codeforces.me/contest/2116/submission/322284306)  ↵
**AC Submission (using `std::gcd`)**: [Submission #322321593](https://codeforces.me/contest/2116/submission/322321593)↵
↵
I couldn't find a clear reason online for this difference.  ↵
If anyone knows why this happens, please share in the comments section!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский Barakat. 2025-06-01 12:38:41 0 (published)
en3 Английский Barakat. 2025-06-01 12:37:47 143
en2 Английский Barakat. 2025-06-01 12:36:27 126
en1 Английский Barakat. 2025-06-01 12:35:03 259 Initial revision (saved to drafts)