Crate ezcp

source ·

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 and max_n (inclusive). The values in the array will be between min_x and max_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 and max_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 is true, it will return the string “3\n1 2 3\n”. If include_count is false, it will return the string “1 2 3\n”.