2022-03-27 18:46:20 +08:00
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"question": {
|
|
|
|
"questionId": "1339",
|
|
|
|
"questionFrontendId": "1212",
|
|
|
|
"boundTopicId": null,
|
|
|
|
"title": "Team Scores in Football Tournament",
|
|
|
|
"titleSlug": "team-scores-in-football-tournament",
|
|
|
|
"content": null,
|
|
|
|
"translatedTitle": null,
|
|
|
|
"translatedContent": null,
|
|
|
|
"isPaidOnly": true,
|
|
|
|
"difficulty": "Medium",
|
2023-12-09 18:42:21 +08:00
|
|
|
"likes": 291,
|
|
|
|
"dislikes": 24,
|
2022-03-27 18:46:20 +08:00
|
|
|
"isLiked": null,
|
|
|
|
"similarQuestions": "[]",
|
|
|
|
"exampleTestcases": "{\"headers\": {\"Teams\": [\"team_id\", \"team_name\"], \"Matches\": [\"match_id\", \"host_team\", \"guest_team\", \"host_goals\", \"guest_goals\"]}, \"rows\": {\"Teams\": [[10, \"Leetcode FC\"], [20, \"NewYork FC\"], [30, \"Atlanta FC\"], [40, \"Chicago FC\"], [50, \"Toronto FC\"]], \"Matches\": [[1, 10, 20, 3, 0], [2, 30, 10, 2, 2], [3, 10, 50, 5, 1], [4, 20, 30, 1, 0], [5, 50, 30, 1, 0]]}}",
|
|
|
|
"categoryTitle": "Database",
|
|
|
|
"contributors": [],
|
|
|
|
"topicTags": [
|
|
|
|
{
|
|
|
|
"name": "Database",
|
|
|
|
"slug": "database",
|
|
|
|
"translatedName": null,
|
|
|
|
"__typename": "TopicTagNode"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"companyTagStats": null,
|
|
|
|
"codeSnippets": null,
|
2023-12-09 19:57:46 +08:00
|
|
|
"stats": "{\"totalAccepted\": \"34.7K\", \"totalSubmission\": \"62K\", \"totalAcceptedRaw\": 34687, \"totalSubmissionRaw\": 61967, \"acRate\": \"56.0%\"}",
|
2022-03-27 18:46:20 +08:00
|
|
|
"hints": [],
|
|
|
|
"solution": null,
|
|
|
|
"status": null,
|
|
|
|
"sampleTestCase": "{\"headers\": {\"Teams\": [\"team_id\", \"team_name\"], \"Matches\": [\"match_id\", \"host_team\", \"guest_team\", \"host_goals\", \"guest_goals\"]}, \"rows\": {\"Teams\": [[10, \"Leetcode FC\"], [20, \"NewYork FC\"], [30, \"Atlanta FC\"], [40, \"Chicago FC\"], [50, \"Toronto FC\"]], \"Matches\": [[1, 10, 20, 3, 0], [2, 30, 10, 2, 2], [3, 10, 50, 5, 1], [4, 20, 30, 1, 0], [5, 50, 30, 1, 0]]}}",
|
2023-12-09 18:42:21 +08:00
|
|
|
"metaData": "{\"mysql\": [\"Create table If Not Exists Teams (team_id int, team_name varchar(30))\", \"Create table If Not Exists Matches (match_id int, host_team int, guest_team int, host_goals int, guest_goals int)\"], \"mssql\": [\"Create table Teams (team_id int, team_name varchar(30))\", \"Create table Matches (match_id int, host_team int, guest_team int, host_goals int, guest_goals int)\"], \"oraclesql\": [\"Create table Teams (team_id int, team_name varchar(30))\", \"Create table Matches (match_id int, host_team int, guest_team int, host_goals int, guest_goals int)\"], \"database\": true, \"name\": \"team_scores\", \"pythondata\": [\"Teams = pd.DataFrame([], columns=['team_id', 'team_name']).astype({'team_id':'Int64', 'team_name':'object'})\", \"Matches = pd.DataFrame([], columns=['match_id', 'host_team', 'guest_team', 'host_goals', 'guest_goals']).astype({'match_id':'Int64', 'host_team':'Int64', 'guest_team':'Int64', 'host_goals':'Int64', 'guest_goals':'Int64'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Teams (team_id int, team_name varchar(30))\\n\", \"Create table If Not Exists Matches (match_id int, host_team int, guest_team int, host_goals int, guest_goals int)\"], \"database_schema\": {\"Teams\": {\"team_id\": \"INT\", \"team_name\": \"VARCHAR(30)\"}, \"Matches\": {\"match_id\": \"INT\", \"host_team\": \"INT\", \"guest_team\": \"INT\", \"host_goals\": \"INT\", \"guest_goals\": \"INT\"}}}",
|
2022-03-27 18:46:20 +08:00
|
|
|
"judgerAvailable": true,
|
|
|
|
"judgeType": "large",
|
|
|
|
"mysqlSchemas": [
|
|
|
|
"Create table If Not Exists Teams (team_id int, team_name varchar(30))",
|
|
|
|
"Create table If Not Exists Matches (match_id int, host_team int, guest_team int, host_goals int, guest_goals int)",
|
|
|
|
"Truncate table Teams",
|
|
|
|
"insert into Teams (team_id, team_name) values ('10', 'Leetcode FC')",
|
|
|
|
"insert into Teams (team_id, team_name) values ('20', 'NewYork FC')",
|
|
|
|
"insert into Teams (team_id, team_name) values ('30', 'Atlanta FC')",
|
|
|
|
"insert into Teams (team_id, team_name) values ('40', 'Chicago FC')",
|
|
|
|
"insert into Teams (team_id, team_name) values ('50', 'Toronto FC')",
|
|
|
|
"Truncate table Matches",
|
|
|
|
"insert into Matches (match_id, host_team, guest_team, host_goals, guest_goals) values ('1', '10', '20', '3', '0')",
|
|
|
|
"insert into Matches (match_id, host_team, guest_team, host_goals, guest_goals) values ('2', '30', '10', '2', '2')",
|
|
|
|
"insert into Matches (match_id, host_team, guest_team, host_goals, guest_goals) values ('3', '10', '50', '5', '1')",
|
|
|
|
"insert into Matches (match_id, host_team, guest_team, host_goals, guest_goals) values ('4', '20', '30', '1', '0')",
|
|
|
|
"insert into Matches (match_id, host_team, guest_team, host_goals, guest_goals) values ('5', '50', '30', '1', '0')"
|
|
|
|
],
|
|
|
|
"enableRunCode": true,
|
|
|
|
"enableTestMode": false,
|
|
|
|
"enableDebugger": false,
|
2023-12-09 18:42:21 +08:00
|
|
|
"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>\"], \"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"], \"postgresql\": [\"PostgreSQL\", \"<p>PostgreSQL 16</p>\"]}",
|
2022-03-27 18:46:20 +08:00
|
|
|
"libraryUrl": null,
|
|
|
|
"adminUrl": null,
|
|
|
|
"challengeQuestion": null,
|
|
|
|
"__typename": "QuestionNode"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|