{"id":3744,"date":"2023-10-29T12:34:12","date_gmt":"2023-10-29T04:34:12","guid":{"rendered":"https:\/\/white-night.club\/?p=3744"},"modified":"2023-11-09T11:07:45","modified_gmt":"2023-11-09T03:07:45","slug":"ad108","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/10\/29\/ad108\/","title":{"rendered":"2480.\u00a0\u5f62\u6210\u5316\u5b66\u952e"},"content":{"rendered":"\n<p>\u8868:&nbsp;<code>Elements<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">+-------------+---------+\n| Column Name | Type    |\n+-------------+---------+\n| symbol      | varchar |\n| type        | enum    |\n| electrons   | int     |\n+-------------+---------+\nsymbol \u662f\u8be5\u8868\u7684\u4e3b\u952e(\u5177\u6709\u552f\u4e00\u503c\u7684\u5217)\u3002\n\u8be5\u8868\u7684\u6bcf\u4e00\u884c\u5305\u542b\u4e00\u4e2a\u5143\u7d20\u7684\u4fe1\u606f\u3002\ntype \u662f ENUM&nbsp;\u7c7b\u578b\uff0c\u5b83\u7684\u503c\u662f ('Metal', 'Nonmetal', 'Noble') \u4e4b\u4e00\n - \u5982\u679c type \u662f Noble, electrons \u662f 0\u3002\n - \u5982\u679c type \u662f Metal, electrons \u662f\u8fd9\u79cd\u5143\u7d20\u7684\u4e00\u4e2a\u539f\u5b50\u6240\u80fd\u7ed9\u51fa\u7684\u7535\u5b50\u6570\u3002\n - \u5982\u679c type \u662f Nonmetal, electrons \u8fd9\u79cd\u5143\u7d20\u7684\u4e00\u4e2a\u539f\u5b50\u6240\u9700\u8981\u7684\u7535\u5b50\u6570\u3002\n<\/pre>\n\n\n\n<p>\u5982\u679c\u4e00\u4e2a\u5143\u7d20\u662f&nbsp;<code>'Metal'<\/code>\uff0c\u53e6\u5916\u4e00\u4e2a\u5143\u7d20\u662f&nbsp;<code>'Nonmetal'<\/code>&nbsp;\uff0c\u90a3\u4e48\u5b83\u4eec\u53ef\u4ee5\u5f62\u6210\u952e\u3002<\/p>\n\n\n\n<p>\u7f16\u5199\u4e00\u4e2a\u89e3\u51b3\u65b9\u6848\u627e\u51fa\u6240\u6709\u53ef\u4ee5\u5f62\u6210\u952e\u7684\u5143\u7d20\u5bf9\u3002<\/p>\n\n\n\n<p>\u4ee5&nbsp;<strong>\u4efb\u610f\u987a\u5e8f&nbsp;<\/strong>\u8fd4\u56de\u7ed3\u679c\u8868\u3002<\/p>\n\n\n\n<p>\u67e5\u8be2\u7ed3\u679c\u683c\u5f0f\u5982\u4e0b\u6240\u793a\u3002<\/p>\n\n\n\n<p><strong>\u793a\u4f8b 1:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><strong>\u8f93\u5165:<\/strong> \nElements \u8868:\n+--------+----------+-----------+\n| symbol | type     | electrons |\n+--------+----------+-----------+\n| He     | Noble    | 0         |\n| Na     | Metal    | 1         |\n| Ca     | Metal    | 2         |\n| La     | Metal    | 3         |\n| Cl     | Nonmetal | 1         |\n| O      | Nonmetal | 2         |\n| N      | Nonmetal | 3         |\n+--------+----------+-----------+\n<strong>\u8f93\u51fa:<\/strong> \n+-------+----------+\n| metal | nonmetal |\n+-------+----------+\n| La    | Cl       |\n| Ca    | Cl       |\n| Na    | Cl       |\n| La    | O        |\n| Ca    | O        |\n| Na    | O        |\n| La    | N        |\n| Ca    | N        |\n| Na    | N        |\n+-------+----------+\n<strong>\u89e3\u91ca:<\/strong> \nMetal \u5143\u7d20\u5305\u62ec La, Ca, and Na.\nNonmeal \u5143\u7d20\u5305\u62ec Cl, O, and N.\n\u6bcf\u4e2a Metal \u5143\u7d20\u4e0e\u8f93\u51fa\u8868\u4e2d\u7684 Nonmeal \u5143\u7d20\u914d\u5bf9\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>\u81ea\u8054\u7ed3<\/em><\/cite><\/blockquote>\n\n\n\n<p>\u7b80\u5355\u7684\u81ea\u8054\u7ed3\u9898\uff0c\u6ca1\u5565\u597d\u8bf4\u7684\u3002\u611f\u89c9\u6162\u6162\u5730\u80fd\u6478\u6e05\u695a\u81ea\u8054\u7ed3\u5728\u4ec0\u4e48\u5730\u65b9\u7528\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Write your MySQL query statement below\r\nSELECT A.symbol AS metal,B.symbol AS nonmetal\r\nFROM Elements AS A \r\nJOIN Elements AS B \r\nON A.type='Metal' AND B.type='nonmetal'<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Leetcode\u9898\u76ee\uff1a\u81ea\u8054\u7ed3<\/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\/3744"}],"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=3744"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/3744\/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=3744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=3744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=3744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}