From 523b4ebd3adeffcb34c406149a3bc186917b70cb Mon Sep 17 00:00:00 2001 From: Pisces000221 <1786762946@qq.com> Date: Fri, 17 Feb 2017 15:21:01 +0800 Subject: [PATCH] Set default score value for subtasks --- utility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utility.js b/utility.js index 6c2b75d..7618582 100644 --- a/utility.js +++ b/utility.js @@ -194,7 +194,7 @@ module.exports = { if (numbers[0].includes(':')) { let tokens = numbers[0].split(':'); res[s].type = tokens[0] || 'sum'; - res[s].score = parseInt(tokens[1]); + res[s].score = parseInt(tokens[1]) || (100 / (lines.length - 2)); numbers.shift(); } else { res[s].type = 'sum';