{"id":411,"date":"2020-04-29T13:02:22","date_gmt":"2020-04-29T05:02:22","guid":{"rendered":"http:\/\/www.zyhcoding.club\/?p=411"},"modified":"2020-04-29T13:02:34","modified_gmt":"2020-04-29T05:02:34","slug":"%e5%8d%8a%e6%95%b0%e5%8d%95%e9%9b%86%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"http:\/\/www.zyhcoding.club\/index.php\/2020\/04\/29\/%e5%8d%8a%e6%95%b0%e5%8d%95%e9%9b%86%e9%97%ae%e9%a2%98\/","title":{"rendered":"\u534a\u6570\u5355\u96c6\u95ee\u9898"},"content":{"rendered":"<h4><a href=\"https:\/\/acm.njupt.edu.cn\/problem\/NOJ1211\/editor\">\u534a\u6570\u5355\u96c6\u95ee\u9898 NOJ1211<\/a><\/h4>\n<pre><code class=\"language-c++\">#include &lt;iostream&gt;\nusing namespace std;\ntypedef long long ll;\nint n;\nll dp[1005];\nll rep[1005];\nint main(){\n    dp[0] = 0;\n    for (int i=1;i&lt;=1000;i++){\n        dp[i] = 1;\n        for (int j=1;j&lt;=i\/2;j++){\n            dp[i] += dp[j];\n            if( ( j&gt;10) &amp;&amp; (2*(j\/10) &lt;= j%10) )\n                dp[i] -= dp[j\/10];\n        }\n    }\n    while (cin &gt;&gt; n){\n        if (n==0)   break;\n        cout &lt;&lt; dp[n] &lt;&lt; endl;\n    }\n    return 0;\n}\n\n\/\/1981471878\n\/\/1935307970<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u534a\u6570\u5355\u96c6\u95ee\u9898 NOJ1211 #include &lt;iostream&gt; using nam [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[],"_links":{"self":[{"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/posts\/411"}],"collection":[{"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/comments?post=411"}],"version-history":[{"count":1,"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/posts\/411\/revisions"}],"predecessor-version":[{"id":412,"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/posts\/411\/revisions\/412"}],"wp:attachment":[{"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/media?parent=411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/categories?post=411"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zyhcoding.club\/index.php\/wp-json\/wp\/v2\/tags?post=411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}