{"id":3794,"date":"2023-10-31T11:08:23","date_gmt":"2023-10-31T03:08:23","guid":{"rendered":"https:\/\/white-night.club\/?p=3794"},"modified":"2023-11-09T11:07:44","modified_gmt":"2023-11-09T03:07:44","slug":"ad114","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/10\/31\/ad114\/","title":{"rendered":"2026.\u00a0\u4f4e\u8d28\u91cf\u7684\u95ee\u9898"},"content":{"rendered":"\n<p>\u8868\uff1a&nbsp;<code>Problems<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">+-------------+------+\n| \u5217\u540d         | \u7c7b\u578b |\n+-------------+------+\n| problem_id  | int  |\n| likes       | int  |\n| dislikes    | int  |\n+-------------+------+\n\u5728 SQL \u4e2d\uff0cproblem_id \u662f\u8fd9\u5f20\u8868\u7684\u4e3b\u952e\u3002\n\u8be5\u8868\u7684\u6bcf\u4e00\u884c\u90fd\u8868\u793a\u4e00\u4e2a\u529b\u6263\u95ee\u9898\u7684\u559c\u6b22\u548c\u4e0d\u559c\u6b22\u7684\u6570\u91cf\u3002\n<\/pre>\n\n\n\n<p>\u627e\u51fa&nbsp;<strong>\u4f4e\u8d28\u91cf&nbsp;<\/strong>\u95ee\u9898\u7684 ID \u96c6\u5408\u3002\u5982\u679c\u4e00\u4e2a\u529b\u6263\u95ee\u9898\u7684\u559c\u6b22\u7387\uff08\u559c\u6b22\u6570\u9664\u4ee5\u603b\u6295\u7968\u6570\uff09<strong>\u4e25\u683c\u4f4e\u4e8e&nbsp;<\/strong><code>60%<\/code><strong>&nbsp;<\/strong>\uff0c\u5219\u8be5\u95ee\u9898\u4e3a<strong>\u4f4e\u8d28\u91cf<\/strong>\u95ee\u9898\u3002<\/p>\n\n\n\n<p>\u6309&nbsp;<code>problem_id<\/code>&nbsp;\u5347\u5e8f\u6392\u5217\u8fd4\u56de\u7ed3\u679c\u8868\u3002<\/p>\n\n\n\n<p>\u7ed3\u679c\u8868\u7684\u683c\u5f0f\u5982\u4e0b\u4f8b\u6240\u793a\u3002<\/p>\n\n\n\n<p><strong>\u793a\u4f8b&nbsp;1:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u8f93\u5165:<\/strong> \nProblems \u8868:\n+------------+-------+----------+\n| problem_id | likes | dislikes |\n+------------+-------+----------+\n| 6          | 1290  | 425      |\n| 11         | 2677  | 8659     |\n| 1          | 4446  | 2760     |\n| 7          | 8569  | 6086     |\n| 13         | 2050  | 4164     |\n| 10         | 9002  | 7446     |\n+------------+-------+----------+\n<strong>\u8f93\u51fa:<\/strong> \n+------------+\n| problem_id |\n+------------+\n| 7          |\n| 10         |\n| 11         |\n| 13         |\n+------------+\n<strong>\u89e3\u91ca:<\/strong> \u559c\u6b22\u7684\u6bd4\u7387\u5982\u4e0b:\n- \u95ee\u9898 1: (4446 \/ (4446 + 2760)) * 100 = 61.69858%\n- \u95ee\u9898 6: (1290 \/ (1290 + 425)) * 100 = 75.21866%\n- \u95ee\u9898 7: (8569 \/ (8569 + 6086)) * 100 = 58.47151%\n- \u95ee\u9898 10: (9002 \/ (9002 + 7446)) * 100 = 54.73006%\n- \u95ee\u9898 11: (2677 \/ (2677 + 8659)) * 100 = 23.61503%\n- \u95ee\u9898 13: (2050 \/ (2050 + 4164)) * 100 = 32.99002%\n\u95ee\u9898 7, 10, 11, \u548c 13 \u662f\u4f4e\u8d28\u91cf\u95ee\u9898\uff0c\u56e0\u4e3a\u5b83\u4eec\u7684\u540c\u7c7b\u767e\u5206\u6bd4\u4f4e\u4e8e60%\u3002<\/pre>\n\n\n\n<div style=\"height:60px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<blockquote class=\"wp-block-quote has-luminous-vivid-amber-color has-text-color\">\n<p>\u89e3\u9898\u601d\u8def<\/p>\n<cite><em>\u6478\u9c7c\u9898<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u6bd4\u8f83\u7b80\u5355\u7684SQL\u9898\uff0c\u4e25\u683c\u5927\u4e8e\u6307\u7684\u5c31\u662f\u5927\u4e8e\u4f46\u4e0d\u7b49\u4e8e\u5427\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Write your MySQL query statement below\r\nSELECT problem_id\r\nFROM Problems\r\nWHERE (likes\/(likes+dislikes)*100)&lt;60\r\nORDER BY problem_id ASC<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Leetcode\u9898\u76ee\uff1a\u6478\u9c7c\u9898<\/p>\n","protected":false},"author":1,"featured_media":2827,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[42,25],"tags":[38],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/3794"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=3794"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/3794\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/2827"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=3794"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=3794"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=3794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}