2022-03-27 18:27:43 +08:00
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"question": {
|
|
|
|
"questionId": "1914",
|
|
|
|
"questionFrontendId": "1767",
|
|
|
|
"boundTopicId": null,
|
|
|
|
"title": "Find the Subtasks That Did Not Execute",
|
|
|
|
"titleSlug": "find-the-subtasks-that-did-not-execute",
|
|
|
|
"content": null,
|
|
|
|
"translatedTitle": null,
|
|
|
|
"translatedContent": null,
|
|
|
|
"isPaidOnly": true,
|
|
|
|
"difficulty": "Hard",
|
2023-12-09 18:42:21 +08:00
|
|
|
"likes": 158,
|
|
|
|
"dislikes": 12,
|
2022-03-27 18:27:43 +08:00
|
|
|
"isLiked": null,
|
|
|
|
"similarQuestions": "[]",
|
|
|
|
"exampleTestcases": "{\"headers\": {\"Tasks\": [\"task_id\", \"subtasks_count\"], \"Executed\": [\"task_id\", \"subtask_id\"]}, \"rows\": {\"Tasks\": [[1, 3], [2, 2], [3, 4]], \"Executed\": [[1, 2], [3, 1], [3, 2], [3, 3], [3, 4]]}}",
|
|
|
|
"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\": \"10.2K\", \"totalSubmission\": \"13.1K\", \"totalAcceptedRaw\": 10226, \"totalSubmissionRaw\": 13126, \"acRate\": \"77.9%\"}",
|
2022-03-27 18:27:43 +08:00
|
|
|
"hints": [],
|
|
|
|
"solution": null,
|
|
|
|
"status": null,
|
|
|
|
"sampleTestCase": "{\"headers\": {\"Tasks\": [\"task_id\", \"subtasks_count\"], \"Executed\": [\"task_id\", \"subtask_id\"]}, \"rows\": {\"Tasks\": [[1, 3], [2, 2], [3, 4]], \"Executed\": [[1, 2], [3, 1], [3, 2], [3, 3], [3, 4]]}}",
|
2023-12-09 18:42:21 +08:00
|
|
|
"metaData": "{\"mysql\": [\"Create table If Not Exists Tasks (task_id int, subtasks_count int)\", \"Create table If Not Exists Executed (task_id int, subtask_id int)\"], \"mssql\": [\"Create table Tasks (task_id int, subtasks_count int)\", \"Create table Executed (task_id int, subtask_id int)\"], \"oraclesql\": [\"Create table Tasks (task_id int, subtasks_count int)\", \"Create table Executed (task_id int, subtask_id int)\"], \"database\": true, \"name\": \"find_subtasks\", \"pythondata\": [\"Tasks = pd.DataFrame([], columns=['task_id', 'subtasks_count']).astype({'task_id':'Int64', 'subtasks_count':'Int64'})\", \"Executed = pd.DataFrame([], columns=['task_id', 'subtask_id']).astype({'task_id':'Int64', 'subtask_id':'Int64'})\"], \"postgresql\": [\"\\nCreate table If Not Exists Tasks (task_id int, subtasks_count int)\\n\", \"Create table If Not Exists Executed (task_id int, subtask_id int)\"], \"database_schema\": {\"Tasks\": {\"task_id\": \"INT\", \"subtasks_count\": \"INT\"}, \"Executed\": {\"task_id\": \"INT\", \"subtask_id\": \"INT\"}}}",
|
2022-03-27 18:27:43 +08:00
|
|
|
"judgerAvailable": true,
|
|
|
|
"judgeType": "large",
|
|
|
|
"mysqlSchemas": [
|
|
|
|
"Create table If Not Exists Tasks (task_id int, subtasks_count int)",
|
|
|
|
"Create table If Not Exists Executed (task_id int, subtask_id int)",
|
|
|
|
"Truncate table Tasks",
|
|
|
|
"insert into Tasks (task_id, subtasks_count) values ('1', '3')",
|
|
|
|
"insert into Tasks (task_id, subtasks_count) values ('2', '2')",
|
|
|
|
"insert into Tasks (task_id, subtasks_count) values ('3', '4')",
|
|
|
|
"Truncate table Executed",
|
|
|
|
"insert into Executed (task_id, subtask_id) values ('1', '2')",
|
|
|
|
"insert into Executed (task_id, subtask_id) values ('3', '1')",
|
|
|
|
"insert into Executed (task_id, subtask_id) values ('3', '2')",
|
|
|
|
"insert into Executed (task_id, subtask_id) values ('3', '3')",
|
|
|
|
"insert into Executed (task_id, subtask_id) values ('3', '4')"
|
|
|
|
],
|
|
|
|
"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:27:43 +08:00
|
|
|
"libraryUrl": null,
|
|
|
|
"adminUrl": null,
|
|
|
|
"challengeQuestion": null,
|
|
|
|
"__typename": "QuestionNode"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|