From 5a3b3217554b95b4df5e556b6f8138f7e422f465 Mon Sep 17 00:00:00 2001 From: 52871299hzy <33828093+52871299hzy@users.noreply.github.com> Date: Sun, 6 Oct 2019 21:43:54 +0800 Subject: [PATCH] Fixed score for each test data. --- judge.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/judge.py b/judge.py index 4dff3c1..848fbe9 100755 --- a/judge.py +++ b/judge.py @@ -41,7 +41,9 @@ def judge(problemPath, targetPath): result = execute.execute(inputFile, answerFile, "temp/target", testdata["time"], testdata["memory"]) result["id"] = testdata["id"] detail.append(result) - score += testdata["score"] * result["score"] + # score += testdata["score"] * result["score"] + result["score"] *= testdata["score"] + score += result["score"] if result["status"] != "Accepted" and "status" not in summary: summary["status"] = result["status"] if result["time"] is None or summary["time"] is None: