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
Copy file name to clipboardExpand all lines: spec/2023-07-draft.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -392,13 +392,13 @@ where `name` is one of the names defined in `constants`.
392
392
Tags {% raw %}`{{xyz}}`{% endraw %} containing a name that is not defined are not modified but may be warned for.
393
393
394
394
All constant sequences in the following files will be replaced by the value of the corresponding constant:
395
-
- problem statements
396
395
- input and output validators
397
396
- included code
398
397
- example submissions
399
398
- `testdata.yaml`
400
399
401
400
Constant sequences are **not** replaced in test data files or in `problem.yaml` itself.
401
+
Note that constants are also available in the problem statements via the dedicated command `\constant{name}`.
402
402
403
403
## Problem Statements
404
404
@@ -448,6 +448,7 @@ It shall also provide the following commands:
448
448
It is an error to use `\nextsample` when there are no remaining sample test cases.
449
449
- `\remainingsamples`, tells the judge system to include all sample test cases that have not previously been included by `\nextsample`.
450
450
It is allowed to use `\remainingsamples` even if there are no remaining sample test cases, which will simply include nothing.
451
+
- `\constant{name}` evaluates to the value of the corresponding constant, see [constants](#constants).
451
452
452
453
Arbitrary LaTeX is not guaranteed to render correctly by HTML-based judging systems.
453
454
However, judging systems must make a best effort to correctly render **at minimum** the following LaTeX subset when displaying a LaTeX problem statement:
0 commit comments