{"id":299,"date":"2019-04-08T10:49:32","date_gmt":"2019-04-08T02:49:32","guid":{"rendered":"https:\/\/www.caiqinyi.cn\/?p=299"},"modified":"2021-04-24T16:23:28","modified_gmt":"2021-04-24T08:23:28","slug":"center","status":"publish","type":"post","link":"https:\/\/www.caiqinyi.cn\/index.php\/2019\/04\/08\/center\/","title":{"rendered":"\u5de6\u79fb16\u4f4d\u7684\u5999\u7528"},"content":{"rendered":"<p>\u5728\u8ba1\u7b97\u4e2d\u70b9\u65f6\u770b\u5230\u4e00\u4e2a\u628a\u5750\u6807\u70b9x, y\u5206\u91cf\u76f8\u52a0\u518d\u5de6\u79fb16\u4f4d\u7684\u795e\u5947\u64cd\u4f5c~<\/p>\n<p><!--more--><\/p>\n<p>\u6765\u81ea<a href=\"https:\/\/leetcode.com\/problems\/minimum-area-rectangle-ii\/discuss\/210786\/C%2B%2B-with-picture-find-diagonals-O(n-*-n)\">LeetCode 963. Minimum Area Rectangle II<\/a><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"C++\" data-enlighter-theme=\"monokai\">\r\nauto center = ((size_t)(x1 + y1) << 16) + x2 + y2;\r\n<\/pre>\n<p>\u6211\u5bf9\u8fd9\u91cc\u7684\u7406\u89e3\u662f, \u4f5c\u8005\u6e05\u695a\u6bcf\u4e00\u4e2a\u5750\u6807\u5206\u91cf\u90fd\u4e0d\u4f1a\u7528\u8d85\u8fc716\u4e2a\u4f4d\u53bb\u5b58\u50a8, \u6240\u4ee5\u5c06\u5176\u4e2d\u4e00\u4e2a\u5750\u6807\u5206\u91cf\u76f8\u52a0\u4ee5\u540e\u5de6\u79fb16\u4f4d\u653e\u81f3\u9ad8\u4f4d, \u800c\u4f4e\u4f4d16\u4f4d\u5219\u7528\u6765\u653e\u7f6e\u53e6\u5916\u4e00\u4e2a\u5750\u6807\u7684\u5206\u91cf\u548c, \u4ece\u800c\u8fbe\u5230\u5c06\u4e24\u4e2a\u5750\u6807\u70b9\u538b\u7f29\u4e3a\u4e00\u4e2a\u6574\u6570\u7684\u6548\u679c, \u6709\u70b9\u7c7b\u4f3c\u6784\u9020\u4e86\u4e00\u4e2a\u54c8\u5e0c\u51fd\u6570.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u8ba1\u7b97\u4e2d\u70b9\u65f6\u770b\u5230\u4e00\u4e2a\u628a\u5750\u6807\u70b9x, y\u5206\u91cf\u76f8\u52a0\u518d\u5de6\u79fb16\u4f4d\u7684\u795e\u5947\u64cd\u4f5c~<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/299"}],"collection":[{"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/comments?post=299"}],"version-history":[{"count":5,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/299\/revisions"}],"predecessor-version":[{"id":767,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/posts\/299\/revisions\/767"}],"wp:attachment":[{"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/media?parent=299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/categories?post=299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.caiqinyi.cn\/index.php\/wp-json\/wp\/v2\/tags?post=299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}