2022-03-27 20:38:29 +08:00
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"question": {
|
|
|
|
"questionId": "2143",
|
|
|
|
"questionFrontendId": "1990",
|
|
|
|
"categoryTitle": "Database",
|
|
|
|
"boundTopicId": 978814,
|
|
|
|
"title": "Count the Number of Experiments",
|
|
|
|
"titleSlug": "count-the-number-of-experiments",
|
|
|
|
"content": null,
|
|
|
|
"translatedTitle": "统计实验的数量",
|
|
|
|
"translatedContent": null,
|
|
|
|
"isPaidOnly": true,
|
2023-12-09 18:42:21 +08:00
|
|
|
"difficulty": "Medium",
|
|
|
|
"likes": 11,
|
2022-03-27 20:38:29 +08:00
|
|
|
"dislikes": 0,
|
|
|
|
"isLiked": null,
|
|
|
|
"similarQuestions": "[]",
|
|
|
|
"contributors": [],
|
|
|
|
"langToValidPlayground": null,
|
2023-12-09 18:42:21 +08:00
|
|
|
"topicTags": [
|
|
|
|
{
|
|
|
|
"name": "Database",
|
|
|
|
"slug": "database",
|
|
|
|
"translatedName": "数据库",
|
|
|
|
"__typename": "TopicTagNode"
|
|
|
|
}
|
|
|
|
],
|
2022-03-27 20:38:29 +08:00
|
|
|
"companyTagStats": null,
|
|
|
|
"codeSnippets": null,
|
2023-12-09 18:42:21 +08:00
|
|
|
"stats": "{\"totalAccepted\": \"2.7K\", \"totalSubmission\": \"5.8K\", \"totalAcceptedRaw\": 2703, \"totalSubmissionRaw\": 5759, \"acRate\": \"46.9%\"}",
|
2022-03-27 20:38:29 +08:00
|
|
|
"hints": [],
|
|
|
|
"solution": null,
|
|
|
|
"status": null,
|
|
|
|
"sampleTestCase": "{\"headers\":{\"Experiments\":[\"experiment_id\",\"platform\",\"experiment_name\"]},\"rows\":{\"Experiments\":[[4,\"IOS\",\"Programming\"],[13,\"IOS\",\"Sports\"],[14,\"Android\",\"Reading\"],[8,\"Web\",\"Reading\"],[12,\"Web\",\"Reading\"],[18,\"Web\",\"Programming\"]]}}",
|
2023-12-09 18:42:21 +08:00
|
|
|
"metaData": "{\"mysql\":[\"Create table If Not Exists Experiments (experiment_id int, platform ENUM('Android', 'IOS', 'Web'), experiment_name ENUM('Reading', 'Sports', 'Programming'))\"],\"mssql\":[\"Create table Experiments (experiment_id int, platform VARCHAR(7) NOT NULL CHECK (platform IN ('Android', 'IOS', 'Web')), experiment_name VARCHAR(11) NOT NULL CHECK (experiment_name IN ('Reading', 'Sports', 'Programming')))\"],\"oraclesql\":[\"Create table Experiments (experiment_id int, platform VARCHAR(7) NOT NULL CHECK (platform IN ('Android', 'IOS', 'Web')), experiment_name VARCHAR(11) NOT NULL CHECK (experiment_name IN ('Reading', 'Sports', 'Programming')))\"],\"database\":true,\"name\":\"count_experiments\",\"pythondata\":[\"Experiments = pd.DataFrame([], columns=['experiment_id', 'platform', 'experiment_name']).astype({'experiment_id':'Int64', 'platform':'object', 'experiment_name':'object'})\"],\"postgresql\":[\"Create table If Not Exists Experiments (experiment_id int, platform VARCHAR(30) CHECK (platform IN ('Android', 'IOS', 'Web')), experiment_name VARCHAR(30) CHECK (experiment_name IN ('Reading', 'Sports', 'Programming')))\\n\"],\"database_schema\":{\"Experiments\":{\"experiment_id\":\"INT\",\"platform\":\"ENUM('Android', 'IOS', 'Web')\",\"experiment_name\":\"ENUM('Reading', 'Sports', 'Programming')\"}}}",
|
2022-03-27 20:38:29 +08:00
|
|
|
"judgerAvailable": true,
|
|
|
|
"judgeType": "large",
|
|
|
|
"mysqlSchemas": [
|
|
|
|
"Create table If Not Exists Experiments (experiment_id int, platform ENUM('Android', 'IOS', 'Web'), experiment_name ENUM('Reading', 'Sports', 'Programming'))",
|
|
|
|
"Truncate table Experiments",
|
|
|
|
"insert into Experiments (experiment_id, platform, experiment_name) values ('4', 'IOS', 'Programming')",
|
|
|
|
"insert into Experiments (experiment_id, platform, experiment_name) values ('13', 'IOS', 'Sports')",
|
|
|
|
"insert into Experiments (experiment_id, platform, experiment_name) values ('14', 'Android', 'Reading')",
|
|
|
|
"insert into Experiments (experiment_id, platform, experiment_name) values ('8', 'Web', 'Reading')",
|
|
|
|
"insert into Experiments (experiment_id, platform, experiment_name) values ('12', 'Web', 'Reading')",
|
|
|
|
"insert into Experiments (experiment_id, platform, experiment_name) values ('18', 'Web', 'Programming')"
|
|
|
|
],
|
|
|
|
"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:38:29 +08:00
|
|
|
"book": null,
|
|
|
|
"isSubscribed": false,
|
|
|
|
"isDailyQuestion": false,
|
|
|
|
"dailyRecordStatus": null,
|
|
|
|
"editorType": "CKEDITOR",
|
|
|
|
"ugcQuestionId": null,
|
|
|
|
"style": "LEETCODE",
|
|
|
|
"exampleTestcases": "{\"headers\":{\"Experiments\":[\"experiment_id\",\"platform\",\"experiment_name\"]},\"rows\":{\"Experiments\":[[4,\"IOS\",\"Programming\"],[13,\"IOS\",\"Sports\"],[14,\"Android\",\"Reading\"],[8,\"Web\",\"Reading\"],[12,\"Web\",\"Reading\"],[18,\"Web\",\"Programming\"]]}}",
|
|
|
|
"__typename": "QuestionNode"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|