{"id":833,"date":"2019-01-30T12:22:20","date_gmt":"2019-01-30T04:22:20","guid":{"rendered":"https:\/\/0self.mnihyc.com\/blog\/?p=833"},"modified":"2020-02-09T03:08:21","modified_gmt":"2020-02-08T19:08:21","slug":"yzoj-p3314-%e8%ae%a1%e7%ae%97%e5%99%a8","status":"publish","type":"post","link":"https:\/\/0self.mnihyc.com\/blog\/archives\/833","title":{"rendered":"YZOJ P3314 \u8ba1\u7b97\u5668"},"content":{"rendered":"<h1 style=\"text-align: center;\">YZOJ P3314 \u8ba1\u7b97\u5668<\/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><\/p>\n<p style=\"text-align: center;\">\u96be\u5ea6\uff1a <span style=\"color: #00ff00;\">\\(3.6\\)<\/span><\/p>\n<ul>\n<li>\n<h3><strong>\u9898\u76ee\u63cf\u8ff0<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u4f60\u6253\u7b97\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\uff0c\u652f\u6301\u8ba1\u7b97\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u3002<\/p>\n<p>\u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6240\u6709\u8fd0\u7b97\u6d89\u53ca\u7684\u6570\u5747\u4e3a\u6574\u6570\uff08\u53ef\u4ee5\u662f\u8d1f\u6570\uff09\uff0c\u8fd0\u7b97\u5305\u542b <code>+<\/code>\uff08\u52a0\uff09\u3001 <code>-<\/code>\uff08\u51cf\uff09\u3001 <code>*<\/code>\uff08\u4e58\uff09\u4e09\u79cd\u3002\u8ba1\u7b97\u65f6\uff0c\u6309\u7167\u5148\u4e58\u540e\u52a0\u51cf\u7684\u987a\u5e8f\u8ba1\u7b97\uff0c\u540c\u7ea7\u8fd0\u7b97\u4ece\u5de6\u5230\u53f3\u8fdb\u884c\u3002\u8868\u8fbe\u5f0f\u4e2d\u53ef\u80fd\u6709\u62ec\u53f7\uff0c\u5e94\u5148\u8ba1\u7b97\u62ec\u53f7\u5185\u7684\u7ed3\u679c\uff0c\u62ec\u53f7\u53ef\u80fd\u6709\u5d4c\u5957\u3002<\/p>\n<p>\u5f62\u5f0f\u5316\u5730\uff0c\u8868\u8fbe\u5f0f\u7684\u683c\u5f0f\u5982\u4e0b\uff1a\uff08\u4e0d\u542b <code>&lt;<\/code>\u3001 <code>&gt;<\/code>\uff09<\/p>\n<p><strong>&lt; \u8868\u8fbe\u5f0f &gt; \uff1a\u00a0 &lt; \u8fd0\u7b97\u6570 1&gt;&lt; \u8fd0\u7b97\u7b26 1&gt;&lt; \u8fd0\u7b97\u6570 2&gt;&lt; \u8fd0\u7b97\u7b26 2&gt; \\(\\cdots\\) &lt; \u8fd0\u7b97\u7b26 \\(k-1\\)&gt;&lt; \u8fd0\u7b97\u6570 \\(k\\)&gt;\uff08 \\(k\\) \u4e3a\u6b63\u6574\u6570\uff09<\/strong><\/p>\n<p>\u5176\u4e2d\uff0c\u8fd0\u7b97\u6570\u53ef\u4ee5\u662f\u6574\u6570\uff0c\u4e5f\u53ef\u4ee5\u662f<strong> (&lt; \u8868\u8fbe\u5f0f &gt;)<\/strong> \u6216<strong> <code>-<\/code>(&lt; \u8868\u8fbe\u5f0f &gt;)<\/strong> \u7684\u5f62\u5f0f\uff0c\u5373\u5305\u542b\u5728\u62ec\u53f7\u5185\u7684\u8868\u8fbe\u5f0f\u3002\u8fd0\u7b97\u7b26\u4e3a <code>+<\/code>\u3001 <code>-<\/code>\u3001 <code>*<\/code> \u4e4b\u4e00\u3002\u4fdd\u8bc1\u4efb\u610f\u4e24\u4e2a &#8211; \u4e0d\u76f8\u90bb\u3002<\/p>\n<p>\u8bf7\u4f60\u7f16\u5199\u8ba1\u7b97\u5668\u7684\u7a0b\u5e8f\uff0c\u8ba1\u7b97\u7ed9\u5b9a\u7684\u8868\u8fbe\u5f0f\u7684\u7ed3\u679c\u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u8f93\u5165\u683c\u5f0f<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u8f93\u5165\u5305\u542b\u4e00\u4e2a\u5b57\u7b26\u4e32 <code>s<\/code>\uff0c\u8868\u793a\u5f85\u8ba1\u7b97\u7684\u8868\u8fbe\u5f0f\uff0c\u4fdd\u8bc1\u8868\u8fbe\u5f0f\u7b26\u5408\u683c\u5f0f\uff0c\u6ca1\u6709\u7a7a\u683c\u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u8f93\u51fa\u683c\u5f0f<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u8f93\u51fa\u4e00\u4e2a\u6574\u6570\uff0c\u8868\u793a\u8ba1\u7b97\u7ed3\u679c\u3002\u5f53\u8ba1\u7b97\u7ed3\u679c\u4e0d\u4e3a 0\u00a0\u65f6\uff0c\u8981\u6c42\u6700\u9ad8\u4f4d\u975e 0\u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u6837\u4f8b\u8f93\u5165<\/strong><\/h3>\n<\/li>\n<\/ul>\n<pre class=\"\">(314+271*99)*(100-985*211)-(-6)<\/pre>\n<ul>\n<li>\n<h3><strong>\u6837\u4f8b\u8f93\u51fa<\/strong><\/h3>\n<\/li>\n<\/ul>\n<pre class=\"\">-5638551099<\/pre>\n<ul>\n<li>\n<h3><strong>\u6570\u636e\u89c4\u6a21\u4e0e\u7ea6\u5b9a<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p><del>\u56e0\u4e3a\u662f\u6c34\u9898\uff0c\u6240\u4ee5\u6ca1\u6709\u5177\u4f53\u7684\u6570\u636e\u8303\u56f4<\/del><\/p>\n<p>\\(1 \\leq \\left| s \\right| \\leq 10^4\\)<\/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>\u8868\u8fbe\u5f0f\u8ba1\u7b97\u7684\u672c\u6765\u6211\u5df2\u7ecf\u5199\u8fc7\u4e24\u7bc7\u4e86\uff0c\u8fd9\u91cc\u5c31\u4e0d\u591a\u8bf4\u4e86\u3002<\/p>\n<p>\u4e27\u9898\uff0c\u60f3\u98982s\uff0c\u7801\u98982h\uff0c\u8c03\u98982d\uff0c\u8fbe\u6210\u6210\u5c31\uff1a\u4eba\u751f\u4e2d\u7b2c\u4e00\u6b21\u5199\u9ad8\u7cbe\u8d1f\u6570\uff01\uff08\\(Bouns -999999999\\cdots\\cdots\\)<\/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\r\n#define SETDIG 4\r\n#define SETDIGN 10000\r\n\/\/#define _swap(_a,_b) ((_a)^=(_b)^=(_a)^=(_b))\r\n#define _abs(_a) ((_a)&lt;0?-(_a):(_a))\r\nstruct _bnum\r\n{\r\n\tint num[155],len,sgn;\r\n\t_bnum(){memset(num,0,sizeof(num));len=0;sgn=1;}\r\n\tinline int numcmp(const _bnum&amp;a,const _bnum&amp;b)\r\n\t{\r\n\t\tif(a.len&gt;b.len)\r\n\t\t\treturn 1;\r\n\t\telse if(a.len&lt;b.len)\r\n\t\t\treturn -1;\r\n\t\tfor(register int i=a.len-1;i&gt;=0;i--)\r\n\t\t\tif(a.num[i]&gt;b.num[i])\r\n\t\t\t\treturn 1;\r\n\t\t\telse if(a.num[i]&lt;b.num[i])\r\n\t\t\t\treturn -1;\r\n\t\treturn 1;\r\n\t}\r\n\t_bnum(const char ostr[])\r\n\t{\r\n\t\tconst char*str=ostr+(ostr[0]=='-');\r\n\t\tmemset(num,0,sizeof(num));len=0;\r\n\t\tregister int ls=strlen(str)-1;\r\n\t\tfor(;ls-SETDIG&gt;=0;ls-=SETDIG,len++)\r\n\t\t\tfor(register int j=ls-SETDIG+1;j&lt;=ls;j++)\r\n\t\t\t\t(num[len]*=10)+=(str[j]-'0');\r\n\t\tfor(register int j=0;j&lt;=ls;j++)\r\n\t\t\t(num[len]*=10)+=(str[j]-'0');\r\n\t\tlen++;\r\n\t\tif(ostr[0]=='-')\r\n\t\t\tsgn=-1;\r\n\t\telse\r\n\t\t\tsgn=1;\r\n\t}\r\n\t_bnum(register int n)\r\n\t{\r\n\t\tmemset(num,0,sizeof(num));len=1;\r\n\t\tnum[0]=_abs(n);\r\n\t\twhile(num[len-1]&gt;SETDIGN-1)\r\n\t\t\tnum[len]=num[len-1]\/SETDIGN,num[len-1]%=SETDIGN,len++;\r\n\t\tif(n&lt;0)\r\n\t\t\tsgn=-1;\r\n\t\telse\r\n\t\t\tsgn=1;\r\n\t}\r\n\t_bnum operator = (const _bnum&amp;ot)\r\n\t{\r\n\t\tsgn=ot.sgn,len=ot.len;\r\n\t\tmemcpy(&amp;num,&amp;ot.num,sizeof(num));\r\n\t\treturn *this;\r\n\t}\r\n\t_bnum operator += (_bnum ot)\r\n\t{\r\n\t\tregister int osign=sgn,otsign=ot.sgn;\r\n\t\t\/\/this-&gt;PrintNum(),ot.PrintNum();\r\n\t\t\/\/printf(\"%d %d\\n\",osign,otsign);\r\n\t\tif(osign*otsign&lt;0)\r\n\t\t\tif(osign&gt;0)\r\n\t\t\t{\r\n\t\t\t\tot.sgn=1;\r\n\t\t\t\t(*this)-=ot;\r\n\t\t\t\tot.sgn=otsign;\r\n\t\t\t\treturn *this; \r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t_bnum ans=ot;\r\n\t\t\t\tsgn=1;\r\n\t\t\t\t*this=(ans-=(*this));\r\n\t\t\t\t\/\/sgn=osign;\r\n\t\t\t\treturn *this;\r\n\t\t\t}\r\n\t\tsgn=osign;\r\n\t\tregister int flen=len;\r\n\t\tif(ot.len&gt;flen)\r\n\t\t\tflen=ot.len;\r\n\t\tfor(register int i=0;i&lt;flen;i++)\r\n\t\t{\r\n\t\t\tnum[i]+=ot.num[i];\r\n\t\t\tnum[i+1]+=num[i]\/SETDIGN,num[i]%=SETDIGN;\r\n\t\t}\r\n\t\tif(num[flen])\r\n\t\t\tflen++;\r\n\t\tlen=flen;\r\n\t\twhile(num[len-1]&gt;SETDIGN-1)\r\n\t\t\tnum[len]=num[len-1]\/SETDIGN,num[len-1]%=SETDIGN,len++;\r\n\t\treturn *this;\r\n\t}\r\n\t_bnum operator *= (const _bnum&amp;ot)\r\n\t{\r\n\t\t_bnum ans;\r\n\t\tregister int flen=this-&gt;len+ot.len;\r\n\t\tfor(register int i=0;i&lt;this-&gt;len;i++)\r\n\t\t\tfor(register int j=0;j&lt;ot.len;j++)\r\n\t\t\t\tans.num[i+j]+=this-&gt;num[i]*ot.num[j];\r\n\t\tfor(register int i=0;i&lt;flen;i++)\r\n\t\t\tans.num[i+1]+=ans.num[i]\/SETDIGN,ans.num[i]%=SETDIGN;\r\n\t\twhile(ans.num[flen])\r\n\t\t\tans.num[flen+1]=ans.num[flen+1]\/SETDIGN,ans.num[flen++]%=SETDIGN;\r\n\t\twhile(ans.num[flen-1]==0 &amp;&amp; len&gt;0)\r\n\t\t\tflen--;\r\n\t\tif(flen==0)\r\n\t\t\tflen=1;\r\n\t\tans.len=flen;\r\n\t\tans.sgn=sgn*ot.sgn;\r\n\t\t\/\/ans.PrintNum();\r\n\t\treturn (*this=ans);\r\n\t}\r\n\t_bnum operator -= (_bnum ot)\r\n\t{\r\n\t\tregister int osign=sgn,otsign=ot.sgn;\r\n\t\t\/\/printf(\"%d %d\\n\",osign,otsign);\r\n\t\t\/\/this-&gt;PrintNum();ot.PrintNum();printf(\"-------\\n\\n\");\r\n\t\tif(osign*otsign&lt;0)\r\n\t\t{\r\n\t\t\tsgn=ot.sgn=1;\r\n\t\t\t(*this)+=ot;\r\n\t\t\tsgn=osign,ot.sgn=otsign;\r\n\t\t\treturn *this;\r\n\t\t}\r\n\t\tif(osign&lt;0)\r\n\t\t{\r\n\t\t\t_bnum ans=ot;\r\n\t\t\tsgn=ans.sgn=1;\r\n\t\t\tans-=(*this);\r\n\t\t\t\/\/ans.sgn*=-1;\r\n\t\t\treturn (*this=ans);\r\n\t\t}\r\n\t\tif(ot.len&gt;len)\r\n\t\t\tlen=ot.len;\r\n\t\tsgn=numcmp(*this,ot);\r\n\t\tfor(register int i=0;i&lt;len;i++)\r\n\t\t{\r\n\t\t\t(num[i]-=ot.num[i])*=sgn;\r\n\t\t\t\/\/printf(\"%d: %d\\n\",i,num[i]);\r\n\t\t\twhile(num[i]&lt;0)\r\n\t\t\t\tnum[i+1]-=sgn,num[i]+=SETDIGN;\r\n\t\t}\r\n\t\twhile(num[len-1]==0 &amp;&amp; len&gt;0)\r\n\t\t\tlen--;\r\n\t\tif(len==0)\r\n\t\t\tlen=1;\r\n\t\twhile(num[len-1]&gt;SETDIGN-1)\r\n\t\t\tnum[len]=num[len-1]\/SETDIGN,num[len-1]%=SETDIGN,len++;\r\n\t\treturn *this;\r\n\t}\r\n\tinline void PrintNum()const\r\n\t{\r\n\t\tif(sgn&lt;0)\r\n\t\t\tprintf(\"-\");\r\n\t\tprintf(\"%d\",num[len-1]);\r\n\t\tstatic char ots[8];\r\n\t\tsprintf(ots,\"%%0%dd\",SETDIG);\r\n\t\tfor(register int i=len-2;i&gt;=0;i--)\r\n\t\t\tprintf(ots,(num[i]&lt;0 ? -num[i] : num[i]));\r\n\t\tprintf(\"\\n\");\r\n\t}\r\n};\r\n\r\n\r\ninline _bnum ExpressionNumber(char*&amp;pos)\r\n{\r\n\tstatic char s[10505];\r\n\tchar*spos=&amp;s[0];\r\n\tif(*pos=='-')\r\n\t\t*spos='-',spos++,pos++;\r\n\twhile(*pos&gt;='0' &amp;&amp; *pos&lt;='9')\r\n\t{\r\n\t\t*spos=*pos;\r\n\t\tspos++,pos++;\r\n\t}\r\n\t*spos='\\0';\r\n\tif(*(spos-1)=='-')\r\n\t{\r\n\t\tpos--,*pos='*';\r\n\t\treturn (_bnum)-1;\r\n\t}\r\n\treturn (_bnum)s;\r\n}\r\n\r\ninline _bnum ExpressionAddMinus(char*&amp;pos);\r\ninline _bnum ExpressionBracket(char*&amp;pos)\r\n{\r\n\tif(*pos=='(')\r\n\t{\r\n\t\tpos++;\r\n\t\t_bnum ret=ExpressionAddMinus(pos);\r\n\t\tpos++;\r\n\t\treturn ret;\r\n\t}\r\n\telse\r\n\t\treturn ExpressionNumber(pos);\r\n}\r\n\r\ninline _bnum ExpressionTimes(char*&amp;pos)\r\n{\r\n\t_bnum ret=ExpressionBracket(pos);\r\n\t\r\n\twhile(1)\r\n\t\tswitch(*pos)\r\n\t\t{\r\n\t\t\tcase '*':\r\n\t\t\t\tpos++;\r\n\t\t\t\tret*=ExpressionBracket(pos);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn ret;\r\n\t\t}\r\n\treturn ret;\r\n}\r\n\r\ninline _bnum ExpressionAddMinus(char*&amp;pos)\r\n{\r\n\t_bnum ret=ExpressionTimes(pos);\r\n\t\r\n\twhile(1)\r\n\t\tswitch(*pos)\r\n\t\t{\r\n\t\t\tcase '+':\r\n\t\t\t\tpos++;\r\n\t\t\t\tret+=ExpressionTimes(pos);\r\n\t\t\t\tbreak;\r\n\t\t\tcase '-':\r\n\t\t\t\tpos++;\r\n\t\t\t\tret-=ExpressionTimes(pos);\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\treturn ret;\r\n\t\t}\r\n\treturn ret;\r\n}\r\n\r\ninline _bnum ComputeAns(char s[])\r\n{\r\n\tchar*begin=&amp;s[1];\r\n\treturn ExpressionAddMinus(begin);\r\n}\r\n\r\nchar os[10505];\r\nint los;\r\n\r\ninline void ReadString()\r\n{\r\n\tmemset(os,0,sizeof(os));\r\n\tos[1]='(';\r\n\t\/\/ \u6570\u636e\u6709\u9505 \r\n\t\/*los=1;\r\n\tchar c=getchar();\r\n\twhile(c=='\\r' || c=='\\n' || c==' ')\r\n\t\tc=getchar();\r\n\twhile(c!='\\r' &amp;&amp; c!='\\n')\r\n\t{\r\n\t\tos[++los]=c;\r\n\t\tc=getchar();\r\n\t\twhile(c==' ' &amp;&amp; c!='\\r' &amp;&amp; c!='\\n')\r\n\t\t\tc=getchar();\r\n\t}*\/\r\n\tscanf(\"%s\",&amp;os[2]);\r\n\tlos=strlen(os+2)+1;\r\n\tos[++los]=')';\r\n}\r\n\r\nint main()\r\n{\r\n\tReadString();\/\/printf(\"%d\\n\",strlen(os+1));\r\n\tComputeAns(os).PrintNum();\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 P3314 \u8ba1\u7b97\u5668 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u96be &hellip; <a href=\"https:\/\/0self.mnihyc.com\/blog\/archives\/833\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">YZOJ P3314 \u8ba1\u7b97\u5668<\/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":[35,54,49],"tags":[],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","category-easya","category-exptree","category-highprec"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>YZOJ P3314 \u8ba1\u7b97\u5668 - mnihyc&#039;s Blog<\/title>\n<meta name=\"description\" content=\"YZOJ P3314 \u8ba1\u7b97\u5668 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u4f60\u6253\u7b97\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\uff0c\u652f\u6301\u8ba1\u7b97\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u3002 \u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6240\u6709\u8fd0\u7b97\u6d89\u53ca\u7684\u6570\u5747\u4e3a\u6574\u6570\uff08\u53ef\u4ee5\u662f\u8d1f\u6570\uff09\uff0c\u8fd0\u7b97\u5305\u542b +\uff08\u52a0\uff09\u3001 -\uff08\u51cf\uff09\u3001\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/0.mnihyc.com\/blog\/archives\/833\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YZOJ P3314 \u8ba1\u7b97\u5668 - mnihyc&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"YZOJ P3314 \u8ba1\u7b97\u5668 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u4f60\u6253\u7b97\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\uff0c\u652f\u6301\u8ba1\u7b97\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u3002 \u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6240\u6709\u8fd0\u7b97\u6d89\u53ca\u7684\u6570\u5747\u4e3a\u6574\u6570\uff08\u53ef\u4ee5\u662f\u8d1f\u6570\uff09\uff0c\u8fd0\u7b97\u5305\u542b +\uff08\u52a0\uff09\u3001 -\uff08\u51cf\uff09\u3001\" \/>\n<meta property=\"og:url\" content=\"https:\/\/0.mnihyc.com\/blog\/archives\/833\" \/>\n<meta property=\"og:site_name\" content=\"mnihyc&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-01-30T04:22:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-08T19:08:21+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=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/833#article\",\"isPartOf\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/833\"},\"author\":{\"name\":\"mnihyc\",\"@id\":\"https:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"headline\":\"YZOJ P3314 \u8ba1\u7b97\u5668\",\"datePublished\":\"2019-01-30T04:22:20+00:00\",\"dateModified\":\"2020-02-08T19:08:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/833\"},\"wordCount\":53,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"articleSection\":[\"3.0 ~ 4.0\",\"\u8868\u8fbe\u5f0f\u6811\",\"\u9ad8\u7cbe\u5ea6\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/0.mnihyc.com\/blog\/archives\/833#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/833\",\"url\":\"https:\/\/0.mnihyc.com\/blog\/archives\/833\",\"name\":\"YZOJ P3314 \u8ba1\u7b97\u5668 - mnihyc&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/0self.mnihyc.com\/blog\/#website\"},\"datePublished\":\"2019-01-30T04:22:20+00:00\",\"dateModified\":\"2020-02-08T19:08:21+00:00\",\"description\":\"YZOJ P3314 \u8ba1\u7b97\u5668 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u4f60\u6253\u7b97\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\uff0c\u652f\u6301\u8ba1\u7b97\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u3002 \u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6240\u6709\u8fd0\u7b97\u6d89\u53ca\u7684\u6570\u5747\u4e3a\u6574\u6570\uff08\u53ef\u4ee5\u662f\u8d1f\u6570\uff09\uff0c\u8fd0\u7b97\u5305\u542b +\uff08\u52a0\uff09\u3001 -\uff08\u51cf\uff09\u3001\",\"breadcrumb\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/833#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/0.mnihyc.com\/blog\/archives\/833\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/833#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/0self.mnihyc.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YZOJ P3314 \u8ba1\u7b97\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/0self.mnihyc.com\/blog\/#website\",\"url\":\"https:\/\/0self.mnihyc.com\/blog\/\",\"name\":\"mnihyc&#039;s Blog\",\"description\":\"Welcome!\",\"publisher\":{\"@id\":\"https:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/0self.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:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\",\"name\":\"mnihyc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/0self.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:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YZOJ P3314 \u8ba1\u7b97\u5668 - mnihyc&#039;s Blog","description":"YZOJ P3314 \u8ba1\u7b97\u5668 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u4f60\u6253\u7b97\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\uff0c\u652f\u6301\u8ba1\u7b97\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u3002 \u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6240\u6709\u8fd0\u7b97\u6d89\u53ca\u7684\u6570\u5747\u4e3a\u6574\u6570\uff08\u53ef\u4ee5\u662f\u8d1f\u6570\uff09\uff0c\u8fd0\u7b97\u5305\u542b +\uff08\u52a0\uff09\u3001 -\uff08\u51cf\uff09\u3001","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:\/\/0.mnihyc.com\/blog\/archives\/833","og_locale":"zh_CN","og_type":"article","og_title":"YZOJ P3314 \u8ba1\u7b97\u5668 - mnihyc&#039;s Blog","og_description":"YZOJ P3314 \u8ba1\u7b97\u5668 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u4f60\u6253\u7b97\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\uff0c\u652f\u6301\u8ba1\u7b97\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u3002 \u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6240\u6709\u8fd0\u7b97\u6d89\u53ca\u7684\u6570\u5747\u4e3a\u6574\u6570\uff08\u53ef\u4ee5\u662f\u8d1f\u6570\uff09\uff0c\u8fd0\u7b97\u5305\u542b +\uff08\u52a0\uff09\u3001 -\uff08\u51cf\uff09\u3001","og_url":"https:\/\/0.mnihyc.com\/blog\/archives\/833","og_site_name":"mnihyc&#039;s Blog","article_published_time":"2019-01-30T04:22:20+00:00","article_modified_time":"2020-02-08T19:08:21+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":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/0.mnihyc.com\/blog\/archives\/833#article","isPartOf":{"@id":"https:\/\/0.mnihyc.com\/blog\/archives\/833"},"author":{"name":"mnihyc","@id":"https:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"headline":"YZOJ P3314 \u8ba1\u7b97\u5668","datePublished":"2019-01-30T04:22:20+00:00","dateModified":"2020-02-08T19:08:21+00:00","mainEntityOfPage":{"@id":"https:\/\/0.mnihyc.com\/blog\/archives\/833"},"wordCount":53,"commentCount":0,"publisher":{"@id":"https:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"articleSection":["3.0 ~ 4.0","\u8868\u8fbe\u5f0f\u6811","\u9ad8\u7cbe\u5ea6"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/0.mnihyc.com\/blog\/archives\/833#respond"]}]},{"@type":"WebPage","@id":"https:\/\/0.mnihyc.com\/blog\/archives\/833","url":"https:\/\/0.mnihyc.com\/blog\/archives\/833","name":"YZOJ P3314 \u8ba1\u7b97\u5668 - mnihyc&#039;s Blog","isPartOf":{"@id":"https:\/\/0self.mnihyc.com\/blog\/#website"},"datePublished":"2019-01-30T04:22:20+00:00","dateModified":"2020-02-08T19:08:21+00:00","description":"YZOJ P3314 \u8ba1\u7b97\u5668 \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a524288KB \u51fa\u9898\u4eba\uff1azzx \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u4f60\u6253\u7b97\u8bbe\u8ba1\u4e00\u4e2a\u7b80\u5355\u7684\u8ba1\u7b97\u5668\uff0c\u652f\u6301\u8ba1\u7b97\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u3002 \u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6240\u6709\u8fd0\u7b97\u6d89\u53ca\u7684\u6570\u5747\u4e3a\u6574\u6570\uff08\u53ef\u4ee5\u662f\u8d1f\u6570\uff09\uff0c\u8fd0\u7b97\u5305\u542b +\uff08\u52a0\uff09\u3001 -\uff08\u51cf\uff09\u3001","breadcrumb":{"@id":"https:\/\/0.mnihyc.com\/blog\/archives\/833#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/0.mnihyc.com\/blog\/archives\/833"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/0.mnihyc.com\/blog\/archives\/833#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/0self.mnihyc.com\/blog"},{"@type":"ListItem","position":2,"name":"YZOJ P3314 \u8ba1\u7b97\u5668"}]},{"@type":"WebSite","@id":"https:\/\/0self.mnihyc.com\/blog\/#website","url":"https:\/\/0self.mnihyc.com\/blog\/","name":"mnihyc&#039;s Blog","description":"Welcome!","publisher":{"@id":"https:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/0self.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:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751","name":"mnihyc","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/0self.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:\/\/0self.mnihyc.com\/blog\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/833","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/comments?post=833"}],"version-history":[{"count":0,"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"wp:attachment":[{"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/0self.mnihyc.com\/blog\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}