Structs§
- This struct represents a combinatorial undirected graph. It is used to generate the input for test cases and to check the output of solutions.
- Input is a helper struct for parsing input. It is used by the generators to parse the input string. It ignores different kinds of whitespace.
- This struct represents a subtask. You can add tests, test generators and set a checker function. Once you are done, you can add the subtask to a task.
- This struct represents an entire task. You can add subtasks, partial solutions and set the time limit. Once you are done, you can create tests for the task.
Functions§
- This function returns a function that generates an array of integers. The array will have a length between
min_n
andmax_n
(inclusive). The values in the array will be betweenmin_x
andmax_x
(inclusive). - This function returns a function that generates an array of integers with a custom generator. The array will have a length between
min_n
andmax_n
(inclusive). The generator function will be called to generate each element in the array. - This function converts an array of integers to a string. It is used to generate the input for test cases. If it receives an array of [1, 2, 3] and
include_count
istrue
, it will return the string “3\n1 2 3\n”. Ifinclude_count
isfalse
, it will return the string “1 2 3\n”.