Comments

Yes, thank you very much.

First of all, thank you for replying. Solution looks fine to me, just wanted to confirm, is c1[i] = (2*i -K -1)?

Although there is one interesting thing in the editorial that how parameter \gamma is changed to \theta as range of \theta would be much smaller than \gamma.

Anyways thanks again.

Its correct in the article. Since f(p^k) = k and also f(i/p^k) = f(i) / f(p^k). (this can be proved as; f(i) = f(p^k * i/p^k) => f(i) = f(p^k) * f(i/p^k) => f(i/p^k) = f(i)/f(p^k))

Note: gcd(p^k, i/p^k) = 1

On rhezo → Treap problems on CF only, 9 years ago
0

Hi, Have you understood this solution?