Wind_Lyric's blog

By Wind_Lyric, history, 4 weeks ago, In English

Apologize for my bad English.

We consider to make the answer with a fixed $$$x=2^{p_1}3^{p_2}5^{p_3}...$$$. It's $$$\displaystyle\prod^i C^{p_i}_{x+p_i-1} =\prod^i{\frac {x(x+1)(x+2)...(x+p_i-1)}{p_i!}}$$$ and is already proved in many editorials. Note that it's a polynomial of $$$x$$$, and it's highest exponent is no more than $$$\lfloor\log 2\times 10^5\rfloor = 16$$$.

To calculate the answer, we should know the value of $$$\displaystyle\sum_{i=0}^x i^d$$$. Actually, we have an equation:

From Chinese OI-wiki, where $$$B_i$$$ stands for the i-th Bernoulli's Number.

Thus, we can solve the problem in $$$k\log^2 k$$$ time. Very slow, bro!

Code:

Full text and comments »

  • Vote: I like it
  • -13
  • Vote: I do not like it

By Wind_Lyric, history, 10 months ago, In English
  • I haven't cheated in any contest.
  • My rating is definitely lower than 1600 (Look at my color!)
  • If you ask for my "Real" rating, it's 1400+954-350-500=1504 (for I have taken part in 2 rated contests)

So, I should be rated but it says no?

Please tell me why I'm not rated!

(Apologize for my bad English)

Full text and comments »

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