{"id":78478,"date":"2019-03-25T12:17:08","date_gmt":"2019-03-25T04:17:08","guid":{"rendered":"https:\/\/www.lixiangluntan.com\/78478.html"},"modified":"2019-03-25T12:17:08","modified_gmt":"2019-03-25T04:17:08","slug":"%e5%ae%9d%e5%a1%94%e7%ba%bf_%e5%88%86%e6%9e%90%e5%ae%b6%e5%85%ac%e5%bc%8f%e7%bd%91","status":"publish","type":"post","link":"https:\/\/www.lixiangluntan.com\/?p=78478","title":{"rendered":"\u5b9d\u5854\u7ebf_\u5206\u6790\u5bb6\u516c\u5f0f\u7f51"},"content":{"rendered":"<blockquote style=\"font-size:15px;background-color: #F5F5F5;border:none;padding: 5px;margin:15px;line-height: 1.6;text-indent: 2em;\">\n<p style=\"margin-bottom:5px;\">\u4eca\u5929\u4e3a\u8dcc\u5e45\u8d85\u8fc75%\u7684\u9634\u7ebf\uff0c\u6628\u5929\u4e5f\u662f\u9634\u7ebf\uff0c\u524d\u5929\u4e5f\u662f\u9634\u7ebf<\/p>\n<p>\u4eca\u5929\u4e3a\u8dcc\u5e45\u8d85\u8fc75%\u7684\u9634\u7ebf\uff0c\u6628\u5929\u4e5f\u662f\u9634\u7ebf\uff0c\u524d\u5929\u4e5f\u662f\u9634\u7ebf<\/p>\n<\/blockquote>\n<blockquote style=\"font-size:15px;background-color: #F5F5F5;border:none;padding: 5px;margin:15px;line-height: 1.6;text-indent: 2em;\">\n<p style=\"margin-bottom:5px;\">\u3010\u80a1\u7968\u8d44\u6e90\u9986\u3011\u4e1c\u65b9\u8d22\u5bccL2\u51b3\u7b56\u7834\u89e3\u7248,\u4e1c\u65b9\u8d22\u5bcc\u7f51,\u4e1c\u65b9\u8d22\u5bcc\u6295\u8d44\u5927\u5e08\u7834\u89e3\u7248,\u4e1c\u65b9\u8d22\u5bcc\u5148\u950b\u7248\u7834\u89e3,\u4e1c\u65b9\u8d22\u5bcc\u9886\u822a\u7248\u7834\u89e3,\u540c\u82b1\u987a\u8fdc\u822a\u7248\u7834\u89e3,\u540c\u82b1\u987a\u8d22\u5bcc\u5148\u950b\u7834\u89e3,\u540c\u82b1\u987aL2\u7834\u89e3\u3002<\/p>\n<\/blockquote>\n<p class=\"nr1\"><script type=\"text\/javascript\" src=\"\/about\/guanzhu.js\"><\/script> <\/p>\n<p style=\"color:red\">\u7f16\u5199\u6761\u4ef6\uff1a<\/p>\n<\/p>\n<p style=\"color:red\">\u7f16\u5199\u65b9\u6cd5\uff1a<\/p>\n<p><span style=\"color: rgb(255, 0, 0); \">&nbsp;\u7f51\u53cb\u6c42\u52a9\uff1a<\/span><\/p>\n<div>\n \u8bf7\u95ee\u98de\u72d0\u8f6f\u4ef6\u7684\u5b9d\u5854\u7ebf\u662f\u5982\u4f55\u5199\u51fa\u6765\u7684\uff1f\u7f16\u5199\u516c\u5f0f\u662f\u600e\u4e48\u7684\uff1f\n<\/div>\n<div>\n &nbsp;\n<\/div>\n<div>\n <span style=\"color: rgb(255, 0, 0); \">\u89e3\u7b54\u5982\u4e0b\uff1a<\/span>\n<\/div>\n<div>\n INPUT:n(5,1,999),k(1,0,1);\/\/n\u4e3a\u5747\u7ebf\u53c2\u6570\uff1bk=0\u53d6\u6d88\u753b\u56fe\u6807\u548c\u5747\u7ebf<br \/>\n <br \/> fc:=c;fo:=o;hh:=0*c;ll:=0*c;rr:=0*c;tj:=0*c;<br \/>\n <br \/> tj[1]:=if(fc[1]&gt;=fo[1],1,0);<br \/>\n <br \/> hh[1]:=max(fc[1],fo[1]);<br \/>\n <br \/> ll[1]:=min(fc[1],fo[1]);<br \/>\n <br \/> rr[1]:=fo[1];<br \/>\n <br \/> for i=2 to datacount do begin<br \/>\n <br \/> if tj[i-1]=1 then begin<br \/>\n <br \/> if fc[i]&gt;=rr[i-1] then begin<br \/>\n <br \/> tj[i]:=1;<br \/>\n <br \/> hh[i]:=max(fc[i],hh[i-1]);<br \/>\n <br \/> ll[i]:=min(fc[i],hh[i-1]);<br \/>\n <br \/> rr[i]:=ll[i];<br \/>\n <br \/> end; else begin<br \/>\n <br \/> tj[i]:=0;<br \/>\n <br \/> hh[i]:=hh[i-1];<br \/>\n <br \/> ll[i]:=fc[i];<br \/>\n <br \/> rr[i]:=rr[i-1];<br \/>\n <br \/> end;<br \/>\n <br \/> end; else begin<br \/>\n <br \/> if fc[i]&lt;=rr[i-1] then begin<br \/>\n <br \/> tj[i]:=0;<br \/>\n <br \/> hh[i]:=max(fc[i],ll[i-1]);<br \/>\n <br \/> ll[i]:=min(fc[i],ll[i-1]);<br \/>\n <br \/> rr[i]:=hh[i];<br \/>\n <br \/> end; else begin<br \/>\n <br \/> tj[i]:=1;<br \/>\n <br \/> hh[i]:=fc[i];<br \/>\n <br \/> ll[i]:=ll[i-1];<br \/>\n <br \/> rr[i]:=rr[i-1];<br \/>\n <br \/> end;<br \/>\n <br \/> end;<br \/>\n <br \/> end;<br \/>\n <br \/> STICKLINE(tj=1,hh,ll,7,1),COLORRED;<br \/>\n <br \/> STICKLINE(tj=0,hh,ll,7,0),COLORCYAN;<br \/>\n <br \/> STICKLINE(ref(tj=0,1) and tj=1,rr,ll,7,0),COLORCYAN;<br \/>\n <br \/> STICKLINE(ref(tj=1,1) and tj=0,rr,hh,7,1),COLORRED;<br \/>\n <br \/> \u4e09\u5e73\u5e95\u7ffb\u7ea2:tj=1 and ref(tj=0,1) and ref(tj=0,2) and ll=ref(ll,1) and ll=ref(ll,2),LINETHICK,COLORRED;<br \/>\n <br \/> \u4e09\u5e73\u9876\u7ffb\u7eff:tj=0 and ref(tj=1,1) and ref(tj=1,2) and hh=ref(hh,1) and hh=ref(hh,2),LINETHICK,COLORGREEN;<br \/>\n <br \/> if k=0 then exit;<br \/>\n <br \/> DRAWICON(\u4e09\u5e73\u5e95\u7ffb\u7ea2,ll*0.98,4);DRAWICON(\u4e09\u5e73\u9876\u7ffb\u7eff,hh*1.02,5);<br \/>\n <br \/> \u5747\u7ebf:ma(c,n),COLORMAGENTA;PARTLINE(\u5747\u7ebf&lt;=ref(\u5747\u7ebf,1),\u5747\u7ebf),COLORGREEN;\n<\/div>\n<p>&nbsp;<\/p>\n<p>{\u80a1\u7968\u8d44\u6e90\u9986:www.lixiangluntan.com\u4e13\u4e1a\u548c\u8c10\u9ad8\u7aef\u7092\u80a1\u8f6f\u4ef6--\u516c\u5f0f\u7f16\u5199\u4ea4\u6d41--\u52a0QQ751161480--}<\/p>\n<blockquote style=\"font-size:15px;background-color: #F5F5F5;border:none;padding: 5px;margin:15px;line-height: 1.6;text-indent: 2em;\">\n<p style=\"margin-bottom:5px;\">\u3010\u80a1\u7968\u8d44\u6e90\u9986\u3011\u540c\u82b1\u987a\u5b9e\u65f6\u6e2f\u80a1\u7834\u89e3,\u540c\u82b1\u987a\u8d22\u5bcc\u4e3b\u529b\u7834\u89e3,\u5927\u667a\u6167\u8d22\u5bcc\u7834\u89e3\u7248,\u901a\u8fbe\u4fe1\u8d22\u5bcc\u7834\u89e3\u7248,\u901a\u8fbe\u4fe1\u4e13\u4e1a\u7248\u7834\u89e3,\u901a\u8fbe\u4fe1\u7814\u7a76\u7248\u7834\u89e3,\u901a\u8fbe\u4fe1\u8d85\u8d62\u7248\u7834\u89e3,\u80a1\u7968\u516c\u5f0f,\u80a1\u7968\u6307\u6807\u516c\u5f0f,\u80a1\u7968\u516c\u5f0f\u5927\u5168,\u6307\u5357\u9488\u8f6f\u4ef6\u7834\u89e3,\u7092\u80a1\u4e66\u7c4d,k\u7ebf\u56fe\u600e\u4e48\u770b,\u80a1\u7968k\u7ebf\u56fe,\u3002<\/p>\n<\/blockquote>\n<blockquote style=\"font-size:15px;background-color: #F5F5F5;border:none;padding: 5px;margin:15px;line-height: 1.6;text-indent: 2em;\">\n<p style=\"margin-bottom:5px;\">\u9633\u7ebf\u540e\u7684 \u56de\u8c03\u70b9<\/p>\n<p>\u9633\u7ebf\u540e\u7684 \u56de\u8c03\u70b9<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9d\u5854\u7ebf<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[179],"tags":[180],"class_list":["post-78478","post","type-post","status-publish","format-standard","hentry","category-gsbxdy","tag-180"],"_links":{"self":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/78478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78478"}],"version-history":[{"count":0,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=\/wp\/v2\/posts\/78478\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lixiangluntan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}