mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
78 lines
6.2 KiB
JSON
78 lines
6.2 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "1425",
|
|
"questionFrontendId": "1294",
|
|
"boundTopicId": null,
|
|
"title": "Weather Type in Each Country",
|
|
"titleSlug": "weather-type-in-each-country",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Easy",
|
|
"likes": 77,
|
|
"dislikes": 17,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"exampleTestcases": "{\"headers\":{\"Countries\":[\"country_id\",\"country_name\"],\"Weather\":[\"country_id\",\"weather_state\",\"day\"]},\"rows\":{\"Countries\":[[2,\"USA\"],[3,\"Australia\"],[7,\"Peru\"],[5,\"China\"],[8,\"Morocco\"],[9,\"Spain\"]],\"Weather\":[[2,15,\"2019-11-01\"],[2,12,\"2019-10-28\"],[2,12,\"2019-10-27\"],[3,-2,\"2019-11-10\"],[3,0,\"2019-11-11\"],[3,3,\"2019-11-12\"],[5,16,\"2019-11-07\"],[5,18,\"2019-11-09\"],[5,21,\"2019-11-23\"],[7,25,\"2019-11-28\"],[7,22,\"2019-12-01\"],[7,20,\"2019-12-02\"],[8,25,\"2019-11-05\"],[8,27,\"2019-11-15\"],[8,31,\"2019-11-25\"],[9,7,\"2019-10-23\"],[9,3,\"2019-12-23\"]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"22.6K\", \"totalSubmission\": \"33.5K\", \"totalAcceptedRaw\": 22641, \"totalSubmissionRaw\": 33539, \"acRate\": \"67.5%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Countries\":[\"country_id\",\"country_name\"],\"Weather\":[\"country_id\",\"weather_state\",\"day\"]},\"rows\":{\"Countries\":[[2,\"USA\"],[3,\"Australia\"],[7,\"Peru\"],[5,\"China\"],[8,\"Morocco\"],[9,\"Spain\"]],\"Weather\":[[2,15,\"2019-11-01\"],[2,12,\"2019-10-28\"],[2,12,\"2019-10-27\"],[3,-2,\"2019-11-10\"],[3,0,\"2019-11-11\"],[3,3,\"2019-11-12\"],[5,16,\"2019-11-07\"],[5,18,\"2019-11-09\"],[5,21,\"2019-11-23\"],[7,25,\"2019-11-28\"],[7,22,\"2019-12-01\"],[7,20,\"2019-12-02\"],[8,25,\"2019-11-05\"],[8,27,\"2019-11-15\"],[8,31,\"2019-11-25\"],[9,7,\"2019-10-23\"],[9,3,\"2019-12-23\"]]}}",
|
|
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Countries (country_id int, country_name varchar(20))\",\n \"Create table If Not Exists Weather (country_id int, weather_state int, day date)\"\n ],\n \"mssql\": [\n \"Create table Countries (country_id int, country_name varchar(20))\",\n \"Create table Weather (country_id int, weather_state int, day date)\"\n ],\n \"oraclesql\": [\n \"Create table Countries (country_id int, country_name varchar(20))\",\n \"Create table Weather (country_id int, weather_state int, day date)\",\n \"ALTER SESSION SET nls_date_format='YYYY-MM-DD'\"\n ],\n \"database\": true\n}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Countries (country_id int, country_name varchar(20))",
|
|
"Create table If Not Exists Weather (country_id int, weather_state int, day date)",
|
|
"Truncate table Countries",
|
|
"insert into Countries (country_id, country_name) values ('2', 'USA')",
|
|
"insert into Countries (country_id, country_name) values ('3', 'Australia')",
|
|
"insert into Countries (country_id, country_name) values ('7', 'Peru')",
|
|
"insert into Countries (country_id, country_name) values ('5', 'China')",
|
|
"insert into Countries (country_id, country_name) values ('8', 'Morocco')",
|
|
"insert into Countries (country_id, country_name) values ('9', 'Spain')",
|
|
"Truncate table Weather",
|
|
"insert into Weather (country_id, weather_state, day) values ('2', '15', '2019-11-01')",
|
|
"insert into Weather (country_id, weather_state, day) values ('2', '12', '2019-10-28')",
|
|
"insert into Weather (country_id, weather_state, day) values ('2', '12', '2019-10-27')",
|
|
"insert into Weather (country_id, weather_state, day) values ('3', '-2', '2019-11-10')",
|
|
"insert into Weather (country_id, weather_state, day) values ('3', '0', '2019-11-11')",
|
|
"insert into Weather (country_id, weather_state, day) values ('3', '3', '2019-11-12')",
|
|
"insert into Weather (country_id, weather_state, day) values ('5', '16', '2019-11-07')",
|
|
"insert into Weather (country_id, weather_state, day) values ('5', '18', '2019-11-09')",
|
|
"insert into Weather (country_id, weather_state, day) values ('5', '21', '2019-11-23')",
|
|
"insert into Weather (country_id, weather_state, day) values ('7', '25', '2019-11-28')",
|
|
"insert into Weather (country_id, weather_state, day) values ('7', '22', '2019-12-01')",
|
|
"insert into Weather (country_id, weather_state, day) values ('7', '20', '2019-12-02')",
|
|
"insert into Weather (country_id, weather_state, day) values ('8', '25', '2019-11-05')",
|
|
"insert into Weather (country_id, weather_state, day) values ('8', '27', '2019-11-15')",
|
|
"insert into Weather (country_id, weather_state, day) values ('8', '31', '2019-11-25')",
|
|
"insert into Weather (country_id, weather_state, day) values ('9', '7', '2019-10-23')",
|
|
"insert into Weather (country_id, weather_state, day) values ('9', '3', '2019-12-23')"
|
|
],
|
|
"enableRunCode": true,
|
|
"enableTestMode": false,
|
|
"enableDebugger": false,
|
|
"envInfo": "{\"mysql\": [\"MySQL\", \"<p><code>MySQL 8.0</code>.</p>\"], \"mssql\": [\"MS SQL Server\", \"<p><code>mssql server 2019</code>.</p>\"], \"oraclesql\": [\"Oracle\", \"<p><code>Oracle Sql 11.2</code>.</p>\"]}",
|
|
"libraryUrl": null,
|
|
"adminUrl": null,
|
|
"challengeQuestion": null,
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |