Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test.json 17번 오류 #1

Open
spencer0124 opened this issue May 5, 2024 · 0 comments
Open

test.json 17번 오류 #1

spencer0124 opened this issue May 5, 2024 · 0 comments

Comments

@spencer0124
Copy link

"17": {
"category": "Possibility",
"question_ko": "하나의 문제 당 정답은 5점, 부분 정답은 2점, 오답은 0점이다. 세 개의 문제를 채점할 시 얻을 수 있는 총 점의 경우는 모두 몇 가지인가?",
"question_en": "Each correct answer is worth 5 points, a partial answer is worth 2 points, and an incorrect answer is worth 0 points. How many total points can be obtained by scoring the three questions?",
"answer_ko": "18",
"answer_en": "18",
"solution_abst_ko": "[OP_LIST_SOL] 5 2 0 [OP_LIST_EOL] 3 [OP_LIST_GET_PRODUCT] [OP_LIST_NUM2SUM] [OP_LIST_LEN]",
"solution_abst_en": "[OP_LIST_SOL] 5 2 0 [OP_LIST_EOL] 3 [OP_LIST_GET_PRODUCT] [OP_LIST_NUM2SUM] [OP_LIST_LEN]",
"solution_code_ko": "var_a = 5\nvar_b = 2\nvar_c = 0\nlist_a= []\nif "/" in str(var_c):\n var_c = eval(str(var_c))\nlist_a.append(var_c)\nif "/" in str(var_b):\n var_b = eval(str(var_b))\nlist_a.append(var_b)\nif "/" in str(var_a):\n var_a = eval(str(var_a))\nlist_a.append(var_a)\nlist_a.reverse()\nvar_d = 3\nlist_b = [str(i) for i in list_a]\nlist_b = list(itertools.product(list_b, repeat=var_d))\nlist_b = [''.join(num_list) for num_list in list_b]\nlist_b = [str_num for str_num in list_b if str_num[0] != '0']\nlist_b = [float(i) for i in list_b]\nlist_c=[]\nfor i in list_b:\n var_e = 0\n i = int(i)\n while i//10 > 0:\n var_e = var_e + i%10\n i = i//10\n var_e = var_e + i%10\n list_c.append(var_e)\nvar_f = len(list_c)\nprint(int(var_f))",
"solution_code_en": "var_a = 5\nvar_b = 2\nvar_c = 0\nlist_a= []\nif "/" in str(var_c):\n var_c = eval(str(var_c))\nlist_a.append(var_c)\nif "/" in str(var_b):\n var_b = eval(str(var_b))\nlist_a.append(var_b)\nif "/" in str(var_a):\n var_a = eval(str(var_a))\nlist_a.append(var_a)\nlist_a.reverse()\nvar_d = 3\nlist_b = [str(i) for i in list_a]\nlist_b = list(itertools.product(list_b, repeat=var_d))\nlist_b = [''.join(num_list) for num_list in list_b]\nlist_b = [str_num for str_num in list_b if str_num[0] != '0']\nlist_b = [float(i) for i in list_b]\nlist_c=[]\nfor i in list_b:\n var_e = 0\n i = int(i)\n while i//10 > 0:\n var_e = var_e + i%10\n i = i//10\n var_e = var_e + i%10\n list_c.append(var_e)\nvar_f = len(list_c)\nprint(int(var_f))"
},

17번에서 주어진 코드로 계산을 하거나, 직접 계산을 해봐도 10이 나오는데 정답이 18로 되어있습니다.
확인 후 수정이 필요해보입니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant