{"id":5,"date":"2016-10-04T13:35:18","date_gmt":"2016-10-04T13:35:18","guid":{"rendered":"http:\/\/www.haoyuan.info\/?p=5"},"modified":"2016-10-20T03:38:09","modified_gmt":"2016-10-20T03:38:09","slug":"5","status":"publish","type":"post","link":"https:\/\/haoyuan.info\/?p=5","title":{"rendered":"\u7b2c\u4e00\u6b21C\u8bed\u8a00\u7ec3\u4e60\u8d5b\u7b2c20\u9898\u4ee3\u7801\u5b9e\u73b0"},"content":{"rendered":"<p>[hide]<\/p>\n<h3>\u4e4b\u524d\u633a\u591a\u4eba\u88ab\u8fd9\u9053\u9898\u5361\u7740\uff0c\u6211\u5927\u6982\u8c03\u6574\u4e86\u4e00\u4e0b\u4ee3\u7801\uff0c\u73b0\u5728\u6302\u5728\u7f51\u7ad9\u4e0a<\/h3>\n<p>\u7b2c\u4e00\u79cd\u65b9\u6cd5\uff1a<\/p>\n<p>[code lang=&#8221;c&#8221;]#include &lt;stdio.h&gt;<br \/>\nvoid ftime(int num,int fcount)<br \/>\n{<br \/>\n    if(num=1)<br \/>\n    {<br \/>\n        printf(&quot;%d\\n&quot;,(fcount+1)*20);<br \/>\n    }<br \/>\n    else<br \/>\n    {<br \/>\n        ftime(num\/2,++fcount);<br \/>\n    }<br \/>\n}<br \/>\nint main()<br \/>\n{<br \/>\n    int a;<br \/>\n    while(scanf(&quot;%d&quot;,a)!=EOF)<br \/>\n    {<br \/>\n        ftime(a,0);<br \/>\n    }<br \/>\nreturn 0;<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u662f\u9488\u5bf9\u4e00\u6b21\u8f93\u5165\u4e00\u6b21\u8f93\u51fa\u7684\u3002\u5018\u82e5\u5b58\u5728\u672a\u77e5\u6570\u91cf\u7684\u8f93\u5165\uff0c\u5e94\u8be5\u7528\u4ee5\u4e0b\u4ee3\u7801\u3002<\/p>\n<h3>\u7b2c\u4e8c\u79cd\u65b9\u6cd5<\/h3>\n<p>&nbsp;<\/p>\n<p>[code lang=&#8221;c&#8221;]<br \/>\n#include &lt;stdio.h&gt;<br \/>\nvoid ftime(int num,int fcount)<br \/>\n{<br \/>\n    if(num&lt;=1)<br \/>\n    {<br \/>\n        printf(&quot;%d\\n&quot;,(fcount+1)*20);<br \/>\n    }<br \/>\n    else<br \/>\n    {<br \/>\n        ftime(num\/2,++fcount);<br \/>\n    }<br \/>\n}<br \/>\nint main()<br \/>\n{<br \/>\n    int num[100000],count=0,i=0;<br \/>\n    while(scanf(&quot;%d&quot;,&amp;num[count])!=EOF)<br \/>\n    {<br \/>\n        count++;<br \/>\n    }<br \/>\n    for(i=0;i&lt;count;i++)<br \/>\n    {<br \/>\n        ftime(num[i],0);<br \/>\n    }<br \/>\n    return 0;<br \/>\n}<\/p>\n<p>[\/code]<br \/>\n[\/hide]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[hide] \u4e4b\u524d\u633a\u591a\u4eba\u88ab\u8fd9\u9053\u9898\u5361\u7740\uff0c\u6211\u5927\u6982\u8c03\u6574\u4e86\u4e00\u4e0b\u4ee3\u7801\uff0c\u73b0\u5728\u6302\u5728\u7f51\u7ad9\u4e0a \u7b2c\u4e00\u79cd\u65b9\u6cd5\uff1a [code lang [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false},"categories":[1],"tags":[],"class_list":["post-5","post","type-post","status-publish","format-standard","hentry","category-1"],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s8UC2c-5","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/posts\/5","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haoyuan.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5"}],"version-history":[{"count":16,"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions"}],"predecessor-version":[{"id":62,"href":"https:\/\/haoyuan.info\/index.php?rest_route=\/wp\/v2\/posts\/5\/revisions\/62"}],"wp:attachment":[{"href":"https:\/\/haoyuan.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haoyuan.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haoyuan.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}