|
|
@ -205,7 +205,7 @@ const SubtaskMatcher: MatchRule[] = [
|
|
|
|
|
|
|
|
|
|
|
|
function* getScore(totalScore: number, count: number) {
|
|
|
|
function* getScore(totalScore: number, count: number) {
|
|
|
|
const base = Math.floor(totalScore / count);
|
|
|
|
const base = Math.floor(totalScore / count);
|
|
|
|
const extra = count - (100 % count);
|
|
|
|
const extra = count - (totalScore % count);
|
|
|
|
for (let i = 0; i < count; i++) {
|
|
|
|
for (let i = 0; i < count; i++) {
|
|
|
|
if (i >= extra) yield base + 1;
|
|
|
|
if (i >= extra) yield base + 1;
|
|
|
|
else yield base;
|
|
|
|
else yield base;
|
|
|
|