1+ {
2+ "data" : {
3+ "question" : {
4+ "questionId" : " 3473" ,
5+ "questionFrontendId" : " 3166" ,
6+ "categoryTitle" : " Database" ,
7+ "boundTopicId" : 2791590 ,
8+ "title" : " Calculate Parking Fees and Duration" ,
9+ "titleSlug" : " calculate-parking-fees-and-duration" ,
10+ "content" : null ,
11+ "translatedTitle" : " 计算停车费与时长" ,
12+ "translatedContent" : null ,
13+ "isPaidOnly" : true ,
14+ "difficulty" : " Medium" ,
15+ "likes" : 0 ,
16+ "dislikes" : 0 ,
17+ "isLiked" : null ,
18+ "similarQuestions" : " []" ,
19+ "contributors" : [],
20+ "langToValidPlayground" : null ,
21+ "topicTags" : [
22+ {
23+ "name" : " Database" ,
24+ "slug" : " database" ,
25+ "translatedName" : " 数据库" ,
26+ "__typename" : " TopicTagNode"
27+ }
28+ ],
29+ "companyTagStats" : null ,
30+ "codeSnippets" : null ,
31+ "stats" : " {\" totalAccepted\" : \" 45\" , \" totalSubmission\" : \" 69\" , \" totalAcceptedRaw\" : 45, \" totalSubmissionRaw\" : 69, \" acRate\" : \" 65.2%\" }" ,
32+ "hints" : [],
33+ "solution" : null ,
34+ "status" : null ,
35+ "sampleTestCase" : " {\" headers\" :{\" ParkingTransactions\" :[\" lot_id\" ,\" car_id\" ,\" entry_time\" ,\" exit_time\" ,\" fee_paid\" ]},\" rows\" :{\" ParkingTransactions\" :[[1,1001,\" 2023-06-01 08:00:00\" ,\" 2023-06-01 10:30:00\" ,5.00],[1,1001,\" 2023-06-02 11:00:00\" ,\" 2023-06-02 12:45:00\" ,3.00],[2,1001,\" 2023-06-01 10:45:00\" ,\" 2023-06-01 12:00:00\" ,6.00],[2,1002,\" 2023-06-01 09:00:00\" ,\" 2023-06-01 11:30:00\" ,4.00],[3,1001,\" 2023-06-03 07:00:00\" ,\" 2023-06-03 09:00:00\" ,4.00],[3,1002,\" 2023-06-02 12:00:00\" ,\" 2023-06-02 14:00:00\" ,2.00]]}}" ,
36+ "metaData": "{\"mysql\":[\"CREATE TABLE If not exists ParkingTransactions (\\n lot_id INT,\\n car_id INT,\\n entry_time DATETIME,\\n exit_time DATETIME,\\n fee_paid DECIMAL(10, 2)\\n)\\n\"],\"mssql\":[\"CREATE TABLE ParkingTransactions (\\n lot_id INT,\\n car_id INT,\\n entry_time DATETIME,\\n exit_time DATETIME,\\n fee_paid DECIMAL(10, 2)\\n);\\n\"],\"oraclesql\":[\"CREATE TABLE ParkingTransactions (\\n lot_id NUMBER,\\n car_id NUMBER,\\n entry_time DATE,\\n exit_time DATE,\\n fee_paid NUMBER(10, 2)\\n)\\n\",\"ALTER SESSION SET nls_date_format='YYYY-MM-DD HH24:MI:SS'\"],\"database\":true,\"name\":\"calculate_fees_and_duration\",\"postgresql\":[\"CREATE TABLE IF NOT EXISTS ParkingTransactions (\\n lot_id INTEGER,\\n car_id INTEGER,\\n entry_time TIMESTAMP,\\n exit_time TIMESTAMP,\\n fee_paid NUMERIC(10, 2)\\n);\"],\"pythondata\":[\"ParkingTransactions = pd.DataFrame([], columns=['lot_id', 'car_id', 'entry_time', 'exit_time', 'fee_paid']).astype({\\n 'lot_id': 'Int64',\\n 'car_id': 'Int64',\\n 'entry_time': 'datetime64[ns]',\\n 'exit_time': 'datetime64[ns]',\\n 'fee_paid': 'float64'\\n})\"],\"database_schema\":{\"ParkingTransactions\":{\"lot_id\":\"INT\",\"car_id\":\"INT\",\"entry_time\":\"DATETIME\",\"exit_time\":\"DATETIME\",\"fee_paid\":\"DECIMAL(10, 2)\"}}}",
37+ "judgerAvailable" : true ,
38+ "judgeType" : " large" ,
39+ "mysqlSchemas" : [
40+ " CREATE TABLE If not exists ParkingTransactions (\n lot_id INT,\n car_id INT,\n entry_time DATETIME,\n exit_time DATETIME,\n fee_paid DECIMAL(10, 2)\n )\n " ,
41+ " Truncate table ParkingTransactions" ,
42+ " insert into ParkingTransactions (lot_id, car_id, entry_time, exit_time, fee_paid) values ('1', '1001', '2023-06-01 08:00:00', '2023-06-01 10:30:00', '5.0')" ,
43+ " insert into ParkingTransactions (lot_id, car_id, entry_time, exit_time, fee_paid) values ('1', '1001', '2023-06-02 11:00:00', '2023-06-02 12:45:00', '3.0')" ,
44+ " insert into ParkingTransactions (lot_id, car_id, entry_time, exit_time, fee_paid) values ('2', '1001', '2023-06-01 10:45:00', '2023-06-01 12:00:00', '6.0')" ,
45+ " insert into ParkingTransactions (lot_id, car_id, entry_time, exit_time, fee_paid) values ('2', '1002', '2023-06-01 09:00:00', '2023-06-01 11:30:00', '4.0')" ,
46+ " insert into ParkingTransactions (lot_id, car_id, entry_time, exit_time, fee_paid) values ('3', '1001', '2023-06-03 07:00:00', '2023-06-03 09:00:00', '4.0')" ,
47+ " insert into ParkingTransactions (lot_id, car_id, entry_time, exit_time, fee_paid) values ('3', '1002', '2023-06-02 12:00:00', '2023-06-02 14:00:00', '2.0')"
48+ ],
49+ "enableRunCode" : true ,
50+ "envInfo" : " {\" mysql\" :[\" MySQL\" ,\" <p>\\ u7248\\ u672c\\ uff1a<code>MySQL 8.0<\\ /code><\\ /p>\" ],\" mssql\" :[\" MS SQL Server\" ,\" <p>mssql server 2019.<\\ /p>\" ],\" oraclesql\" :[\" Oracle\" ,\" <p>Oracle Sql 11.2.<\\ /p>\" ],\" pythondata\" :[\" Pandas\" ,\" <p>Python 3.10 with Pandas 2.0.2 and NumPy 1.25.0<\\ /p>\" ],\" postgresql\" :[\" PostgreSQL\" ,\" <p>PostgreSQL 16<\\ /p>\" ]}" ,
51+ "book" : null ,
52+ "isSubscribed" : false ,
53+ "isDailyQuestion" : false ,
54+ "dailyRecordStatus" : null ,
55+ "editorType" : " CKEDITOR" ,
56+ "ugcQuestionId" : null ,
57+ "style" : " LEETCODE" ,
58+ "exampleTestcases" : " {\" headers\" :{\" ParkingTransactions\" :[\" lot_id\" ,\" car_id\" ,\" entry_time\" ,\" exit_time\" ,\" fee_paid\" ]},\" rows\" :{\" ParkingTransactions\" :[[1,1001,\" 2023-06-01 08:00:00\" ,\" 2023-06-01 10:30:00\" ,5.00],[1,1001,\" 2023-06-02 11:00:00\" ,\" 2023-06-02 12:45:00\" ,3.00],[2,1001,\" 2023-06-01 10:45:00\" ,\" 2023-06-01 12:00:00\" ,6.00],[2,1002,\" 2023-06-01 09:00:00\" ,\" 2023-06-01 11:30:00\" ,4.00],[3,1001,\" 2023-06-03 07:00:00\" ,\" 2023-06-03 09:00:00\" ,4.00],[3,1002,\" 2023-06-02 12:00:00\" ,\" 2023-06-02 14:00:00\" ,2.00]]}}" ,
59+ "__typename" : " QuestionNode"
60+ }
61+ }
62+ }
0 commit comments