Блог пользователя -rynk2200

Автор -rynk2200, история, 7 дней назад, По-английски

https://mirror.codeforces.com/contest/1920/problem/C

Above is the link to the problem i need help with. How is the complexity of inner loop n+logn and not n*logn? GCD is being calculated inside the loop so the logarithmic term should be multiplied right?

Link of the given tutorial:-

https://mirror.codeforces.com/blog/entry/122560

Полный текст и комментарии »

  • Проголосовать: нравится
  • -1
  • Проголосовать: не нравится