CC's

Back

primes(x)primes(x)为x的质因数的集合。

g(x,p)g(x,p)表示可以整除x的最大的pkp^k

f(x,y)f(x,y)表示将x作分解后对每个质因子作用到1到y上求gg的乘积。

f(x,n)f(x,n)

分析#

……最后你会发现,这题就是求阶乘质因子的乘积。

代码#

[CF589C] primes and multiplication
https://astro-pure.js.org/blog/cf589c-primes-and-multiplication
Author Cheng Chen
Published at 2019年9月30日
Comment seems to stuck. Try to refresh?✨