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

Автор Chodermal1, история, 4 года назад, По-английски

(1+a1*t+(a1*t)^2+(a1*t)^3......(a1*t)^d) * (1+a2*t+(a2*t)^2...+(a2*t)^d) * ... * (1+an*t+(an*t)^2...(an*t)^d)`

same as 
****(a1*t-1)^-1*(a2*t-1)^-1*..*(an*t-1)^-1****

anyone knows how to get t^d coefficient,d<=1e18

I was thinking of FFT but its dlog(d) which will give tle ,any approach or article where I could read more about polynomial multiplication

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

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

what are the constraints on ai and n? do you have link to the problem?