2022-03-27 20:37:52 +08:00
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"question": {
|
|
|
|
"questionId": "1453",
|
|
|
|
"questionFrontendId": "1322",
|
|
|
|
"categoryTitle": "Database",
|
|
|
|
"boundTopicId": 76185,
|
|
|
|
"title": "Ads Performance",
|
|
|
|
"titleSlug": "ads-performance",
|
|
|
|
"content": null,
|
|
|
|
"translatedTitle": "广告效果",
|
|
|
|
"translatedContent": null,
|
|
|
|
"isPaidOnly": true,
|
|
|
|
"difficulty": "Easy",
|
2023-12-09 18:42:21 +08:00
|
|
|
"likes": 45,
|
2022-03-27 20:37:52 +08:00
|
|
|
"dislikes": 0,
|
|
|
|
"isLiked": null,
|
|
|
|
"similarQuestions": "[]",
|
|
|
|
"contributors": [],
|
|
|
|
"langToValidPlayground": null,
|
|
|
|
"topicTags": [
|
|
|
|
{
|
|
|
|
"name": "Database",
|
|
|
|
"slug": "database",
|
|
|
|
"translatedName": "数据库",
|
|
|
|
"__typename": "TopicTagNode"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"companyTagStats": null,
|
|
|
|
"codeSnippets": null,
|
2023-12-09 18:42:21 +08:00
|
|
|
"stats": "{\"totalAccepted\": \"9.9K\", \"totalSubmission\": \"16.6K\", \"totalAcceptedRaw\": 9871, \"totalSubmissionRaw\": 16556, \"acRate\": \"59.6%\"}",
|
2022-03-27 20:37:52 +08:00
|
|
|
"hints": [],
|
|
|
|
"solution": null,
|
|
|
|
"status": null,
|
2023-12-09 18:42:21 +08:00
|
|
|
"sampleTestCase": "{\"headers\":{\"Ads\":[\"ad_id\",\"user_id\",\"action\"]},\"rows\":{\"Ads\":[[1,1,\"Clicked\"],[2,2,\"Clicked\"],[3,3,\"Viewed\"],[5,5,\"Ignored\"],[1,7,\"Ignored\"],[2,7,\"Viewed\"],[3,5,\"Clicked\"],[1,4,\"Viewed\"],[2,11,\"Viewed\"],[1,2,\"Clicked\"]]}}",
|
|
|
|
"metaData": "{\"mysql\":[\"Create table If Not Exists Ads (ad_id int, user_id int, action ENUM('Clicked', 'Viewed', 'Ignored'))\"],\"mssql\":[\"Create table Ads (ad_id int, user_id int, action VARCHAR(10) NOT NULL CHECK (action IN ('Clicked', 'Viewed', 'Ignored')))\"],\"oraclesql\":[\"Create table Ads (ad_id int, user_id int, action VARCHAR(10) NOT NULL CHECK (action IN ('Clicked', 'Viewed', 'Ignored')))\"],\"database\":true,\"name\":\"ads_performance\",\"pythondata\":[\"Ads = pd.DataFrame([], columns=['ad_id', 'user_id']).astype({'ad_id':'Int64', 'user_id':'Int64', 'action':'object'})\"],\"postgresql\":[\"Create table If Not Exists Ads (ad_id int, user_id int, action VARCHAR(30) CHECK (action IN ('Clicked', 'Viewed', 'Ignored')))\\n\"],\"database_schema\":{\"Ads\":{\"ad_id\":\"INT\",\"user_id\":\"INT\",\"action\":\"ENUM('Clicked', 'Viewed', 'Ignored')\"}}}",
|
2022-03-27 20:37:52 +08:00
|
|
|
"judgerAvailable": true,
|
|
|
|
"judgeType": "large",
|
|
|
|
"mysqlSchemas": [
|
|
|
|
"Create table If Not Exists Ads (ad_id int, user_id int, action ENUM('Clicked', 'Viewed', 'Ignored'))",
|
|
|
|
"Truncate table Ads",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('1', '1', 'Clicked')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('2', '2', 'Clicked')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('3', '3', 'Viewed')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('5', '5', 'Ignored')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('1', '7', 'Ignored')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('2', '7', 'Viewed')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('3', '5', 'Clicked')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('1', '4', 'Viewed')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('2', '11', 'Viewed')",
|
|
|
|
"insert into Ads (ad_id, user_id, action) values ('1', '2', 'Clicked')"
|
|
|
|
],
|
|
|
|
"enableRunCode": true,
|
2023-12-09 18:42:21 +08:00
|
|
|
"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>\"]}",
|
2022-03-27 20:37:52 +08:00
|
|
|
"book": null,
|
|
|
|
"isSubscribed": false,
|
|
|
|
"isDailyQuestion": false,
|
|
|
|
"dailyRecordStatus": null,
|
|
|
|
"editorType": "CKEDITOR",
|
|
|
|
"ugcQuestionId": null,
|
|
|
|
"style": "LEETCODE",
|
|
|
|
"exampleTestcases": "{\"headers\":{\"Ads\":[\"ad_id\",\"user_id\",\"action\"]},\"rows\":{\"Ads\":[[1,1,\"Clicked\"],[2,2,\"Clicked\"],[3,3,\"Viewed\"],[5,5,\"Ignored\"],[1,7,\"Ignored\"],[2,7,\"Viewed\"],[3,5,\"Clicked\"],[1,4,\"Viewed\"],[2,11,\"Viewed\"],[1,2,\"Clicked\"]]}}",
|
|
|
|
"__typename": "QuestionNode"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|