{"id":1123,"date":"2019-05-11T17:55:55","date_gmt":"2019-05-11T09:55:55","guid":{"rendered":"https:\/\/cf.mnihyc.com\/blog\/?p=1123"},"modified":"2020-04-22T11:40:45","modified_gmt":"2020-04-22T03:40:45","slug":"yzoj-p3750-%e6%a0%a1%e5%86%85%e8%ae%ad%e7%bb%8320180529%e5%ad%97%e7%ac%a6%e4%b8%b2%e7%9a%84%e9%a2%91%e5%ba%a6","status":"publish","type":"post","link":"https:\/\/cf.mnihyc.com\/blog\/archives\/1123","title":{"rendered":"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6"},"content":{"rendered":"<h1 style=\"text-align: center;\">YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6<\/h1>\n<p style=\"text-align: center;\">\u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB<\/p>\n<p style=\"text-align: center;\">\u51fa\u9898\u4eba\uff1a<code>zzx<\/code> \u00a0\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>\u7ed9\u5b9a\u5b57\u7b26\u4e32 \\(s\\) \u3002\u4f60\u9700\u8981\u56de\u7b54 \\(n\\) \u4e2a\u8be2\u95ee\uff0c\u7b2c \\(i\\) \u4e2a\u8be2\u95ee\u7ed9\u51fa\u4e00\u4e2a\u6b63\u6574\u6570 \\(k_i\\) \u548c\u4e00\u4e2a\u5b57\u7b26\u4e32 \\(m_i\\)\uff0c\u8bf7\u6c42\u51fa \\(s\\) \u7684\u6240\u6709\u5b50\u4e32 \\(t\\) \u4e2d\uff0c\u6ee1\u8db3 \\(m_i\\) \u5728 \\(t\\) \u4e2d\u51fa\u73b0\u81f3\u5c11 \\(k_i\\) \u6b21\u7684\u5b57\u7b26\u4e32 \\(t\\) \u7684\u957f\u5ea6\u7684\u6700\u5c0f\u503c\u3002<\/p>\n<p>\u4e00\u4e2a\u5b57\u7b26\u4e32\u7684\u5b50\u4e32\u662f\u8be5\u5b57\u7b26\u4e32\u4e2d\u7684\u8fde\u7eed\u4e00\u6bb5\u5b57\u7b26\u3002<\/p>\n<p>\u4fdd\u8bc1\u4efb\u610f\u4e24\u4e2a\u8be2\u95ee\u7684 \\(m_i\\) \u4e0d\u76f8\u540c\u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u8f93\u5165\u683c\u5f0f<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u7b2c\u4e00\u884c\u5305\u542b\u4e00\u4e2a\u5b57\u7b26\u4e32 \\(s\\)\uff08\\(1 \\leq \\left|s\\right| \\leq 10^5\\)\uff09\u3002<\/p>\n<p>\u7b2c\u4e8c\u884c\u5305\u542b\u4e00\u4e2a\u6b63\u6574\u6570 \\(n\\)\uff08\\(1 \\leq n \\leq 10^5\\)\uff09\u3002<\/p>\n<p>\u63a5\u4e0b\u6765 \\(n\\) \u884c\uff0c\u6bcf\u884c\u4e00\u4e2a\u6b63\u6574\u6570 \\(k_i\\)\uff08\\(1 \\leq k_i \\leq \\left|s\\right|\\)\uff09\u548c\u4e00\u4e2a\u975e\u7a7a\u5b57\u7b26\u4e32 \\(m_i\\)\uff0c\u8868\u793a\u7b2c \\(i\\) \u4e2a\u8be2\u95ee\u3002<\/p>\n<p>\u6240\u6709\u5b57\u7b26\u4e32\u4ec5\u5305\u542b\u5c0f\u5199\u82f1\u6587\u5b57\u6bcd\uff0c\u4e14\u6240\u6709\u8be2\u95ee\u5b57\u7b26\u4e32\u7684\u603b\u957f\u5ea6\u4e0d\u8d85\u8fc7 \\(10^5\\) \u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u8f93\u51fa\u683c\u5f0f<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u6bcf\u4e2a\u5b57\u7b26\u4e32\u8f93\u51fa\u4e00\u884c\u8868\u793a\u7b54\u6848\u3002<\/p>\n<p>\u5982\u679c \\(m_i\\) \u5728 \\(s\\) \u4e2d\u51fa\u73b0\u6b21\u6570\u5c0f\u4e8e \\(k_i\\)\uff0c\u8f93\u51fa \\(-1\\) \u3002<\/p>\n<p><!--more--><\/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 \">abbb\r\n7\r\n4 b\r\n1 ab\r\n3 bb\r\n1 abb\r\n2 bbb\r\n1 a\r\n2 abbb<\/pre>\n<ul>\n<li>\n<h3><strong>\u6837\u4f8b\u8f93\u51fa<\/strong><\/h3>\n<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">-1\r\n2\r\n-1\r\n3\r\n-1\r\n1\r\n-1<\/pre>\n<ul>\n<li>\n<h3><strong>\u5b50\u4efb\u52a1<\/strong><\/h3>\n<\/li>\n<\/ul>\n<table class=\"table table-bordered\" style=\"width: 667px; height: 208px;\">\n<thead>\n<tr style=\"height: 26px;\">\n<th style=\"text-align: center; width: 95.4px; height: 26px;\" rowspan=\"1\">\u6d4b\u8bd5\u70b9\u7f16\u53f7<\/th>\n<th style=\"text-align: center; width: 98.4333px; height: 26px;\" rowspan=\"1\">\\(|s|\\)<\/th>\n<th style=\"text-align: center; width: 106.467px; height: 26px;\" rowspan=\"1\">\\(n\\)<\/th>\n<th style=\"text-align: center; width: 323.3px; height: 26px;\" rowspan=\"1\">\u7ea6\u5b9a<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 26px;\">\n<td style=\"text-align: center; width: 95.4px; height: 26px;\" rowspan=\"1\">1-3<\/td>\n<td style=\"text-align: center; width: 98.4333px; height: 26px;\" rowspan=\"1\">\\(\\le 300\\)<\/td>\n<td style=\"text-align: center; width: 106.467px; height: 26px;\" rowspan=\"1\">\\(\\le 300\\)<\/td>\n<td style=\"text-align: center; vertical-align: middle; width: 323.3px; height: 52px;\" rowspan=\"2\">\u65e0<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"text-align: center; width: 95.4px; height: 26px;\" rowspan=\"1\">4-5<\/td>\n<td style=\"text-align: center; width: 98.4333px; height: 26px;\" rowspan=\"1\">\\(\\le 5000\\)<\/td>\n<td style=\"text-align: center; width: 112.867px; height: 26px;\" rowspan=\"1\">\\(\\le 5000\\)<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"text-align: center; width: 95.4px; height: 26px;\" rowspan=\"1\">6-7<\/td>\n<td style=\"text-align: center; width: 98.4333px; height: 26px;\" rowspan=\"1\">\\(\\le 100000\\)<\/td>\n<td style=\"text-align: center; width: 106.467px; height: 26px;\" rowspan=\"1\">\\(\\le 100000\\)<\/td>\n<td style=\"text-align: center; width: 323.3px; height: 26px;\" rowspan=\"1\">\u5b57\u7b26\u4e32 \\(s\\) \u4ec5\u5305\u542b\u5b57\u7b26 a<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"text-align: center; width: 95.4px; height: 26px;\" rowspan=\"1\">8-10<\/td>\n<td style=\"text-align: center; width: 98.4333px; height: 26px;\" rowspan=\"1\">\\(\\le 50000\\)<\/td>\n<td style=\"text-align: center; width: 106.467px; height: 26px;\" rowspan=\"1\">\\(\\le 50000\\)<\/td>\n<td style=\"text-align: center; vertical-align: middle; width: 323.3px; height: 52px;\" rowspan=\"2\">\u6bcf\u4e2a \\(m_i\\) \u5728 \\(s\\) \u4e2d\u51fa\u73b0\u6b21\u6570\u4e0d\u8d85\u8fc7 \\(50\\)<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"text-align: center; width: 95.4px; height: 26px;\" rowspan=\"1\">11-12<\/td>\n<td style=\"text-align: center; width: 98.4333px; height: 26px;\" rowspan=\"1\">\\(\\le 100000\\)<\/td>\n<td style=\"text-align: center; width: 112.867px; height: 26px;\" rowspan=\"1\">\\(\\le 100000\\)<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"text-align: center; width: 95.4px; height: 26px;\" rowspan=\"1\">13-16<\/td>\n<td style=\"text-align: center; width: 98.4333px; height: 26px;\" rowspan=\"1\">\\(\\le 50000\\)<\/td>\n<td style=\"text-align: center; width: 106.467px; height: 26px;\" rowspan=\"1\">\\(\\le 50000\\)<\/td>\n<td style=\"text-align: center; width: 323.3px; height: 26px;\" rowspan=\"1\">\u6240\u6709 \\(m_i\\) \u7684\u603b\u957f\u4e0d\u8d85\u8fc7 \\(50000\\)<\/td>\n<\/tr>\n<tr style=\"height: 26px;\">\n<td style=\"text-align: center; width: 95.4px; height: 26px;\" rowspan=\"1\">17-20<\/td>\n<td style=\"text-align: center; width: 98.4333px; height: 26px;\" rowspan=\"1\">\\(\\le 100000\\)<\/td>\n<td style=\"text-align: center; width: 106.467px; height: 26px;\" rowspan=\"1\">\\(\\le 100000\\)<\/td>\n<td style=\"text-align: center; width: 323.3px; height: 26px;\" rowspan=\"1\">\u65e0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\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>\u9898\u89e3\u7684\u505a\u6cd5\uff1a<\/p>\n<p>\u5c06\u6240\u6709\u7684\u5339\u914d\u4e32\u5efa\u4e00\u4e2a AC\u81ea\u52a8\u673a\uff0c\u7136\u540e\u6bcd\u4e32\u653e\u5728\u4e0a\u9762\u8dd1\uff0c\u7ecf\u8fc7\u7684\u70b9\u8ba1\u5165\u4e0b\u5f53\u524d\u6bcd\u4e32\u6240\u5339\u914d\u5230\u7684\u4f4d\u7f6e\uff0c\u7528 <code>fail<\/code>\u6307\u9488\u5728\u6811\u4e0a\u542f\u53d1\u5f0f\u5408\u5e76\uff0c\u5bf9\u6811\u4e0a\u6240\u6709\u7684\u5339\u914d\u4e32\u7684\u7ec8\u6b62\u70b9\u8ba1\u7b97\u7b54\u6848\uff0c\u8ba1\u7b97\u7b54\u6848\u662f\u4e0e\u5339\u914d\u4e32\u5728\u6bcd\u4e32\u51fa\u73b0\u6b21\u6570\u7ebf\u6027\u76f8\u5173\u7684\u3002<\/p>\n<p>\u8bc1\u660e\u8be5\u7b97\u6cd5\u603b\u590d\u6742\u5ea6\u662f \\(O(nlog^2n+n\\sqrt n)\\)<\/p>\n<p>\u590d\u6742\u5ea6\u7684\u5173\u952e\u5728\u4e8e\u8bc1\u660e \u6240\u6709\u5339\u914d\u4e32\u5728\u6bcd\u4e32\u51fa\u73b0\u6b21\u6570\u4e4b\u548c \u8303\u56f4\u6709\u4fdd\u8bc1\u3002<\/p>\n<p>\u9898\u76ee\u4e2d\u4fdd\u8bc1\u4efb\u610f\u7684\u4e32 \\(m_i\\) \u5747\u4e0d\u76f8\u540c\uff0c\u6240\u4ee5\u957f\u5ea6\u5927\u4e8e \\(\\sqrt n\\) \u6700\u591a\u53ea\u80fd\u51fa\u73b0 \\(\\sqrt n\\) \u6b21\uff0c\u957f\u5ea6\u5c0f\u4e8e \\(\\sqrt n\\) \u7684 \\(s\\) \u7684\u5b50\u4e32\u5728\u6bcd\u4e32\u51fa\u73b0\u6b21\u6570\u4e4b\u548c\u6700\u591a\u5c31 \\(n\\sqrt n\\)\uff0c\u6240\u4ee5\u6240\u6709\u5339\u914d\u4e32\u5728\u6bcd\u4e32\u51fa\u73b0\u6b21\u6570\u4e4b\u548c\u4e3a \\(O(n\\sqrt n)\\) \u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u9996\u5148\u5efa AC\u81ea\u52a8\u673a\u662f\u80af\u5b9a\u7684\uff0c\u4f46\u662f\u6211\u4eec\u6709\u4e00\u4e2a\u5f88\u597d\u7684 \u52a8\u6001 \u7ebf\u6027\u8868\uff1a <span class=\"lang:default decode:true  crayon-inline \">std::vector&lt;&gt;<\/span> \uff01\uff01\uff01<\/p>\n<p>\u6240\u4ee5\u5339\u914d\u5230\u4e00\u4e2a\u4e32\u5c31\u66b4\u529b\u63d2\u5230 <span class=\"lang:default decode:true  crayon-inline \">std::vector&lt;&gt;<\/span>\u00a0 \u91cc\uff0c\u6700\u540e\u5728\u91cc\u9762\u66b4\u529b\u627e\u3002<\/p>\n<p>\u65f6\u7a7a\u590d\u6742\u5ea6 \\(O(n\\sqrt n)\\) \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;vector&gt;\r\n\r\n#define _min(_a_,_b_) ((_a_)&lt;(_b_)?(_a_):(_b_))\r\n\r\ninline int getnum()\r\n{\r\n\tregister char c=getchar();\r\n\twhile(!(c&gt;='0' &amp;&amp; c&lt;='9'))\r\n\t\tc=getchar();\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 a;\r\n}\r\n\r\ntemplate&lt;class T&gt;\r\ninline void getstr(char s[],T&amp;ls)\r\n{\r\n\tregister char c=0;\r\n\twhile(!(c&gt;='a' &amp;&amp; c&lt;='z'))\r\n\t\tc=getchar();\r\n\tls=0;\r\n\twhile(c&gt;='a' &amp;&amp; c&lt;='z')\r\n\t\ts[++ls]=c,c=getchar();\r\n\ts[ls+1]=0;\r\n\treturn;\r\n}\r\n\r\nint cnt,ch[105050][26],endidx[105050];\r\ninline void insertStr(char s[],register int ls,const int&amp;idx)\r\n{\r\n\tregister int now=0;\r\n\tfor(register int i=1;i&lt;=ls;i++)\r\n\t{\r\n\t\tregister short c=s[i]-'a';\r\n\t\tif(!ch[now][c])\r\n\t\t\tch[now][c]=++cnt;\r\n\t\tnow=ch[now][c];\r\n\t}\r\n\tendidx[now]=idx;\r\n}\r\n\r\nint fail[105050];\r\ninline void build()\r\n{\r\n\tstatic int lst[105050];\r\n\tregister int front=0,rear=0;\r\n\tfor(register int j=0;j&lt;26;j++)\r\n\t\tif(ch[0][j])\r\n\t\t\tlst[rear++]=ch[0][j],fail[ch[0][j]]=0;\r\n\twhile(front&lt;rear)\r\n\t{\r\n\t\tregister int now=lst[front++];\r\n\t\tfor(register int j=0;j&lt;26;j++)\r\n\t\t\tif(ch[now][j])\r\n\t\t\t\tfail[ch[now][j]]=ch[fail[now]][j],lst[rear++]=ch[now][j];\r\n\t\t\telse\r\n\t\t\t\tch[now][j]=ch[fail[now]][j];\r\n\t}\r\n}\r\n\r\nchar s[105050],m[105050];\r\nunsigned lm[105050],k[105050];\r\nstd::vector&lt;int&gt;endpos[100001];\r\n\r\nint main()\r\n{\r\n\tint ls;getstr(s,ls);\r\n\tregister int N=getnum();\r\n\tfor(register int i=1;i&lt;=N;i++)\r\n\t{\r\n\t\tk[i]=getnum();\r\n\t\tgetstr(m,lm[i]);\r\n\t\tinsertStr(m,lm[i],i);\r\n\t}\r\n\tbuild();\r\n\t\r\n\tregister int now=0;\r\n\tfor(register int i=1;i&lt;=ls;i++)\r\n\t{\r\n\t\tregister short c=s[i]-'a';\r\n\t\tnow=ch[now][c];\r\n\t\tfor(register int j=now;j;j=fail[j])\r\n\t\t\tif(endidx[j])\r\n\t\t\t\tendpos[endidx[j]].push_back(i);\r\n\t}\r\n\t\r\n\tfor(register int i=1;i&lt;=N;i++)\r\n\t{\r\n\t\tif(endpos[i].size() &lt; k[i])\r\n\t\t{\r\n\t\t\tprintf(\"%d\\n\",-1);\r\n\t\t\tcontinue;\r\n\t\t}\r\n\t\t\r\n\t\tregister unsigned mlen=UINT_MAX;\r\n\t\tfor(register unsigned j=k[i];j&lt;=endpos[i].size();j++)\r\n\t\t\tmlen=_min(mlen,endpos[i][j-1]-(endpos[i][j-1-k[i]+1]-lm[i]+1)+1);\r\n\t\tprintf(\"%u\\n\",mlen);\r\n\t}\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 P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a5 &hellip; <a href=\"https:\/\/cf.mnihyc.com\/blog\/archives\/1123\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6<\/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,89,93],"tags":[],"class_list":["post-1123","post","type-post","status-publish","format-standard","hentry","category-proa","category-acautomaton","category-heuristicmerge"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6 - mnihyc&#039;s Blog<\/title>\n<meta name=\"description\" content=\"YZOJ P3750 \u5b57\u7b26\u4e32\u7684\u9891\u5ea6 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u5b57\u7b26\u4e32 (s) \u3002\u4f60\u9700\u8981\u56de\u7b54 (n) \u4e2a\u8be2\u95ee\uff0c\u7b2c (i) \u4e2a\u8be2\u95ee\u7ed9\u51fa\u4e00\u4e2a\u6b63\u6574\u6570 (k_i) \u548c\u4e00\u4e2a\u5b57\u7b26\u4e32 (m_i)\uff0c\u8bf7\u6c42\u51fa\" \/>\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\/1123\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6 - mnihyc&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"YZOJ P3750 \u5b57\u7b26\u4e32\u7684\u9891\u5ea6 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u5b57\u7b26\u4e32 (s) \u3002\u4f60\u9700\u8981\u56de\u7b54 (n) \u4e2a\u8be2\u95ee\uff0c\u7b2c (i) \u4e2a\u8be2\u95ee\u7ed9\u51fa\u4e00\u4e2a\u6b63\u6574\u6570 (k_i) \u548c\u4e00\u4e2a\u5b57\u7b26\u4e32 (m_i)\uff0c\u8bf7\u6c42\u51fa\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mnihyc.com\/blog\/archives\/1123\" \/>\n<meta property=\"og:site_name\" content=\"mnihyc&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-05-11T09:55:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-22T03:40:45+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\/1123#article\",\"isPartOf\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1123\"},\"author\":{\"name\":\"mnihyc\",\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"headline\":\"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6\",\"datePublished\":\"2019-05-11T09:55:55+00:00\",\"dateModified\":\"2020-04-22T03:40:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1123\"},\"wordCount\":130,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"articleSection\":[\"6.0 ~ 7.0\",\"AC\u81ea\u52a8\u673a\",\"\u542f\u53d1\u5f0f\u5408\u5e76\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/mnihyc.com\/blog\/archives\/1123#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1123\",\"url\":\"https:\/\/mnihyc.com\/blog\/archives\/1123\",\"name\":\"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6 - mnihyc&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/#website\"},\"datePublished\":\"2019-05-11T09:55:55+00:00\",\"dateModified\":\"2020-04-22T03:40:45+00:00\",\"description\":\"YZOJ P3750 \u5b57\u7b26\u4e32\u7684\u9891\u5ea6 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u5b57\u7b26\u4e32 \\\\(s\\\\) \u3002\u4f60\u9700\u8981\u56de\u7b54 \\\\(n\\\\) \u4e2a\u8be2\u95ee\uff0c\u7b2c \\\\(i\\\\) \u4e2a\u8be2\u95ee\u7ed9\u51fa\u4e00\u4e2a\u6b63\u6574\u6570 \\\\(k_i\\\\) \u548c\u4e00\u4e2a\u5b57\u7b26\u4e32 \\\\(m_i\\\\)\uff0c\u8bf7\u6c42\u51fa\",\"breadcrumb\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1123#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mnihyc.com\/blog\/archives\/1123\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mnihyc.com\/blog\/archives\/1123#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/mnihyc.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6\"}]},{\"@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 P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6 - mnihyc&#039;s Blog","description":"YZOJ P3750 \u5b57\u7b26\u4e32\u7684\u9891\u5ea6 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u5b57\u7b26\u4e32 (s) \u3002\u4f60\u9700\u8981\u56de\u7b54 (n) \u4e2a\u8be2\u95ee\uff0c\u7b2c (i) \u4e2a\u8be2\u95ee\u7ed9\u51fa\u4e00\u4e2a\u6b63\u6574\u6570 (k_i) \u548c\u4e00\u4e2a\u5b57\u7b26\u4e32 (m_i)\uff0c\u8bf7\u6c42\u51fa","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\/1123","og_locale":"zh_CN","og_type":"article","og_title":"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6 - mnihyc&#039;s Blog","og_description":"YZOJ P3750 \u5b57\u7b26\u4e32\u7684\u9891\u5ea6 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u5b57\u7b26\u4e32 (s) \u3002\u4f60\u9700\u8981\u56de\u7b54 (n) \u4e2a\u8be2\u95ee\uff0c\u7b2c (i) \u4e2a\u8be2\u95ee\u7ed9\u51fa\u4e00\u4e2a\u6b63\u6574\u6570 (k_i) \u548c\u4e00\u4e2a\u5b57\u7b26\u4e32 (m_i)\uff0c\u8bf7\u6c42\u51fa","og_url":"https:\/\/mnihyc.com\/blog\/archives\/1123","og_site_name":"mnihyc&#039;s Blog","article_published_time":"2019-05-11T09:55:55+00:00","article_modified_time":"2020-04-22T03:40:45+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\/1123#article","isPartOf":{"@id":"https:\/\/mnihyc.com\/blog\/archives\/1123"},"author":{"name":"mnihyc","@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"headline":"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6","datePublished":"2019-05-11T09:55:55+00:00","dateModified":"2020-04-22T03:40:45+00:00","mainEntityOfPage":{"@id":"https:\/\/mnihyc.com\/blog\/archives\/1123"},"wordCount":130,"commentCount":0,"publisher":{"@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"articleSection":["6.0 ~ 7.0","AC\u81ea\u52a8\u673a","\u542f\u53d1\u5f0f\u5408\u5e76"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/mnihyc.com\/blog\/archives\/1123#respond"]}]},{"@type":"WebPage","@id":"https:\/\/mnihyc.com\/blog\/archives\/1123","url":"https:\/\/mnihyc.com\/blog\/archives\/1123","name":"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6 - mnihyc&#039;s Blog","isPartOf":{"@id":"https:\/\/mnihyc.com\/blog\/#website"},"datePublished":"2019-05-11T09:55:55+00:00","dateModified":"2020-04-22T03:40:45+00:00","description":"YZOJ P3750 \u5b57\u7b26\u4e32\u7684\u9891\u5ea6 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u5b57\u7b26\u4e32 \\(s\\) \u3002\u4f60\u9700\u8981\u56de\u7b54 \\(n\\) \u4e2a\u8be2\u95ee\uff0c\u7b2c \\(i\\) \u4e2a\u8be2\u95ee\u7ed9\u51fa\u4e00\u4e2a\u6b63\u6574\u6570 \\(k_i\\) \u548c\u4e00\u4e2a\u5b57\u7b26\u4e32 \\(m_i\\)\uff0c\u8bf7\u6c42\u51fa","breadcrumb":{"@id":"https:\/\/mnihyc.com\/blog\/archives\/1123#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mnihyc.com\/blog\/archives\/1123"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mnihyc.com\/blog\/archives\/1123#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/mnihyc.com\/blog"},{"@type":"ListItem","position":2,"name":"YZOJ P3750 [\u6821\u5185\u8bad\u7ec320180529]\u5b57\u7b26\u4e32\u7684\u9891\u5ea6"}]},{"@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:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/1123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/comments?post=1123"}],"version-history":[{"count":0,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/1123\/revisions"}],"wp:attachment":[{"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/media?parent=1123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/categories?post=1123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/tags?post=1123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}