{"id":89385,"date":"2026-08-02T22:40:51","date_gmt":"2026-08-02T14:40:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89385.html"},"modified":"2026-08-02T22:40:51","modified_gmt":"2026-08-02T14:40:51","slug":"%e3%80%90%e9%a2%98%e8%a7%a3%e3%80%91lc%ef%bc%9a%e5%8d%b7%e7%a7%af%ef%bc%88convolution-mod-1000000007%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89385.html","title":{"rendered":"\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09"},"content":{"rendered":"<p>\u6311\u4e86\u4e2a\u6700\u96be\u5b66\u7684\u4e1c\u897f\u505a\u5417\u3002\u5f88\u6709\u8010\u529b\u4e86\u3002<\/p>\n<p>\u4e0b\u6b21\u505a\u70b9 noip \u8003\u7eb2\u5185\u7684\u3002<\/p>\n<hr \/>\n<p>\u6ca1\u5b66\u8fc7 ntt \u6307\u8def&#xff1a;\u3010FFT &amp; NTT | \u90a3\u5fd8\u7b97 7\u3011\u5feb\u901f\u5085\u91cc\u53f6\u53d8\u6362 &amp; \u5feb\u901f\u6570\u8bba\u53d8\u6362 (\u6d1b\u8c37 P3803 \u9898\u89e3)_\u5085\u91cc\u53f6 \u6d1b\u8c37-CSDN\u535a\u5ba2<\/p>\n<\/p>\n<\/p>\n<h3>0.\u5bfc\u5165<\/h3>\n<p>ntt \u7684\u5e95\u5c42\u903b\u8f91\u662f\u539f\u6839&#xff0c;\u5373\u00a0<img decoding=\"async\" alt=\"g^{P-1}=1(mod\\\\ P)\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144049-6a6f56f1d8cad.png\" \/>&#xff0c;\u539f\u6839\u4e3a\u00a0<img decoding=\"async\" alt=\"g=\\\\frac{P-1}{n}\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144049-6a6f56f1e77f0.png\" \/>\u3002<\/p>\n<p>\u8981\u6c42\u662f\u4e00\u5b9a\u6574\u9664&#xff0c;\u6240\u4ee5\u6a21\u6570\u90fd\u662f\u9009\u00a0<img decoding=\"async\" alt=\"2^{x}+1\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144049-6a6f56f1ec1b3.png\" \/>\u00a0\u7684\u5f62\u5f0f&#xff0c;\u8fd9\u6837\u00a0<img decoding=\"async\" alt=\"n(limit)\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144049-6a6f56f1f0898.png\" \/>\u00a0 \u624d\u597d\u9009\u6210 2 \u7684\u5e42\u6b21\u65b9\u4fbf\u5206\u6cbb\u3002<\/p>\n<p>\u90a3\u4e48\u6b63\u5e38\u4eba\u90fd\u77e5\u9053&#xff0c;\u6a21\u6570\u00a0<img decoding=\"async\" alt=\"P-1\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144050-6a6f56f200d65.png\" \/>\u00a0\u7684\u00a0<img decoding=\"async\" alt=\"2\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144050-6a6f56f205489.png\" \/>\u00a0\u56e0\u5b50\u8d8a\u591a\u8d8a\u597d\u3002<\/p>\n<p>\u800c\u8fd9\u9053\u9898&#xff0c;<img decoding=\"async\" alt=\"1000000006 = 2*500000003\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144050-6a6f56f209d4d.png\" \/>&#xff0c;\u4e5f\u5c31\u662f ntt \u7684\u6709\u6548\u4f4d&#xff0c;\u5c45\u7136\u662f <img decoding=\"async\" alt=\"1\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144050-6a6f56f21074f.png\" \/>\u00a0\u8036&#xff01;<\/p>\n<p>\u76f4\u63a5\u7528\u00a0<img decoding=\"async\" alt=\"1e9+7\" class=\"mathcode\" src=\"https:\/\/latex.csdn.net\/eq?1e9&amp;plus;7\" \/>\u00a0\u80af\u5b9a\u4e0d\u884c&#xff0c;\u90a3\u6211\u4eec\u80fd\u4e0d\u80fd\u7528\u5bf9 ntt \u53cb\u597d\u7684\u6a21\u6570\u7559\u4e0b\u7684\u4f59\u6570&#xff0c;\u6784\u6210\u8fd9\u9053\u9898\u7684\u7b54\u6848\u5462&#xff1f;<\/p>\n<\/p>\n<\/p>\n<h3>1.\u6784\u6210<\/h3>\n<p>\u5047\u8bbe\u6211\u4eec\u73b0\u5728\u6709\u5982\u4e0b&#xff0c;\u800c\u4e14\u6a21\u6570\u4e24\u4e24\u4e92\u8d28&#xff1a;<\/p>\n<p>x \u2261 r1 (mod P1)<br \/>\nx \u2261 r2 (mod P2)<br \/>\nx \u2261 r3 (mod P3)<br \/>\n&#8230;<br \/>\nx \u2261 rk (mod Pk) <\/p>\n<p>\u7528\u8fd9\u4e9b\u6761\u4ef6&#xff0c;\u6784\u9020\u6210\u00a0<img decoding=\"async\" alt=\"mod\\\\ 1e9+7\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144050-6a6f56f2195a2.png\" \/>\u00a0\u7684\u7b54\u6848\u3002<\/p>\n<p>\u4f17\u4eba\u9ad8\u558a&#xff1a;CRT&#xff01;\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406&#xff01;<\/p>\n<p>\u90a3\u4e48\u9009\u51e0\u4e2a\u6a21\u6570\u597d\u5462&#xff1f;<\/p>\n<p>\u4ee5\u4e0b\u662f\u00a0ntt \u53cb\u597d\u6a21\u6570&#xff1a;<\/p>\n<p>P1 &#061; 998244353<br \/>\nP2 &#061; 1004535809<br \/>\nP3 &#061; 469762049<br \/>\n\/\/ gcd(P1, P2) &#061; gcd(P1, P3) &#061; gcd(P2, P3) &#061; 1 \u2713 <\/p>\n<p>crt \u80fd\u6062\u590d\u7684\u552f\u4e00\u503c\u5728\u00a0[0, M)\u00a0\u8303\u56f4\u5185&#xff0c;\u5176\u4e2d\u00a0M &#061; m1\u00d7m2\u00d7&#8230;\u00d7mk\u3002<\/p>\n<p>\u8fd9\u9053\u9898\u8ba1\u7b97\u53ef\u80fd\u5f97\u5230\u7684\u6700\u5927\u503c\u4e3a\u00a0<img decoding=\"async\" alt=\"1000000007*1000000007=1.000000014*10^{18}\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144050-6a6f56f21dd3c.png\" \/><\/p>\n<p>\u628a\u4e0a\u9762\u54ea\u4ee8\u4e58\u8d77\u6765\u5c31\u5dee\u4e0d\u591a\u4e86\u3002<\/p>\n<\/p>\n<\/p>\n<h3>2.\u7ec6\u8282<\/h3>\n<p>\u5047\u8bbe\u6211\u4eec\u5df2\u7ecf\u5f97\u5230\u4f59\u6570 r1,r2&#xff0c;\u6a21\u6570\u4e3a P1,P2&#xff0c;\u6709\u00a0<img decoding=\"async\" alt=\"x = r1 +k1*P1\" class=\"mathcode\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144050-6a6f56f225d0a.png\" \/>\u3002<\/p>\n<p>x &#061; r1 &#043; P1 \u00d7 k1<br \/>\n\u4ee3\u5165\u7b2c\u4e8c\u4e2a&#xff1a;r1 &#043; P1 \u00d7 k1 \u2261 r2 (mod P2)<br \/>\nP1 \u00d7 k1 \u2261 r2 &#8211; r1 (mod P2)<br \/>\nk1 \u2261 (r2 &#8211; r1) \u00d7 P1^(-1) (mod P2) <\/p>\n<p>\u8fd9\u6837\u5c31\u80fd\u6c42\u51fa\u6ee1\u8db3\u7b2c\u4e00\u3001\u4e8c\u4e2a\u6a21\u6570\u7684 x\u3002<\/p>\n<p>\u4ee4 x12 &#061; r1 &#043; P1 \u00d7 k1  (\u8fd9\u662f\u6a21P1\u00d7P2\u4e0b\u7684\u89e3)<br \/>\nx12 \u2261 r3 (mod P3)<br \/>\n\u8bbe x12 &#043; P1\u00d7P2 \u00d7 k2 \u2261 r3 (mod P3)<br \/>\nP1\u00d7P2 \u00d7 k2 \u2261 r3 &#8211; x12 (mod P3)<br \/>\nk2 \u2261 (r3 &#8211; x12) \u00d7 (P1\u00d7P2)^(-1) (mod P3) <\/p>\n<p>\u8fd9\u6837\u5c31\u80fd\u6c42\u51fa\u6ee1\u8db3\u6240\u6709\u6a21\u6570\u7684 x\u3002<\/p>\n<\/p>\n<\/p>\n<h3>3.\u4ee3\u7801<\/h3>\n<p>#include&lt;bits\/stdc&#043;&#043;.h&gt;<br \/>\nusing namespace std;<\/p>\n<p>typedef long long LL;<br \/>\ntypedef __int128 i128;<br \/>\nconst int N &#061; 3e6 &#043; 10;<br \/>\nconst LL MOD &#061; 1000000007;<\/p>\n<p>const LL P1 &#061; 998244353;<br \/>\nconst LL P2 &#061; 1004535809;<br \/>\nconst LL P3 &#061; 469762049;<\/p>\n<p>LL a1[N], b1[N], a2[N], b2[N], a3[N], b3[N];<br \/>\nLL ans1[N], ans2[N], ans3[N];<br \/>\nLL temp_a[N], temp_b[N];<br \/>\nint limit, l, r[N];<br \/>\nint n, m;<\/p>\n<p>LL q_pow(LL a, LL b, LL P) {<br \/>\n    LL c &#061; 1;<br \/>\n    while (b) {<br \/>\n        if (b &amp; 1) c &#061; (i128)c * a % P;<br \/>\n        a &#061; (i128)a * a % P;<br \/>\n        b &gt;&gt;&#061; 1;<br \/>\n    }<br \/>\n    return c;<br \/>\n}<\/p>\n<p>\/\/ NTT \u5b9e\u73b0<br \/>\n\/\/ type &#061; 1: \u6b63\u53d8\u6362, type &#061; -1: \u9006\u53d8\u6362<br \/>\nvoid ntt(LL *a, int type, LL P) {<br \/>\n    for (int i &#061; 0; i &lt; limit; i&#043;&#043;) {<br \/>\n        if (i &lt; r[i]) swap(a[i], a[r[i]]);<br \/>\n    }<\/p>\n<p>    for (int mid &#061; 1; mid &lt; limit; mid &lt;&lt;&#061; 1) {<br \/>\n        \/\/ \u8ba1\u7b97\u539f\u6839 g \u7684 (P-1)\/(2*mid) \u6b21\u65b9<br \/>\n        LL Wn &#061; q_pow(3, (P &#8211; 1) \/ (mid &lt;&lt; 1), P);<br \/>\n        if (type &#061;&#061; -1) {<br \/>\n            Wn &#061; q_pow(Wn, P &#8211; 2, P);  \/\/ \u9006\u53d8\u6362\u53d6\u9006<br \/>\n        }<\/p>\n<p>        for (int R &#061; (mid &lt;&lt; 1), j &#061; 0; j &lt; limit; j &#043;&#061; R) {<br \/>\n            LL w &#061; 1;<br \/>\n            for (int k &#061; 0; k &lt; mid; k&#043;&#043;, w &#061; (i128)w * Wn % P) {<br \/>\n                LL x &#061; a[j &#043; k];<br \/>\n                LL y &#061; (i128)a[j &#043; mid &#043; k] * w % P;<br \/>\n                a[j &#043; k] &#061; (x &#043; y) % P;<br \/>\n                a[j &#043; mid &#043; k] &#061; (x &#8211; y &#043; P) % P;<br \/>\n            }<br \/>\n        }<br \/>\n    }<\/p>\n<p>    \/\/ \u5982\u679c\u662f\u9006\u53d8\u6362&#xff0c;\u4e58\u4ee5 inv_limit<br \/>\n    if (type &#061;&#061; -1) {<br \/>\n        LL inv_limit &#061; q_pow(limit, P &#8211; 2, P);<br \/>\n        for (int i &#061; 0; i &lt; limit; i&#043;&#043;) {<br \/>\n            a[i] &#061; (i128)a[i] * inv_limit % P;<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>void cvlt(LL *a, LL *b, LL *result, LL P) {<br \/>\n    \/\/ \u590d\u5236\u6570\u636e\u5e76\u6e05\u96f6\u5269\u4f59\u90e8\u5206<br \/>\n    for (int i &#061; 0; i &lt; limit; i&#043;&#043;) {<br \/>\n        temp_a[i] &#061; (i &lt; n) ? a[i] % P : 0;<br \/>\n        temp_b[i] &#061; (i &lt; m) ? b[i] % P : 0;<br \/>\n    }<\/p>\n<p>    \/\/ \u6b63\u53d8\u6362<br \/>\n    ntt(temp_a, 1, P);<br \/>\n    ntt(temp_b, 1, P);<\/p>\n<p>    \/\/ \u70b9\u4e58<br \/>\n    for (int i &#061; 0; i &lt; limit; i&#043;&#043;) {<br \/>\n        temp_a[i] &#061; (i128)temp_a[i] * temp_b[i] % P;<br \/>\n    }<\/p>\n<p>    \/\/ \u9006\u53d8\u6362<br \/>\n    ntt(temp_a, -1, P);<\/p>\n<p>    \/\/ \u590d\u5236\u7ed3\u679c<br \/>\n    for (int i &#061; 0; i &lt; limit; i&#043;&#043;) {<br \/>\n        result[i] &#061; temp_a[i];<br \/>\n    }<br \/>\n}<\/p>\n<p>LL inv(LL a, LL mod) {<br \/>\n    return q_pow(a, mod &#8211; 2, mod);<br \/>\n}<\/p>\n<p>LL crt(LL r1, LL r2, LL r3) {<br \/>\n    LL k1 &#061; (r2 &#8211; r1) % P2;<br \/>\n    if (k1 &lt; 0) k1 &#043;&#061; P2;<br \/>\n    k1 &#061; (i128)k1 * inv(P1 % P2, P2) % P2;<\/p>\n<p>    i128 x12 &#061; (i128)r1 &#043; (i128)P1 * k1;<br \/>\n    i128 P12 &#061; (i128)P1 * P2;<\/p>\n<p>    LL r3_mod &#061; (LL)(x12 % P3);<br \/>\n    LL k2 &#061; (r3 &#8211; r3_mod) % P3;<br \/>\n    if (k2 &lt; 0) k2 &#043;&#061; P3;<br \/>\n    k2 &#061; (i128)k2 * inv((LL)(P12 % P3), P3) % P3;<\/p>\n<p>    i128 x &#061; x12 &#043; P12 * k2;<br \/>\n    x %&#061; MOD;<\/p>\n<p>    return (LL)x;<br \/>\n}<\/p>\n<p>int main() {<br \/>\n    ios::sync_with_stdio(false);<br \/>\n    cin.tie(0);<\/p>\n<p>    cin &gt;&gt; n &gt;&gt; m;<\/p>\n<p>    for (int i &#061; 0; i &lt; n; i&#043;&#043;) {<br \/>\n        cin &gt;&gt; a1[i];<br \/>\n        a2[i] &#061; a3[i] &#061; a1[i];<br \/>\n    }<br \/>\n    for (int i &#061; 0; i &lt; m; i&#043;&#043;) {<br \/>\n        cin &gt;&gt; b1[i];<br \/>\n        b2[i] &#061; b3[i] &#061; b1[i];<br \/>\n    }<\/p>\n<p>    limit &#061; 1;<br \/>\n    l &#061; 0;<br \/>\n    while (limit &lt; n &#043; m &#8211; 1) {<br \/>\n        limit &lt;&lt;&#061; 1;<br \/>\n        l &#043;&#043;;<br \/>\n    }<\/p>\n<p>    \/\/ \u8ba1\u7b97\u4f4d\u9006\u5e8f<br \/>\n    for (int i &#061; 0; i &lt; limit; i&#043;&#043;) {<br \/>\n        r[i] &#061; (r[i &gt;&gt; 1] &gt;&gt; 1) | ((i &amp; 1) &lt;&lt; (l &#8211; 1));<br \/>\n    }<\/p>\n<p>    \/\/ \u5206\u522b\u5728\u4e09\u4e2a\u6a21\u6570\u4e0b\u8ba1\u7b97\u5377\u79ef<br \/>\n    cvlt(a1, b1, ans1, P1);<br \/>\n    cvlt(a2, b2, ans2, P2);<br \/>\n    cvlt(a3, b3, ans3, P3);<\/p>\n<p>    \/\/ \u8f93\u51fa\u7ed3\u679c<br \/>\n    for (int i &#061; 0; i &lt; n &#043; m &#8211; 1; i&#043;&#043;) {<br \/>\n        LL res &#061; crt(ans1[i], ans2[i], ans3[i]);<br \/>\n        cout &lt;&lt; res &lt;&lt; &#034; &#034;;<br \/>\n    }<br \/>\n    cout &lt;&lt; &#034;\\\\n&#034;;<\/p>\n<p>    return 0;<br \/>\n} <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6311\u4e86\u4e2a\u6700\u96be\u5b66\u7684\u4e1c\u897f\u505a\u5417\u3002\u5f88\u6709\u8010\u529b\u4e86\u3002<br \/>\n\u4e0b\u6b21\u505a\u70b9 noip \u8003\u7eb2\u5185\u7684\u3002 \u6ca1\u5b66\u8fc7 ntt \u6307\u8def&#xff1a;\u3010FFT &amp; NTT | \u90a3\u5fd8\u7b97 7\u3011\u5feb\u901f\u5085\u91cc\u53f6\u53d8\u6362 &amp; \u5feb\u901f\u6570\u8bba\u53d8\u6362 (\u6d1b\u8c37 P3803 \u9898\u89e3)_\u5085\u91cc\u53f6 \u6d1b\u8c37-CSDN\u535a\u5ba2 0.\u5bfc\u5165<br \/>\nntt \u7684\u5e95\u5c42\u903b\u8f91\u662f\u539f\u6839&#xff0c;\u5373\u00a0&#xff0c;\u539f\u6839\u4e3a\u00a0\u3002<br \/>\n\u8981\u6c42\u662f\u4e00\u5b9a\u6574\u9664&#xff0c;\u6240\u4ee5\u6a21\u6570\u90fd\u662f\u9009\u00a0\u00a0\u7684\u5f62\u5f0f&#xff0c;\u8fd9\u6837\u00a0\u00a0 \u624d\u597d\u9009\u6210 2 \u7684\u5e42\u6b21\u65b9\u4fbf\u5206\u6cbb\u3002<br \/>\n\u90a3\u4e48\u6b63\u5e38\u4eba\u90fd\u77e5\u9053&#xff0c;\u6a21\u6570\u00a0\u00a0\u7684\u00a0<\/p>\n","protected":false},"author":2,"featured_media":89373,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10139,10138,55,427],"topic":[],"class_list":["post-89385","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-crt","tag-ntt","tag-c","tag-427"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/89385.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6311\u4e86\u4e2a\u6700\u96be\u5b66\u7684\u4e1c\u897f\u505a\u5417\u3002\u5f88\u6709\u8010\u529b\u4e86\u3002 \u4e0b\u6b21\u505a\u70b9 noip \u8003\u7eb2\u5185\u7684\u3002 \u6ca1\u5b66\u8fc7 ntt \u6307\u8def&#xff1a;\u3010FFT &amp; NTT | \u90a3\u5fd8\u7b97 7\u3011\u5feb\u901f\u5085\u91cc\u53f6\u53d8\u6362 &amp; \u5feb\u901f\u6570\u8bba\u53d8\u6362 (\u6d1b\u8c37 P3803 \u9898\u89e3)_\u5085\u91cc\u53f6 \u6d1b\u8c37-CSDN\u535a\u5ba2 0.\u5bfc\u5165 ntt \u7684\u5e95\u5c42\u903b\u8f91\u662f\u539f\u6839&#xff0c;\u5373\u00a0&#xff0c;\u539f\u6839\u4e3a\u00a0\u3002 \u8981\u6c42\u662f\u4e00\u5b9a\u6574\u9664&#xff0c;\u6240\u4ee5\u6a21\u6570\u90fd\u662f\u9009\u00a0\u00a0\u7684\u5f62\u5f0f&#xff0c;\u8fd9\u6837\u00a0\u00a0 \u624d\u597d\u9009\u6210 2 \u7684\u5e42\u6b21\u65b9\u4fbf\u5206\u6cbb\u3002 \u90a3\u4e48\u6b63\u5e38\u4eba\u90fd\u77e5\u9053&#xff0c;\u6a21\u6570\u00a0\u00a0\u7684\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89385.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-02T14:40:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144049-6a6f56f1d8cad.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89385.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89385.html\",\"name\":\"\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-02T14:40:51+00:00\",\"dateModified\":\"2026-08-02T14:40:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89385.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89385.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89385.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/89385.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6311\u4e86\u4e2a\u6700\u96be\u5b66\u7684\u4e1c\u897f\u505a\u5417\u3002\u5f88\u6709\u8010\u529b\u4e86\u3002 \u4e0b\u6b21\u505a\u70b9 noip \u8003\u7eb2\u5185\u7684\u3002 \u6ca1\u5b66\u8fc7 ntt \u6307\u8def&#xff1a;\u3010FFT &amp; NTT | \u90a3\u5fd8\u7b97 7\u3011\u5feb\u901f\u5085\u91cc\u53f6\u53d8\u6362 &amp; \u5feb\u901f\u6570\u8bba\u53d8\u6362 (\u6d1b\u8c37 P3803 \u9898\u89e3)_\u5085\u91cc\u53f6 \u6d1b\u8c37-CSDN\u535a\u5ba2 0.\u5bfc\u5165 ntt \u7684\u5e95\u5c42\u903b\u8f91\u662f\u539f\u6839&#xff0c;\u5373\u00a0&#xff0c;\u539f\u6839\u4e3a\u00a0\u3002 \u8981\u6c42\u662f\u4e00\u5b9a\u6574\u9664&#xff0c;\u6240\u4ee5\u6a21\u6570\u90fd\u662f\u9009\u00a0\u00a0\u7684\u5f62\u5f0f&#xff0c;\u8fd9\u6837\u00a0\u00a0 \u624d\u597d\u9009\u6210 2 \u7684\u5e42\u6b21\u65b9\u4fbf\u5206\u6cbb\u3002 \u90a3\u4e48\u6b63\u5e38\u4eba\u90fd\u77e5\u9053&#xff0c;\u6a21\u6570\u00a0\u00a0\u7684\u00a0","og_url":"https:\/\/www.wsisp.com\/helps\/89385.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-02T14:40:51+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260802144049-6a6f56f1d8cad.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/89385.html","url":"https:\/\/www.wsisp.com\/helps\/89385.html","name":"\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-02T14:40:51+00:00","dateModified":"2026-08-02T14:40:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89385.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89385.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89385.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010\u9898\u89e3\u3011LC\uff1a\u5377\u79ef\uff08Convolution (Mod 1,000,000,007)\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=89385"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89385\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/89373"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89385"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}