Fix scoring calculation to ensure maximum score does not exceed 40

This commit is contained in:
2025-01-18 17:33:13 +09:00
parent 989922b746
commit 757b5f9d60

View File

@@ -330,7 +330,7 @@ class XMLScorer:
# print(diff)
# result_diff 배열의 길이를 맨 앞에 저장
temp = min(len(result_diff)*2, 40)
temp = 40 - min(len(result_diff)*2, 40)
result_diff.insert(0, temp)
return result_diff