xehoth / xehoth-blog-comment

0 stars 0 forks source link

「NOIP 2014」解方程-Hash | xehoth #170

Open xehoth opened 7 years ago

xehoth commented 7 years ago

https://blog.xehoth.cc/NOIP2014-Formula/

分析令f(x)=a0+a1x+a2x2+⋅⋅⋅+anxn=0f(x) = a_0 + a_1 x + a_2x^2 + \cdot \cdot \cdot + a_nx^n = 0f(x)=a​0​​+a​1​​x+a​2​​x​2​​+⋅⋅⋅+a​n​​x​n​​=0,那么对于一个质数ppp取模,如果有f(x)=0f(x) = 0f(x)=0,则一定有f(x)%p=0f(x)\% p = 0f(