mirror of
https://github.com/QingdaoU/JudgeServer.git
synced 2025-11-04 14:50:01 +08:00
strip -> rstrip
This commit is contained in:
parent
e2b0f4b4a0
commit
f758d2fe7b
@ -60,7 +60,7 @@ class JudgeClient(object):
|
||||
user_output_file = os.path.join(self._submission_dir, str(test_case_file_id) + ".out")
|
||||
with open(user_output_file, "r") as f:
|
||||
content = f.read()
|
||||
output_md5 = hashlib.md5(content.strip()).hexdigest()
|
||||
output_md5 = hashlib.md5(content.rstrip()).hexdigest()
|
||||
result = output_md5 == self._get_test_case_file_info(test_case_file_id)["striped_output_md5"]
|
||||
return output_md5, result
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user