__gcd VS std::gcd

Правка en4, от Barakat., 2025-06-01 12:38:41

Hello Codeforces,
Just got TLE on 2116C - Gellyfish and Flaming Peony using __gcd, but after switching to gcd from <numeric>, my code got AC!

TLE Submission (using __gcd): Submission #322284306
AC Submission (using std::gcd): 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!

Теги div.2

История

 
 
 
 
Правки
 
 
  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)