W4yneb0t's blog

By W4yneb0t, history, 9 years ago, In English

I remember reading this problem in some contest, but I don't remember where. I think the contest was 2016 or so. I searched on a few websites with no luck. Do you happen to know what contest it was?

The problem is: Given integers a1, ..., an, We define x0 = 1 and for every . Find xn. The solution was O(n * polylog(n)) with FFT.

  • Vote: I like it
  • +53
  • Vote: I do not like it

| Write comment?
»
9 years ago, hide # |
 
Vote: I like it +20 Vote: I do not like it
»
9 years ago, hide # |
 
Vote: I like it +25 Vote: I do not like it

I remember 2 such problems from CSacademy: Colored Forests and Jetpack. Both are basically some easy combinatorics + what you're asking for.

»
9 years ago, hide # |
Rev. 3  
Vote: I like it +10 Vote: I do not like it

I wrote this task on Codechef as well (late 2014): task / solution (It is like O(n log^2 n))