mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-01-10 18:48:13 +08:00
64 lines
4.4 KiB
JSON
64 lines
4.4 KiB
JSON
{
|
|
"data": {
|
|
"question": {
|
|
"questionId": "2136",
|
|
"questionFrontendId": "1988",
|
|
"boundTopicId": null,
|
|
"title": "Find Cutoff Score for Each School",
|
|
"titleSlug": "find-cutoff-score-for-each-school",
|
|
"content": null,
|
|
"translatedTitle": null,
|
|
"translatedContent": null,
|
|
"isPaidOnly": true,
|
|
"difficulty": "Medium",
|
|
"likes": 77,
|
|
"dislikes": 152,
|
|
"isLiked": null,
|
|
"similarQuestions": "[]",
|
|
"exampleTestcases": "{\"headers\":{\"Schools\":[\"school_id\",\"capacity\"],\"Exam\":[\"score\",\"student_count\"]},\"rows\":{\"Schools\":[[11,151],[5,48],[9,9],[10,99]],\"Exam\":[[975,10],[966,60],[844,76],[749,76],[744,100]]}}",
|
|
"categoryTitle": "Database",
|
|
"contributors": [],
|
|
"topicTags": [
|
|
{
|
|
"name": "Database",
|
|
"slug": "database",
|
|
"translatedName": null,
|
|
"__typename": "TopicTagNode"
|
|
}
|
|
],
|
|
"companyTagStats": null,
|
|
"codeSnippets": null,
|
|
"stats": "{\"totalAccepted\": \"10.1K\", \"totalSubmission\": \"15.1K\", \"totalAcceptedRaw\": 10056, \"totalSubmissionRaw\": 15051, \"acRate\": \"66.8%\"}",
|
|
"hints": [],
|
|
"solution": null,
|
|
"status": null,
|
|
"sampleTestCase": "{\"headers\":{\"Schools\":[\"school_id\",\"capacity\"],\"Exam\":[\"score\",\"student_count\"]},\"rows\":{\"Schools\":[[11,151],[5,48],[9,9],[10,99]],\"Exam\":[[975,10],[966,60],[844,76],[749,76],[744,100]]}}",
|
|
"metaData": "{\"mysql\": [\"Create table If Not Exists Schools (school_id int, capacity int)\", \"Create table If Not Exists Exam (score int, student_count int)\"], \"mssql\": [\"Create table Schools (school_id int, capacity int)\", \"Create table Exam (score int, student_count int)\"], \"oraclesql\": [\"Create table Schools (school_id int, capacity int)\", \"Create table Exam (score int, student_count int)\"], \"database\": true, \"name\": \"find_cutoff_score\", \"pythondata\": [\"Schools = pd.DataFrame([], columns=['school_id', 'capacity']).astype({'school_id':'Int64', 'capacity':'Int64'})\", \"Exam = pd.DataFrame([], columns=['score', 'student_count']).astype({'score':'Int64', 'student_count':'Int64'})\"], \"postgresql\": [\"Create table If Not Exists Schools (school_id int, capacity int)\", \"Create table If Not Exists Exam (score int, student_count int)\"], \"database_schema\": {\"Schools\": {\"school_id\": \"INT\", \"capacity\": \"INT\"}, \"Exam\": {\"score\": \"INT\", \"student_count\": \"INT\"}}}",
|
|
"judgerAvailable": true,
|
|
"judgeType": "large",
|
|
"mysqlSchemas": [
|
|
"Create table If Not Exists Schools (school_id int, capacity int)",
|
|
"Create table If Not Exists Exam (score int, student_count int)",
|
|
"Truncate table Schools",
|
|
"insert into Schools (school_id, capacity) values ('11', '151')",
|
|
"insert into Schools (school_id, capacity) values ('5', '48')",
|
|
"insert into Schools (school_id, capacity) values ('9', '9')",
|
|
"insert into Schools (school_id, capacity) values ('10', '99')",
|
|
"Truncate table Exam",
|
|
"insert into Exam (score, student_count) values ('975', '10')",
|
|
"insert into Exam (score, student_count) values ('966', '60')",
|
|
"insert into Exam (score, student_count) values ('844', '76')",
|
|
"insert into Exam (score, student_count) values ('749', '76')",
|
|
"insert into Exam (score, student_count) values ('744', '100')"
|
|
],
|
|
"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>\"], \"pythondata\": [\"Pandas\", \"<p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0</p>\"], \"postgresql\": [\"PostgreSQL\", \"<p>PostgreSQL 16</p>\"]}",
|
|
"libraryUrl": null,
|
|
"adminUrl": null,
|
|
"challengeQuestion": null,
|
|
"__typename": "QuestionNode"
|
|
}
|
|
}
|
|
} |