← Tools

cpl new

create a problem from its constraints or samples

usage: cpl new <name> [options]

Creates <name>.cp and <name>.tests/.

options:
  --constraints TEXT   the input, as `name: type` separated by `;`:
                       "n, q: 1..=2e5; a: [n]0..=1e9"
  --companion FILE     a Competitive Companion problem (JSON; `-` reads
                       stdin): its title, limits and samples
  --listen             wait for the Competitive Companion browser extension
                       to send the problem (or every problem of a contest)
                       and create it; <name> is optional
  --port N             the port `--listen` waits on (default 10043, one of
                       the ports the extension sends to out of the box)
  --time-limit MS      the problem's time limit in milliseconds
  --memory-limit MB    the problem's memory limit in megabytes

Generated from cpl 0.2.2 (dev, a0d0078e).