{"id":1109,"date":"2019-05-11T17:01:54","date_gmt":"2019-05-11T09:01:54","guid":{"rendered":"https:\/\/mnihyc.com\/blog\/?p=1109"},"modified":"2020-02-09T02:52:55","modified_gmt":"2020-02-08T18:52:55","slug":"yzoj-p3752-%e5%ba%8f%e5%88%97%e6%b1%82%e5%b7%ae%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/mnihyc.com\/blog\/archives\/1109","title":{"rendered":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898"},"content":{"rendered":"<h1 style=\"text-align: center;\">YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898<\/h1>\n<p style=\"text-align: center;\">\u65f6\u95f4\u9650\u5236\uff1a2000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a131072KB<\/p>\n<p style=\"text-align: center;\">\u51fa\u9898\u4eba\uff1a<code>Night<\/code>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a<span style=\"color: #ff9900;\">\\(6.0\\)<\/span><\/p>\n<ul>\n<li>\n<h3><strong>\u9898\u76ee\u63cf\u8ff0<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u6709\u4e00\u4e2a\u5e8f\u5217 \\(x_1,x_2,\\cdots,x_n\\) \u3002<\/p>\n<p>\u6c42\u6709\u591a\u5c11\u4e2a\u4ece \\(1,2,\\cdots,n\\) \u4e2d\u53d6\u4e09\u4e2a\u5143\u7d20\u7684\u6392\u5217 \\((a,b,c)\\) \u6ee1\u8db3 \\(x_a=x_b-x_c\\) \u3002<\/p>\n<p>\u7531\u4e8e\u662f\u6392\u5217\uff0c\u6240\u4ee5 \\((a,b,c)\\) \u4e0e \\((c,b,a)\\) \u89c6\u4e3a\u4e24\u7ec4\u89e3\u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u8f93\u5165\u683c\u5f0f<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u7b2c\u4e00\u884c\u4e00\u4e2a\u6574\u6570 \\(n\\) \u8868\u793a\u5e8f\u5217\u957f\u5ea6\u3002<\/p>\n<p>\u7b2c\u4e8c\u884c\u4e3a \\(n\\) \u4e2a\u6574\u6570\u8868\u793a\u5e8f\u5217\u91cc\u7684 \\(n\\) \u4e2a\u6570\u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u8f93\u51fa\u683c\u5f0f<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u4e00\u884c\u4e00\u4e2a\u6b63\u6574\u6570\uff0c\u8868\u793a\u7b54\u6848\u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u6837\u4f8b\u8f93\u5165<\/strong><\/h3>\n<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">10\r\n1 6 2 9 5 9 2 5 0 5<\/pre>\n<ul>\n<li>\n<h3><strong>\u6837\u4f8b\u8f93\u51fa<\/strong><\/h3>\n<\/li>\n<\/ul>\n<pre class=\"\">26<\/pre>\n<ul>\n<li>\n<h3><strong>\u6570\u636e\u89c4\u6a21\u4e0e\u7ea6\u5b9a<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e \\(20\\%\\) \u7684\u6570\u636e\uff0c\\(1 \\leq n \\leq 500\\)\uff1b<\/p>\n<p>\u5bf9\u4e8e \\(45\\%\\) \u7684\u6570\u636e\uff0c\\(1 \\leq n \\leq 5000\\)\uff1b<\/p>\n<p>\u5bf9\u4e8e \\(100\\%\\) \u7684\u6570\u636e\uff0c\\(1 \\leq n \\leq 1000000\\)\uff0c\\(0 \\leq \\left|x_i\\right| \\leq 100000\\) \u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><!--more--><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u9996\u5148\u8fd9\u4e2a\u4e1c\u897f\u548c \\(x_a+x_b=x_c\\) \u662f\u7b49\u4ef7\u7684\u3002<\/p>\n<p>\u5bf9\u4e8e \\(n \\leq 500\\) \u7684\u6570\u636e\uff0c\u663e\u7136\u53ef\u4ee5 \\(O(n^3)\\) \u679a\u4e3e \\((a,b,c)\\) \u66b4\u529b\u5224\u65ad\u3002<\/p>\n<p>\u5bf9\u4e8e \\(n \\leq 5000\\) \u7684\u6570\u636e\uff0c\u53ef\u4ee5\u8bb0\u6876 \\(cnt_i\\) \u8868\u793a \\(i=x_j\\) \u7684\u4e0d\u540c \\(j\\) \u7684\u4e2a\u6570\uff0c\u53ea\u8981\u679a\u4e3e \\((a,b)\\) \uff0c\u7b54\u6848\u52a0\u4e0a \\(cnt_{x_a+x_b}\\) \u5373\u53ef\uff0c\\(O(n^2)\\)\u3002<\/p>\n<p>\u7136\u540e\u5bf9\u4e8e \\(100\\%\\) \u7684\u6570\u636e\uff0c\u51fa\u9898\u4eba\u5c31\u53d1\u73b0 \\(x_a+x_b=x_c\\) \u8fd9\u4e2a\u4e1c\u897f\u5f88\u50cf\u591a\u9879\u5f0f\u4e58\u6cd5\uff0c\u56e0\u4e3a\u53ef\u4ee5\u628a \\(cnt_{x_a}\\) \u548c \\(cnt_{x_b}\\) \u8d21\u732e\u5230 \\(cnt_{x_c}\\) \u4e0a\u3002<\/p>\n<p>\u6240\u4ee5\u5c31\u628a \\(cnt\\) \u4f5c\u4e3a\u4e00\u4e2a\u591a\u9879\u5f0f\uff0c\u4e0e\u5b83\u81ea\u5df1\u76f8\u4e58\uff0c\u5f97\u5230\u7684\u5c31\u662f\u7b54\u6848\u4e86\u3002<\/p>\n<p>\u591a\u9879\u5f0f\u4e58\u6cd5\u7528 FFT \u4f18\u5316\u81f3 \\(O(nlogn)\\) \u3002<\/p>\n<p>\u7ec6\u8282\uff1a<\/p>\n<p>1\uff0c\u56e0\u4e3a\u4e0d\u80fd\u53d6\u4e24\u4e2a\u76f8\u540c\u7684\uff0c\u6240\u4ee5 \\(ans_{x_i+x_i}\\) \u8981\u51cf\u4e00\u3002<\/p>\n<p>2\uff0c\u8fd8\u6709\u8981\u7279\u5224\u4e00\u4e0b \\(0\\) \u7684\u60c5\u51b5\uff0c\u6240\u4ee5\u7b54\u6848\u8981\u51cf\u53bb \\(2 \\times m \\times (n-1)\\) \uff08\u5176\u4e2d \\(m\\) \u4e3a \\(x\\) \u4e2d \\(0\\) \u7684\u4e2a\u6570\uff09\u3002<\/p>\n<p>3\uff0c\u6709\u8d1f\u6570\uff0c\u6240\u4ee5\u8981\u6574\u4f53\u504f\u79fb\uff0c\\(x_a+diff+x_b+diff=x_c+2 \\times diff\\) \uff0c\u6ce8\u610f\u591a\u9879\u5f0f\u4e58\u6cd5\u7684\u7b54\u6848\u610f\u4e49\u4e5f\u6709\u6240\u53d8\u5316\u3002<\/p>\n<p>4\uff0c\u56e0\u4e3a\u7b54\u6848\u53ef\u80fd\u8d85\u51fa \\(int\\) \uff0c\u6240\u4ee5\u4e0d\u80fd\u4f7f\u7528 FWT\/NTT \u6c42\u89e3\uff0c\u800c\u4e14 <span class=\"lang:default decode:true  crayon-inline \">double<\/span> \u4f1a\u88ab\u5361\u7cbe\u5ea6<del>\uff0c\u6240\u4ee5\u8981\u6362\u6210<span class=\"lang:default decode:true  crayon-inline\">long double<\/span>\u00a0\u7ee7\u7eed<\/del>\uff0c\u6b63\u786e\u7684\u505a\u6cd5\u662f\u8003\u8651\u5230\u7b54\u6848\u80af\u5b9a\u4e0d\u8d85\u8fc7 \\(A^3_{1000000}=999997000002000000\\)\uff0c\u53ef\u4ee5\u4f7f\u7528 \\(998244353\\) \u548c \\(1004535809\\) \u4e24\u4e2a\u6a21\u6570\u5206\u522b FNT \u6c42\u4e00\u904d\uff0c\u7136\u540e\u518d CRT\uff08\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\uff09 \u5408\u5e76\u8ba1\u7b97\u7ed3\u679c\u3002<\/p>\n<p>\u7b54\u6848\u4e3a \\(\\sum ans_{x_i+2 \\times diff}-2 \\times m \\times (n-1)\\) \u3002<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">#include &lt;cstdio&gt;\r\n#include &lt;cstdlib&gt;\r\n#include &lt;cstring&gt;\r\n#include &lt;climits&gt;\r\n#include &lt;cmath&gt;\r\n\r\n#define DIFF 100001\r\n#define _max(_a_,_b_) ((_a_)&gt;(_b_)?(_a_):(_b_))\r\n\r\ninline int getnum()\r\n{\r\n\tregister char c=0;\r\n\tregister bool neg=false;\r\n\twhile(!(c&gt;='0' &amp;&amp; c&lt;='9'))\r\n\t\tc=getchar(),neg|=(c=='-');\r\n\tregister int a=0;\r\n\twhile(c&gt;='0' &amp;&amp; c&lt;='9')\r\n\t\ta=a*10+c-'0',c=getchar();\r\n\treturn (neg?-1:1)*a;\r\n}\r\n\r\n\r\nstruct _cm\r\n{\r\n\t\/\/ a+bi\r\n\tlong double a,b;\r\n\t_cm(long double na=0,long double nb=0){a=na,b=nb;}\r\n\t_cm operator + (const _cm&amp;o)const\r\n\t{\r\n\t\treturn (_cm){a+o.a,b+o.b};\r\n\t}\r\n\t_cm operator - (const _cm&amp;o)const\r\n\t{\r\n\t\treturn (_cm){a-o.a,b-o.b};\r\n\t}\r\n\t_cm operator * (const _cm&amp;o)const\r\n\t{\r\n\t\treturn (_cm){a*o.a-b*o.b,a*o.b+b*o.a};\r\n\t}\r\n}c[805050];\r\n\r\nint flip[805050];\r\ninline void FFT(register int len,_cm c[],bool inverse=false)\r\n{\r\n\t_cm t;\r\n\tfor(register int i=0;i&lt;len;i++)\r\n\t\tif(i&lt;flip[i])\r\n\t\t\tt=c[flip[i]],c[flip[i]]=c[i],c[i]=t;\r\n\tfor(register int step=2;step&lt;=len;step&lt;&lt;=1)\r\n\t{\r\n\t\t_cm wn=(_cm){std::cos((long double)2*M_PI\/step*(inverse ? -1 : 1)), \\\r\n\t\tstd::sin((long double)2*M_PI\/step*(inverse ? -1 : 1))};\r\n\t\tfor(register int k=0;k&lt;len;k+=step)\r\n\t\t{\r\n\t\t\t_cm w=(_cm){1};\r\n\t\t\tfor(register int i=k;i &lt; k+(step&gt;&gt;1);i++)\r\n\t\t\t{\r\n\t\t\t\tregister int j=i+(step&gt;&gt;1);\r\n\t\t\t\tt=c[j]*w;\r\n\t\t\t\tc[j]=c[i]-t;\r\n\t\t\t\tc[i]=c[i]+t;\r\n\t\t\t\tw=w*wn;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\tif(inverse)\r\n\t\tfor(register int i=0;i&lt;len;i++)\r\n\t\t\tc[i].a\/=len;\r\n}\r\n\r\nint a[1050505];\r\nlong long cnt[805050];\r\n\r\nint main()\r\n{\r\n\tregister int N=getnum(),mxa=0,cnt0=0;\r\n\tfor(register int i=1;i&lt;=N;i++)\r\n\t{\r\n\t\ta[i]=getnum()+DIFF;\r\n\t\tmxa=_max(a[i],mxa),cnt0+=(a[i]==DIFF);\r\n\t\tcnt[a[i]]++;\r\n\t}\r\n\tmxa&lt;&lt;=1;\r\n\t\r\n\tregister int len=1,dig=0;\r\n\twhile(len&lt;mxa)\r\n\t\tlen&lt;&lt;=1,dig++;\r\n\tfor(register int i=0;i&lt;len;i++)\r\n\t{\r\n\t\tc[i]=(_cm){(long double)((i&lt;&lt;1)&lt;=mxa ? cnt[i] : 0)};\r\n\t\tflip[i]=(flip[i&gt;&gt;1]&gt;&gt;1)|((i&amp;1)&lt;&lt;(dig-1));\r\n\t}\r\n\t\r\n\t\/\/printf(\"--------------- A\\n\");\r\n\t\/\/for(register int i=0;i&lt;len;i++)\r\n\t\/\/\tprintf(\"%d: %.2Lf+%.2Lfi\\n\",i,c[i].a,c[i].b);\r\n\tFFT(len,c);\r\n\t\/\/printf(\"--------------- B\\n\");\r\n\t\/\/for(register int i=0;i&lt;len;i++)\r\n\t\/\/\tprintf(\"%d: %.2Lf+%.2Lfi\\n\",i,c[i].a,c[i].b);\r\n\tfor(register int i=0;i&lt;len;i++)\r\n\t\tc[i]=c[i]*c[i];\r\n\tFFT(len,c,true);\r\n\t\/\/printf(\"--------------- C\\n\");\r\n\t\/\/for(register int i=0;i&lt;len;i++)\r\n\t\/\/\tprintf(\"%d: %.2Lf+%.2Lfi\\n\",i,c[i].a,c[i].b);\r\n\tfor(register int i=1;i&lt;=mxa;i++)\r\n\t\tcnt[i]=(long long)(c[i].a+0.49999);\r\n\t\r\n\tlong long ans=-(long long)cnt0*(N-1)&lt;&lt;1;\r\n\tfor(register int i=1;i&lt;=N;i++)\r\n\t\tcnt[a[i]&lt;&lt;1]--;\r\n\tfor(register int i=1;i&lt;=N;i++)\r\n\t\tans+=cnt[a[i]+DIFF];\r\n\tprintf(\"%lld\\n\",ans);\r\n\t\r\n\treturn 0;\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 \u65f6\u95f4\u9650\u5236\uff1a2000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a131072KB \u51fa\u9898\u4eba\uff1aNi &hellip; <a href=\"https:\/\/mnihyc.com\/blog\/archives\/1109\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,82,83],"tags":[],"class_list":["post-1109","post","type-post","status-publish","format-standard","hentry","category-proa","category-fftnttfwt","category-crt"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 - mnihyc&#039;s Blog<\/title>\n<meta name=\"description\" content=\"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 \u65f6\u95f4\u9650\u5236\uff1a2000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a131072KB \u51fa\u9898\u4eba\uff1aNight\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u6709\u4e00\u4e2a\u5e8f\u5217 (x_1,x_2,cdots,x_n) \u3002 \u6c42\u6709\u591a\u5c11\u4e2a\u4ece (1,2,cdots,n) \u4e2d\u53d6\u4e09\u4e2a\u5143\u7d20\u7684\u6392\u5217 ((a,b,c)) \u6ee1\u8db3\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mnihyc.com\/blog\/archives\/1109\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 - mnihyc&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 \u65f6\u95f4\u9650\u5236\uff1a2000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a131072KB \u51fa\u9898\u4eba\uff1aNight\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u6709\u4e00\u4e2a\u5e8f\u5217 (x_1,x_2,cdots,x_n) \u3002 \u6c42\u6709\u591a\u5c11\u4e2a\u4ece (1,2,cdots,n) \u4e2d\u53d6\u4e09\u4e2a\u5143\u7d20\u7684\u6392\u5217 ((a,b,c)) \u6ee1\u8db3\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mnihyc.com\/blog\/archives\/1109\" \/>\n<meta property=\"og:site_name\" content=\"mnihyc&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-11T09:01:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-08T18:52:55+00:00\" \/>\n<meta name=\"author\" content=\"mnihyc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mnihyc\" \/>\n<meta name=\"twitter:site\" content=\"@mnihyc\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"mnihyc\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1109#article\",\"isPartOf\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1109\"},\"author\":{\"name\":\"mnihyc\",\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"headline\":\"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898\",\"datePublished\":\"2019-05-11T09:01:54+00:00\",\"dateModified\":\"2020-02-08T18:52:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1109\"},\"wordCount\":147,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"articleSection\":[\"6.0 ~ 7.0\",\"FFT\/NTT\/FWT\",\"\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\uff08CRT\uff09\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mnihyc.com\/blog\/archives\/1109#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1109\",\"url\":\"https:\/\/mnihyc.com\/blog\/archives\/1109\",\"name\":\"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 - mnihyc&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/#website\"},\"datePublished\":\"2019-05-11T09:01:54+00:00\",\"dateModified\":\"2020-02-08T18:52:55+00:00\",\"description\":\"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 \u65f6\u95f4\u9650\u5236\uff1a2000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a131072KB \u51fa\u9898\u4eba\uff1aNight\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u6709\u4e00\u4e2a\u5e8f\u5217 \\\\(x_1,x_2,\\\\cdots,x_n\\\\) \u3002 \u6c42\u6709\u591a\u5c11\u4e2a\u4ece \\\\(1,2,\\\\cdots,n\\\\) \u4e2d\u53d6\u4e09\u4e2a\u5143\u7d20\u7684\u6392\u5217 \\\\((a,b,c)\\\\) \u6ee1\u8db3\",\"breadcrumb\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1109#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mnihyc.com\/blog\/archives\/1109\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1109#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/mnihyc.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mnihyc.com\/blog\/#website\",\"url\":\"https:\/\/mnihyc.com\/blog\/\",\"name\":\"mnihyc&#039;s Blog\",\"description\":\"Welcome!\",\"publisher\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mnihyc.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\",\"name\":\"mnihyc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8d111f863afc3f98816bc96220f97077d470a96f41088de9f19530fc480f8e72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8d111f863afc3f98816bc96220f97077d470a96f41088de9f19530fc480f8e72?s=96&d=mm&r=g\",\"caption\":\"mnihyc\"},\"logo\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 - mnihyc&#039;s Blog","description":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 \u65f6\u95f4\u9650\u5236\uff1a2000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a131072KB \u51fa\u9898\u4eba\uff1aNight\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u6709\u4e00\u4e2a\u5e8f\u5217 (x_1,x_2,cdots,x_n) \u3002 \u6c42\u6709\u591a\u5c11\u4e2a\u4ece (1,2,cdots,n) \u4e2d\u53d6\u4e09\u4e2a\u5143\u7d20\u7684\u6392\u5217 ((a,b,c)) \u6ee1\u8db3","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:\/\/mnihyc.com\/blog\/archives\/1109","og_locale":"zh_CN","og_type":"article","og_title":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 - mnihyc&#039;s Blog","og_description":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 \u65f6\u95f4\u9650\u5236\uff1a2000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a131072KB \u51fa\u9898\u4eba\uff1aNight\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u6709\u4e00\u4e2a\u5e8f\u5217 (x_1,x_2,cdots,x_n) \u3002 \u6c42\u6709\u591a\u5c11\u4e2a\u4ece (1,2,cdots,n) \u4e2d\u53d6\u4e09\u4e2a\u5143\u7d20\u7684\u6392\u5217 ((a,b,c)) \u6ee1\u8db3","og_url":"https:\/\/mnihyc.com\/blog\/archives\/1109","og_site_name":"mnihyc&#039;s Blog","article_published_time":"2019-05-11T09:01:54+00:00","article_modified_time":"2020-02-08T18:52:55+00:00","author":"mnihyc","twitter_card":"summary_large_image","twitter_creator":"@mnihyc","twitter_site":"@mnihyc","twitter_misc":{"\u4f5c\u8005":"mnihyc","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mnihyc.com\/blog\/archives\/1109#article","isPartOf":{"@id":"https:\/\/mnihyc.com\/blog\/archives\/1109"},"author":{"name":"mnihyc","@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"headline":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898","datePublished":"2019-05-11T09:01:54+00:00","dateModified":"2020-02-08T18:52:55+00:00","mainEntityOfPage":{"@id":"https:\/\/mnihyc.com\/blog\/archives\/1109"},"wordCount":147,"commentCount":0,"publisher":{"@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"articleSection":["6.0 ~ 7.0","FFT\/NTT\/FWT","\u4e2d\u56fd\u5269\u4f59\u5b9a\u7406\uff08CRT\uff09"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mnihyc.com\/blog\/archives\/1109#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mnihyc.com\/blog\/archives\/1109","url":"https:\/\/mnihyc.com\/blog\/archives\/1109","name":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 - mnihyc&#039;s Blog","isPartOf":{"@id":"https:\/\/mnihyc.com\/blog\/#website"},"datePublished":"2019-05-11T09:01:54+00:00","dateModified":"2020-02-08T18:52:55+00:00","description":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898 \u65f6\u95f4\u9650\u5236\uff1a2000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a131072KB \u51fa\u9898\u4eba\uff1aNight\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u6709\u4e00\u4e2a\u5e8f\u5217 \\(x_1,x_2,\\cdots,x_n\\) \u3002 \u6c42\u6709\u591a\u5c11\u4e2a\u4ece \\(1,2,\\cdots,n\\) \u4e2d\u53d6\u4e09\u4e2a\u5143\u7d20\u7684\u6392\u5217 \\((a,b,c)\\) \u6ee1\u8db3","breadcrumb":{"@id":"https:\/\/mnihyc.com\/blog\/archives\/1109#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mnihyc.com\/blog\/archives\/1109"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mnihyc.com\/blog\/archives\/1109#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/mnihyc.com\/blog"},{"@type":"ListItem","position":2,"name":"YZOJ P3752 \u5e8f\u5217\u6c42\u5dee\u95ee\u9898"}]},{"@type":"WebSite","@id":"https:\/\/mnihyc.com\/blog\/#website","url":"https:\/\/mnihyc.com\/blog\/","name":"mnihyc&#039;s Blog","description":"Welcome!","publisher":{"@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mnihyc.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751","name":"mnihyc","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8d111f863afc3f98816bc96220f97077d470a96f41088de9f19530fc480f8e72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8d111f863afc3f98816bc96220f97077d470a96f41088de9f19530fc480f8e72?s=96&d=mm&r=g","caption":"mnihyc"},"logo":{"@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/1109","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/comments?post=1109"}],"version-history":[{"count":0,"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/1109\/revisions"}],"wp:attachment":[{"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/media?parent=1109"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/categories?post=1109"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mnihyc.com\/blog\/wp-json\/wp\/v2\/tags?post=1109"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}