{"id":420,"date":"2009-05-25T19:23:00","date_gmt":"2009-05-25T11:23:00","guid":{"rendered":""},"modified":"2013-11-12T10:33:59","modified_gmt":"2013-11-12T02:33:59","slug":"%e4%b8%80%e4%b8%aa%e5%a5%b3%e7%a8%8b%e5%ba%8f%e5%91%98%e5%86%99%e7%9a%84%e7%bb%8f%e5%85%b8%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/420.html","title":{"rendered":"\u4e00\u4e2a\u5973\u7a0b\u5e8f\u5458\u5199\u7684\u7ecf\u5178\u4ee3\u7801"},"content":{"rendered":"<div>\n<pre>result love(boy, girl)\r\n{<\/pre>\n<p>if<\/p>\n<pre>( boy.\u6709\u623f() and boy.\u6709\u8f66() )\r\n    {\r\n        boy.set(nothing);<\/pre>\n<p>return<\/p>\n<pre> girl.\u5ac1\u7ed9(boy);\r\n    }<\/pre>\n<p>if<\/p>\n<pre>( girl.\u613f\u610f\u7b49() )\r\n    {<\/pre>\n<p>while<\/p>\n<pre>(!(boy.\u8d5a\u94b1 &gt; 100,000 and girl.\u611f\u60c5 &gt; 8 ) )\r\n    {<\/pre>\n<p>for<\/p>\n<pre>( day=1; day &lt;=365; day++)\r\n        {<\/pre>\n<p>if<\/p>\n<pre>( day == \u60c5\u4eba\u8282 )<\/pre>\n<p>if<\/p>\n<pre>( boy.givegirl(\u73ab\u7470) )\r\n                girl.\u611f\u60c5++;<\/pre>\n<p>else<\/p>\n<pre>                girl.\u611f\u60c5--;<\/pre>\n<p>if<\/p>\n<pre>( day == girl.\u751f\u65e5 )<\/pre>\n<p>if<\/p>\n<pre>( boy.givegirl(\u73ab\u7470) )\r\n            {\r\n                girl.\u611f\u60c5++;<\/pre>\n<p>else<\/p>\n<pre>                girl.\u611f\u60c5--;\r\n                boy.\u62fc\u547d\u8d5a\u94b1();\r\n            }\r\n        }<\/pre>\n<p>if<\/p>\n<pre>( boy.\u6709\u623f() and boy.\u6709\u8f66() )\r\n        {\r\n            boy.set(nothing);<\/pre>\n<p>return<\/p>\n<pre> girl.\u5ac1\u7ed9(boy);\r\n        }\r\n        \u5e74\u9f84++;\r\n        girl.\u611f\u60c5--;\r\n    }<\/pre>\n<p>return<\/p>\n<pre> girl.<\/pre>\n<p>goto<\/p>\n<pre>( another_boy);\r\n}<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>result love(boy, girl) { if ( boy.\u6709\u623f() and boy.\u6709\u8f66() ) { [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-420","post","type-post","status-publish","format-standard","hentry","category-default"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=420"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/420\/revisions"}],"predecessor-version":[{"id":3669,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/420\/revisions\/3669"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}