2022-11-24 20:11:13 +08:00
{
"data" : {
"question" : {
"questionId" : "2622" ,
"questionFrontendId" : "2480" ,
"boundTopicId" : null ,
"title" : "Form a Chemical Bond" ,
"titleSlug" : "form-a-chemical-bond" ,
"content" : null ,
"translatedTitle" : null ,
"translatedContent" : null ,
"isPaidOnly" : true ,
"difficulty" : "Easy" ,
2023-12-09 18:42:21 +08:00
"likes" : 24 ,
"dislikes" : 9 ,
2022-11-24 20:11:13 +08:00
"isLiked" : null ,
"similarQuestions" : "[]" ,
2023-12-09 18:42:21 +08:00
"exampleTestcases" : "{\"headers\": {\"Elements\": [\"symbol\", \"type\", \"electrons\"]}, \"rows\": {\"Elements\": [[\"He\", \"Noble\", 0], [\"Na\", \"Metal\", 1], [\"Ca\", \"Metal\", 2], [\"La\", \"Metal\", 3], [\"Cl\", \"Nonmetal\", 1], [\"O\", \"Nonmetal\", 2], [\"N\", \"Nonmetal\", 3]]}}" ,
2022-11-24 20:11:13 +08:00
"categoryTitle" : "Database" ,
"contributors" : [ ] ,
2023-12-09 18:42:21 +08:00
"topicTags" : [
{
"name" : "Database" ,
"slug" : "database" ,
"translatedName" : null ,
"__typename" : "TopicTagNode"
}
] ,
2022-11-24 20:11:13 +08:00
"companyTagStats" : null ,
"codeSnippets" : null ,
2023-12-09 19:57:46 +08:00
"stats" : "{\"totalAccepted\": \"3K\", \"totalSubmission\": \"4.3K\", \"totalAcceptedRaw\": 3035, \"totalSubmissionRaw\": 4302, \"acRate\": \"70.5%\"}" ,
2022-11-24 20:11:13 +08:00
"hints" : [ ] ,
"solution" : null ,
"status" : null ,
"sampleTestCase" : "{\"headers\": {\"Elements\": [\"symbol\", \"type\", \"electrons\"]}, \"rows\": {\"Elements\": [[\"He\", \"Noble\", 0], [\"Na\", \"Metal\", 1], [\"Ca\", \"Metal\", 2], [\"La\", \"Metal\", 3], [\"Cl\", \"Nonmetal\", 1], [\"O\", \"Nonmetal\", 2], [\"N\", \"Nonmetal\", 3]]}}" ,
2023-12-09 18:42:21 +08:00
"metaData" : "{\"mysql\": [\"Create table If Not Exists Elements (symbol varchar(2), type ENUM('Metal','Nonmetal','Noble'), electrons int)\"], \"mssql\": [\"Create table Elements (symbol varchar(2), type varchar(8) not null check(type in ('Metal','Nonmetal','Noble')), electrons int)\\n\"], \"oraclesql\": [\"Create table Elements (symbol varchar(2), type varchar(8) not null check(type in ('Metal','Nonmetal','Noble')), electrons int)\\n\"], \"database\": true, \"name\": \"form_bond\", \"pythondata\": [\"Elements = pd.DataFrame([], columns=['symbol', 'type', 'electrons']).astype({'symbol':'object', 'type':'object', 'electrons':'Int64'})\"], \"postgresql\": [\"Create table If Not Exists Elements (symbol varchar(2), type VARCHAR(30) CHECK (type IN ('Metal','Nonmetal','Noble')), electrons int)\\n\"], \"database_schema\": {\"Elements\": {\"symbol\": \"VARCHAR(2)\", \"type\": \"ENUM('Metal', 'Nonmetal', 'Noble')\", \"electrons\": \"INT\"}}}" ,
2022-11-24 20:11:13 +08:00
"judgerAvailable" : true ,
"judgeType" : "large" ,
"mysqlSchemas" : [
"Create table If Not Exists Elements (symbol varchar(2), type ENUM('Metal','Nonmetal','Noble'), electrons int)" ,
"Truncate table Elements" ,
"insert into Elements (symbol, type, electrons) values ('He', 'Noble', '0')" ,
"insert into Elements (symbol, type, electrons) values ('Na', 'Metal', '1')" ,
"insert into Elements (symbol, type, electrons) values ('Ca', 'Metal', '2')" ,
"insert into Elements (symbol, type, electrons) values ('La', 'Metal', '3')" ,
"insert into Elements (symbol, type, electrons) values ('Cl', 'Nonmetal', '1')" ,
"insert into Elements (symbol, type, electrons) values ('O', 'Nonmetal', '2')" ,
"insert into Elements (symbol, type, electrons) values ('N', 'Nonmetal', '3')"
] ,
"enableRunCode" : true ,
"enableTestMode" : false ,
"enableDebugger" : false ,
2023-12-09 18:42:21 +08:00
"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>\"]}" ,
2022-11-24 20:11:13 +08:00
"libraryUrl" : null ,
"adminUrl" : null ,
"challengeQuestion" : null ,
"__typename" : "QuestionNode"
}
}
}