{"id":971,"date":"2019-02-14T00:25:35","date_gmt":"2019-02-13T16:25:35","guid":{"rendered":"https:\/\/cf.mnihyc.com\/blog\/?p=971"},"modified":"2020-02-09T03:03:19","modified_gmt":"2020-02-08T19:03:19","slug":"fjwc2019-day1-%e5%85%a8%e8%bf%9e","status":"publish","type":"post","link":"https:\/\/cf.mnihyc.com\/blog\/archives\/971","title":{"rendered":"[FJWC2019 Day1] \u5168\u8fde"},"content":{"rendered":"<h1 style=\"text-align: center;\">[FJWC2019 Day1] \u5168\u8fde<\/h1>\n<p style=\"text-align: center;\">\u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a262144KB<\/p>\n<p style=\"text-align: center;\">\u96be\u5ea6\uff1a <span style=\"color: #ffcc00;\">\\(4.5\\)<\/span><\/p>\n<ul>\n<li>\n<h3><strong>\u9898\u76ee\u63cf\u8ff0<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u7ed9\u5b9a\u4e24\u4e2a\u957f\u5ea6\u4e3a \\(n\\) \u7684\u5e8f\u5217 \\(a\\) \u548c \\(t\\)\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u9009\u62e9\u4e00\u4e9b\u5143\u7d20\u6784\u6210\u96c6\u5408 \\(S\\) \uff0c\u4f7f\u5f97 \\(\\sum\\limits_{i \\in S}{a_i \\times t_i}\\) \u6700\u5927\u3002<\/p>\n<p>\u540c\u65f6\uff0c\u96c6\u5408 \\(S\\) \u8fd8\u8981\u6ee1\u8db3 \\(\\forall i \\in S, \\forall j \\in (i-t_i, i+t_i)\\) \uff0c \\(j \\notin S\\) \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\\) \uff1b<\/p>\n<p>\u7b2c\u4e8c\u884c \\(n\\) \u4e2a\u6574\u6570\u8868\u793a\u5e8f\u5217 \\(t\\) \uff1b<\/p>\n<p>\u7b2c\u4e09\u884c \\(n\\) \u4e2a\u6574\u6570\u8868\u793a\u5e8f\u5217 \\(a\\) \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\u6574\u6570\uff0c\u5373\u7b54\u6848\u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u6837\u4f8b\u8f93\u5165<\/strong><\/h3>\n<\/li>\n<\/ul>\n<pre class=\"\">5\r\n2 3 2 1 2\r\n3 1 2 9 4<\/pre>\n<ul>\n<li>\n<h3><strong>\u6837\u4f8b\u8f93\u51fa<\/strong><\/h3>\n<\/li>\n<\/ul>\n<pre class=\"\">18<\/pre>\n<ul>\n<li>\n<h3><strong>\u6837\u4f8b\u8bf4\u660e<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\\(S=\\{1,3,5\\}\\)\uff0c\u7b54\u6848 \\(=2 \\times 3 + 2 \\times 2 + 2 \\times 4 = 18\\) \u3002<\/p>\n<ul>\n<li>\n<h3><strong>\u6570\u636e\u89c4\u6a21\u4e0e\u7ea6\u5b9a<\/strong><\/h3>\n<\/li>\n<\/ul>\n<p>\u4fdd\u8bc1 \\(t_i \\leq n\\) \uff0c \\(a_i \\leq 10^9\\) \uff0c\\(1 \\leq n \\leq 10^6\\) \u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>YZOJ P4257, YZOJ P3993<\/p>\n<p><!--more--><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u5176\u5b9e\u662f\u5927\u6c34\u9898\uff0c\u4f46\u662f\u6211\u8fd9\u4e48\u7b80\u5355\u7684DP\u65b9\u7a0b\u90fd\u6ca1\u60f3\u6e05\u695a\u76f4\u63a5\u5feb\u4e50\u7206\u96f6\u3002<\/p>\n<p>\u53ef\u4ee5\u53d1\u73b0\uff0c\u53ea\u8981 \\(S\\) \u4e2d\u76f8\u90bb\u6700\u8fd1\u7684\u4e24\u4e2a\u5143\u7d20\u6ee1\u8db3\u6761\u4ef6\u5c31\u53ef\u4ee5\u4e86\u3002\u6240\u4ee5\u8bbe \\(f_i\\) \u4e3a \u524d \\(i\\) \u4e2a\u4e2d\u5143\u7d20\u4e2d\uff0c\u9009\u62e9\u7b2c \\(i\\) \u4e2a\u5143\u7d20\u7684\u6700\u5927\u7b54\u6848\u3002<\/p>\n<p>\u6240\u4ee5\u663e\u7136 \\(f_i = \\max \\limits _ {j + t_j \\le i \\land j \\le i &#8211; t_i}{f_j + t_i \\times a_i}\\) \uff0c\u7b54\u6848\u5c31\u662f \\(\\max\\limits_i{f_i}\\) \u3002<\/p>\n<p>\u7136\u540e\u8fd9\u662f\u4e00\u4e2a\u88f8\u7684<strong>\u4e8c\u7ef4\u504f\u5e8f<\/strong>\uff0c\u5373\u8d21\u732e\u6709\u4e24\u4e2a\u6761\u4ef6 \\(j+t_j \\leq i\\) \u548c \\(j \\leq i-t_i\\) \u3002\u6700\u5e38\u89c1\u505a\u6cd5\u7684\u662f\u628a\u4e00\u7ef4\u62ff\u53bb\u6392\u5e8f\uff0c\u5269\u4e0b\u4e00\u7ef4\u62ff\u6570\u636e\u7ed3\u6784\u7ef4\u62a4\u3002\u5728\u8fd9\u91cc\uff0c\u628a \\(j+t_j\\) \u62ff\u53bb\u6392\u5e8f\uff0c\u7136\u540e\u7ef4\u62a4 \\(i-t_i\\) \u7684<strong>\u6811\u72b6\u6570\u7ec4<\/strong>\uff0c\u65f6\u95f4\u590d\u6742\u5ea6\u5c31\u662f \\(O(nlogn)\\) \u3002<\/p>\n<p>\uff08\u56e0\u4e3a\u6211\u6bd4\u8f83\u83dc\uff0c\u4e00\u76f4\u5728\u7ea0\u7ed3\u8d21\u732e\u7684\u987a\u5e8f\u5373 \\(i&gt;j\\) \uff0c\u6240\u4ee5\u5728\u8fd9\u91cc\u8bf4\u660e\u4e00\u4e0b\uff1a\u9996\u5148 \\(j+t_j\\) \u6392\u5b8c\u5e8f\u540e\u5c31\u662f\u5355\u8c03\u7684\uff0c\u5bf9\u4e8e\u5f53\u524d\u5143\u7d20 \\(i\\) \u5c31\u53ef\u4ee5\u5feb\u901f\u627e\u51fa\u54ea\u4e9b\u5143\u7d20\u662f\u53ef\u4ee5\u53ef\u4ee5\u5bf9\u5176\u4ea7\u751f\u8d21\u732e\u7684\u3002\u53c8 \\(i\\) \u4e5f\u662f\u5355\u8c03\u7684\uff0c\u59cb\u7ec8\u6ee1\u8db3 \\(j+t_j \\leq i\\) \uff0c\u6240\u4ee5\u8fd9\u4e2a\u5143\u7d20\u90fd\u53ef\u80fd\u5bf9 \\(i\\) \u540e\u7684\u5143\u7d20\u4ea7\u751f\u8d21\u732e\uff0c\u5c31\u628a\u5b83\u52a0\u5165\u6811\u72b6\u6570\u7ec4\u3002\u90a3\u4e48\u5bf9\u4e8e\u5f53\u524d\u5143\u7d20 \\(i\\) \uff0c\u8981\u5bf9\u5b83\u4ea7\u751f\u8d21\u732e\u53ea\u5269\u4e0b \\(j \\leq i-t_i\\) \u8fd9\u4e00\u4e2a\u6761\u4ef6\u4e86\u3002\u56e0\u4e3a\u6811\u72b6\u6570\u7ec4\u7ef4\u62a4\u533a\u95f4 \\([1, o]\\) \u7684\u7279\u6027\uff0c\u6240\u4ee5\u52a0\u5165\u6811\u72b6\u6570\u7ec4\u7684\u65f6\u5019\u628a\u8282\u70b9\u7f16\u53f7\u548c\u5176\u5bf9\u5e94 \\(f\\) \u52a0\u8fdb\u53bb\uff0c\u67e5\u8be2 \\(i-t_i\\) \u5373\u53ef\u3002\u7279\u522b\u6ce8\u610f\uff0c\u8fd9\u91cc\u7684\u8d21\u732e\u4ecd\u7136\u662f<strong>\u987a\u5e8f<\/strong>\u7684\uff01\u4e0d\u8981\u50cf\u6211\u4e00\u6837\u72af\u50bb\uff0c\u56e0\u4e3a\u968f\u7740 \\(i\\) \u7684\u589e\u52a0\u624d\u4f1a\u6709\u66f4\u591a\u7684 \\(j+t_j \\leq i\\) \u6ee1\u8db3\uff01<\/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;algorithm&gt;\r\n\r\n#define _max(_a_,_b_) ((_a_)&gt;(_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\nstruct _node\r\n{\r\n\tint v,idx;\r\n\tbool operator &lt; (const _node&amp;o)const\r\n\t{\r\n\t\treturn v&lt;o.v;\r\n\t}\r\n}seg[1050505];\r\n\r\nint N;\r\nint t[1050505],a[1050505];\r\nlong long f[1050505],fsg[1050505];\r\n\r\n#define _lowbit(_o_) ((_o_)&amp;-(_o_))\r\ninline void update(register int o,const long long&amp;val)\r\n{\r\n\twhile(o&lt;=N)\r\n\t{\r\n\t\tfsg[o]=_max(fsg[o],val);\r\n\t\to+=_lowbit(o);\r\n\t}\r\n}\r\n\r\ninline long long query(register int o)\r\n{\r\n\tlong long ans=0;\r\n\twhile(o)\r\n\t{\r\n\t\tans=_max(ans,fsg[o]);\r\n\t\to-=_lowbit(o);\r\n\t}\r\n\treturn ans;\r\n}\r\n\r\nint main()\r\n{\r\n\t\/\/freopen(\"fc.in\",\"r\",stdin);freopen(\"fc.out\",\"w\",stdout);\r\n\tN=getnum();\r\n\tfor(register int i=1;i&lt;=N;i++)\r\n\t\tt[i]=getnum(),seg[i].idx=i,seg[i].v=t[i]+i;\r\n\tfor(register int i=1;i&lt;=N;i++)\r\n\t\ta[i]=getnum();\r\n\tstd::sort(&amp;seg[1],&amp;seg[N+1]);\r\n\t\r\n\tregister int j=1;\r\n\tlong long ans=0;\r\n\tfor(register int i=1;i&lt;=N;i++)\r\n\t{\r\n\t\tlong long tpans=0;\r\n\t\t\/*for(register int j=0;j&lt;i;j++)\r\n\t\t\tif((i&gt;=j+t[j]) &amp;&amp; (j&lt;=i-t[i]))\r\n\t\t\t\ttpans=_max(tpans,f[j]);*\/\r\n\t\t\r\n\t\twhile(j&lt;=N &amp;&amp; seg[j].v&lt;=i)\r\n\t\t\tupdate(seg[j].idx,f[seg[j].idx]),j++;\r\n\t\tif(i-t[i]&gt;=1)\r\n\t\t\ttpans=query(i-t[i]);\r\n\t\tf[i]=tpans+(long long)t[i]*a[i];\r\n\t\tans=_max(ans,f[i]);\r\n\t}\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>[FJWC2019 Day1] \u5168\u8fde \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a262144KB \u96be\u5ea6\uff1a \u9898 &hellip; <a href=\"https:\/\/cf.mnihyc.com\/blog\/archives\/971\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">[FJWC2019 Day1] \u5168\u8fde<\/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":[52,30,47],"tags":[],"class_list":["post-971","post","type-post","status-publish","format-standard","hentry","category-mediuma","category-otherdp","category-fenwicktree"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[FJWC2019 Day1] \u5168\u8fde - mnihyc&#039;s Blog<\/title>\n<meta name=\"description\" content=\"\u5168\u8fde \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a262144KB \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u4e24\u4e2a\u957f\u5ea6\u4e3a (n) \u7684\u5e8f\u5217 (a) \u548c (t)\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u9009\u62e9\u4e00\u4e9b\u5143\u7d20\u6784\u6210\u96c6\u5408 (S) \uff0c\u4f7f\u5f97 (sumlimits_{i in S}{a_i times t_i}) \u6700\u5927\u3002 \u540c\u65f6\uff0c\u96c6\u5408\" \/>\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\/971\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[FJWC2019 Day1] \u5168\u8fde - mnihyc&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u5168\u8fde \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a262144KB \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u4e24\u4e2a\u957f\u5ea6\u4e3a (n) \u7684\u5e8f\u5217 (a) \u548c (t)\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u9009\u62e9\u4e00\u4e9b\u5143\u7d20\u6784\u6210\u96c6\u5408 (S) \uff0c\u4f7f\u5f97 (sumlimits_{i in S}{a_i times t_i}) \u6700\u5927\u3002 \u540c\u65f6\uff0c\u96c6\u5408\" \/>\n<meta property=\"og:url\" content=\"https:\/\/0.mnihyc.com\/blog\/archives\/971\" \/>\n<meta property=\"og:site_name\" content=\"mnihyc&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-13T16:25:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-02-08T19:03:19+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=\"2 \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\/971#article\",\"isPartOf\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/971\"},\"author\":{\"name\":\"mnihyc\",\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"headline\":\"[FJWC2019 Day1] \u5168\u8fde\",\"datePublished\":\"2019-02-13T16:25:35+00:00\",\"dateModified\":\"2020-02-08T19:03:19+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/971\"},\"wordCount\":149,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751\"},\"articleSection\":[\"4.0 ~ 5.0\",\"\u5176\u4ed6\u7c7b\u578b\",\"\u6811\u72b6\u6570\u7ec4\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/0.mnihyc.com\/blog\/archives\/971#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/971\",\"url\":\"https:\/\/0.mnihyc.com\/blog\/archives\/971\",\"name\":\"[FJWC2019 Day1] \u5168\u8fde - mnihyc&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/mnihyc.com\/blog\/#website\"},\"datePublished\":\"2019-02-13T16:25:35+00:00\",\"dateModified\":\"2020-02-08T19:03:19+00:00\",\"description\":\"\u5168\u8fde \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a262144KB \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u4e24\u4e2a\u957f\u5ea6\u4e3a \\\\(n\\\\) \u7684\u5e8f\u5217 \\\\(a\\\\) \u548c \\\\(t\\\\)\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u9009\u62e9\u4e00\u4e9b\u5143\u7d20\u6784\u6210\u96c6\u5408 \\\\(S\\\\) \uff0c\u4f7f\u5f97 \\\\(\\\\sum\\\\limits_{i \\\\in S}{a_i \\\\times t_i}\\\\) \u6700\u5927\u3002 \u540c\u65f6\uff0c\u96c6\u5408\",\"breadcrumb\":{\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/971#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/0.mnihyc.com\/blog\/archives\/971\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/0.mnihyc.com\/blog\/archives\/971#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/mnihyc.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[FJWC2019 Day1] \u5168\u8fde\"}]},{\"@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":"[FJWC2019 Day1] \u5168\u8fde - mnihyc&#039;s Blog","description":"\u5168\u8fde \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a262144KB \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u4e24\u4e2a\u957f\u5ea6\u4e3a (n) \u7684\u5e8f\u5217 (a) \u548c (t)\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u9009\u62e9\u4e00\u4e9b\u5143\u7d20\u6784\u6210\u96c6\u5408 (S) \uff0c\u4f7f\u5f97 (sumlimits_{i in S}{a_i times t_i}) \u6700\u5927\u3002 \u540c\u65f6\uff0c\u96c6\u5408","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\/971","og_locale":"zh_CN","og_type":"article","og_title":"[FJWC2019 Day1] \u5168\u8fde - mnihyc&#039;s Blog","og_description":"\u5168\u8fde \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a262144KB \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u4e24\u4e2a\u957f\u5ea6\u4e3a (n) \u7684\u5e8f\u5217 (a) \u548c (t)\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u9009\u62e9\u4e00\u4e9b\u5143\u7d20\u6784\u6210\u96c6\u5408 (S) \uff0c\u4f7f\u5f97 (sumlimits_{i in S}{a_i times t_i}) \u6700\u5927\u3002 \u540c\u65f6\uff0c\u96c6\u5408","og_url":"https:\/\/0.mnihyc.com\/blog\/archives\/971","og_site_name":"mnihyc&#039;s Blog","article_published_time":"2019-02-13T16:25:35+00:00","article_modified_time":"2020-02-08T19:03:19+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":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/0.mnihyc.com\/blog\/archives\/971#article","isPartOf":{"@id":"https:\/\/0.mnihyc.com\/blog\/archives\/971"},"author":{"name":"mnihyc","@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"headline":"[FJWC2019 Day1] \u5168\u8fde","datePublished":"2019-02-13T16:25:35+00:00","dateModified":"2020-02-08T19:03:19+00:00","mainEntityOfPage":{"@id":"https:\/\/0.mnihyc.com\/blog\/archives\/971"},"wordCount":149,"commentCount":0,"publisher":{"@id":"https:\/\/mnihyc.com\/blog\/#\/schema\/person\/61e167d6d591fdd20dcfee2cf848a751"},"articleSection":["4.0 ~ 5.0","\u5176\u4ed6\u7c7b\u578b","\u6811\u72b6\u6570\u7ec4"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/0.mnihyc.com\/blog\/archives\/971#respond"]}]},{"@type":"WebPage","@id":"https:\/\/0.mnihyc.com\/blog\/archives\/971","url":"https:\/\/0.mnihyc.com\/blog\/archives\/971","name":"[FJWC2019 Day1] \u5168\u8fde - mnihyc&#039;s Blog","isPartOf":{"@id":"https:\/\/mnihyc.com\/blog\/#website"},"datePublished":"2019-02-13T16:25:35+00:00","dateModified":"2020-02-08T19:03:19+00:00","description":"\u5168\u8fde \u65f6\u95f4\u9650\u5236\uff1a1000MS \u00a0\u00a0\u00a0\u00a0 \u5185\u5b58\u9650\u5236\uff1a262144KB \u96be\u5ea6\uff1a \u9898\u76ee\u63cf\u8ff0 \u7ed9\u5b9a\u4e24\u4e2a\u957f\u5ea6\u4e3a \\(n\\) \u7684\u5e8f\u5217 \\(a\\) \u548c \\(t\\)\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u9009\u62e9\u4e00\u4e9b\u5143\u7d20\u6784\u6210\u96c6\u5408 \\(S\\) \uff0c\u4f7f\u5f97 \\(\\sum\\limits_{i \\in S}{a_i \\times t_i}\\) \u6700\u5927\u3002 \u540c\u65f6\uff0c\u96c6\u5408","breadcrumb":{"@id":"https:\/\/0.mnihyc.com\/blog\/archives\/971#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/0.mnihyc.com\/blog\/archives\/971"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/0.mnihyc.com\/blog\/archives\/971#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/mnihyc.com\/blog"},{"@type":"ListItem","position":2,"name":"[FJWC2019 Day1] \u5168\u8fde"}]},{"@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\/971","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=971"}],"version-history":[{"count":0,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/posts\/971\/revisions"}],"wp:attachment":[{"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/media?parent=971"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/categories?post=971"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cf.mnihyc.com\/blog\/wp-json\/wp\/v2\/tags?post=971"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}