2022-11-24 20:11:13 +08:00
{
"data" : {
"question" : {
"questionId" : "2622" ,
"questionFrontendId" : "2480" ,
"categoryTitle" : "Database" ,
"boundTopicId" : 1988205 ,
"title" : "Form a Chemical Bond" ,
"titleSlug" : "form-a-chemical-bond" ,
"content" : null ,
2023-12-09 18:42:21 +08:00
"translatedTitle" : "形成化学键" ,
2022-11-24 20:11:13 +08:00
"translatedContent" : null ,
"isPaidOnly" : true ,
"difficulty" : "Easy" ,
2023-12-09 18:42:21 +08:00
"likes" : 1 ,
2022-11-24 20:11:13 +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-11-24 20:11:13 +08:00
"companyTagStats" : null ,
"codeSnippets" : null ,
2023-12-09 18:42:21 +08:00
"stats" : "{\"totalAccepted\": \"1.1K\", \"totalSubmission\": \"1.3K\", \"totalAcceptedRaw\": 1054, \"totalSubmissionRaw\": 1268, \"acRate\": \"83.1%\"}" ,
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 ,
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-11-24 20:11:13 +08:00
"book" : null ,
"isSubscribed" : false ,
"isDailyQuestion" : false ,
"dailyRecordStatus" : null ,
"editorType" : "CKEDITOR" ,
"ugcQuestionId" : null ,
"style" : "LEETCODE" ,
"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]]}}" ,
"__typename" : "QuestionNode"
}
}
}