-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[no content]count-apples-and-oranges.json
67 lines (67 loc) · 4.64 KB
/
[no content]count-apples-and-oranges.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"data": {
"question": {
"questionId": "1862",
"questionFrontendId": "1715",
"boundTopicId": null,
"title": "Count Apples and Oranges",
"titleSlug": "count-apples-and-oranges",
"content": null,
"translatedTitle": null,
"translatedContent": null,
"isPaidOnly": true,
"difficulty": "Medium",
"likes": 52,
"dislikes": 7,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "{\"headers\":{\"Boxes\":[\"box_id\",\"chest_id\",\"apple_count\",\"orange_count\"],\"Chests\":[\"chest_id\",\"apple_count\",\"orange_count\"]},\"rows\":{\"Boxes\":[[2,null,6,15],[18,14,4,15],[19,3,8,4],[12,2,19,20],[20,6,12,9],[8,6,9,9],[3,14,16,7]],\"Chests\":[[6,5,6],[14,20,10],[2,8,8],[3,19,4],[16,19,19]]}}",
"categoryTitle": "Database",
"contributors": [],
"topicTags": [
{
"name": "Database",
"slug": "database",
"translatedName": null,
"__typename": "TopicTagNode"
}
],
"companyTagStats": null,
"codeSnippets": null,
"stats": "{\"totalAccepted\": \"8.5K\", \"totalSubmission\": \"10.8K\", \"totalAcceptedRaw\": 8477, \"totalSubmissionRaw\": 10849, \"acRate\": \"78.1%\"}",
"hints": [],
"solution": null,
"status": null,
"sampleTestCase": "{\"headers\":{\"Boxes\":[\"box_id\",\"chest_id\",\"apple_count\",\"orange_count\"],\"Chests\":[\"chest_id\",\"apple_count\",\"orange_count\"]},\"rows\":{\"Boxes\":[[2,null,6,15],[18,14,4,15],[19,3,8,4],[12,2,19,20],[20,6,12,9],[8,6,9,9],[3,14,16,7]],\"Chests\":[[6,5,6],[14,20,10],[2,8,8],[3,19,4],[16,19,19]]}}",
"metaData": "{\n \"mysql\": [\n \"Create table If Not Exists Boxes (box_id int, chest_id int, apple_count int, orange_count int)\",\n \"Create table If Not Exists Chests (chest_id int, apple_count int, orange_count int)\"\n ],\n \"mssql\": [\n \"Create table Boxes (box_id int, chest_id int, apple_count int, orange_count int)\",\n \"Create table Chests (chest_id int, apple_count int, orange_count int)\"\n ],\n \"oraclesql\": [\n \"Create table Boxes (box_id int, chest_id int, apple_count int, orange_count int)\",\n \"Create table Chests (chest_id int, apple_count int, orange_count int)\"\n ],\n \"database\": true\n}",
"judgerAvailable": true,
"judgeType": "large",
"mysqlSchemas": [
"Create table If Not Exists Boxes (box_id int, chest_id int, apple_count int, orange_count int)",
"Create table If Not Exists Chests (chest_id int, apple_count int, orange_count int)",
"Truncate table Boxes",
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('2', 'None', '6', '15')",
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('18', '14', '4', '15')",
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('19', '3', '8', '4')",
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('12', '2', '19', '20')",
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('20', '6', '12', '9')",
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('8', '6', '9', '9')",
"insert into Boxes (box_id, chest_id, apple_count, orange_count) values ('3', '14', '16', '7')",
"Truncate table Chests",
"insert into Chests (chest_id, apple_count, orange_count) values ('6', '5', '6')",
"insert into Chests (chest_id, apple_count, orange_count) values ('14', '20', '10')",
"insert into Chests (chest_id, apple_count, orange_count) values ('2', '8', '8')",
"insert into Chests (chest_id, apple_count, orange_count) values ('3', '19', '4')",
"insert into Chests (chest_id, apple_count, orange_count) values ('16', '19', '19')"
],
"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>\"]}",
"libraryUrl": null,
"adminUrl": null,
"challengeQuestion": null,
"__typename": "QuestionNode"
}
}
}