You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`max_score` | Integer or `unbounded` | 100 in `secret`, otherwise `unbounded` | The maximum possible score of the test data group or `secret`. Must be a non-negative integer or `unbounded`. This key is not permitted in `sample`.
577
-
`score_aggregation` | `pass-fail`, `sum`, or `min` | `sum` in `secret`, otherwise `pass-fail` | How the score is determined based on the scores of the contained groups or test cases. [See Result Aggregation](#result-aggregation). This key is not permitted in `sample`.
578
-
`static_validation_score` | Integer or `pass-fail` | | The maximum score of the static validation test case, or `pass-fail`. See [Static Validator](#static-validator).
579
-
`require_pass` | String or sequence of strings | empty sequence | Other test data groups (or `sample`) whose test cases a submission must pass in order to receive a score for this test data group. [See Result Aggregation](#result-aggregation). This key is not permitted in `sample`.
577
+
`score_aggregation` | `pass-fail`, `sum`, or `min` | `sum` in `secret`, otherwise `pass-fail` | How the score is determined based on the scores of the contained groups or test cases. See [Result Aggregation](#result-aggregation). This key is not permitted in `sample`.
578
+
`static_validation_score` | Integer or `pass-fail` | | The maximum score of the static validation test case, or `pass-fail`. See [Static Validator](#static-validator).
579
+
`require_pass` | String or sequence of strings | empty sequence | Other test data groups (or `sample`) whose test cases a submission must pass in order to receive a score for this test data group. See [Result Aggregation](#result-aggregation). This key is not permitted in `sample`.
580
580
`args` | Sequence of strings | empty sequence | See [Test Case Configuration](#test-case-configuration).
581
581
`input_validator_args` | Sequence of strings or map of strings to sequences of strings | empty sequence | See [Test Case Configuration](#test-case-configuration).
582
582
`static_validator_args` | Sequence of strings | empty sequence | See [Static Validator](#static-validator).
@@ -1297,10 +1297,14 @@ The goal of each submission is to maximize this score.
1297
1297
Given a submission, scores are determined for test cases, [test data groups](#test-data-groups), and `secret` (which is the score of the submission itself).
1298
1298
The scoring behavior is configured for `secret` and each test data group by `max_score`, `score_aggregation`, and `require_pass` in its [`test_group.yaml`](#test-data-configuration).
1299
1299
1300
+
The value of `score_aggregation` determines how the score of `secret` or a test data group is computed; see [Scoring Test Groups](#scoring-test-groups).
1300
1301
The default value of `score_aggregation` is `sum` for `secret` and `pass-fail` for test data groups.
1302
+
If `secret` has `pass-fail` aggregation, then so must all of its test data groups.
1303
+
1304
+
The `require_pass` key may be used to indicate that `secret` or a test data group should only be scored if all test cases in `sample` or an earlier test data group received an accepted verdict; see [Required Dependent Groups](#required-dependent-groups).
1301
1305
The default value of `require_pass` is an empty sequence.
1302
1306
1303
-
For `secret`, all test data groups, and every test case in a group with `sum` or `min` aggregation, there is a maximum possible score.
1307
+
For `secret`, all test data groups with `sum` or `min` aggregation, and every test case in a group with `sum` or `min` aggregation, there is a maximum possible score.
1304
1308
The default value of `max_score` for `secret` is 100.
1305
1309
The default value of `max_score` for test data groups is `unbounded`.
1306
1310
Test data groups may only have `unbounded` maximum score if `secret` is unbounded.
@@ -1333,6 +1337,7 @@ It is a judge error if:
1333
1337
- an output or static validator produces a `score_multiplier.txt` for a test case with unbounded maximum score;
1334
1338
- an output or static validator produces both a `score.txt` and a `score_multiplier.txt` for a test case;
1335
1339
- an output or static validator produces a `score.txt` or `score_multiplier.txt` for a test case in a group with `pass-fail` aggregation;
1340
+
- an output or static validator produces a `score.txt` for a test case with bounded maximum score with a value that exceeds this maximum score;
1336
1341
- an output or static validator produces a `score.txt` or `score_multiplier.txt` with invalid contents.
0 commit comments