> For the complete documentation index, see [llms.txt](https://xgn.gitbook.io/hhsoj-essential-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xgn.gitbook.io/hhsoj-essential-doc/problem-setup/dealing-with-scoring.md).

# Dealing with scoring

100 pts!

Scoring is a big part of the features of HHSOJ-Essential.

## What's the score of each testcase?

The score of a testcase is a float from 0.0 to 1.0. Accepted are considered as 1.0 and other verdicts are considered as 0.0. If the checker returned a score, that score will be used.

## What's the score of a subtask?

The score of a subtask is defined as the scheme function over the testcase scores.

For example, if in a subtask, the scores are `[0,1,0.5]`

| Scheme | Result |
| ------ | ------ |
| min    | 0      |
| max    | 1      |
| sum    | 1.5    |
| avg    | 0.5    |

## What's the score of a submission?

The score of a submission is defined as the weighted sum of the score of each subtask.&#x20;

Let the number of subtasks to be N ,score of the i-th subtask to be $$S\_i$$and the base score ratio is $$B\_i$$.

The score of the submission $$S\_s=\sum\_{i=0}^{N}S\_i\times B\_i$$

When displaying, the value will be multipied by 100.
