Skip to content

Commands

NotTete edited this page Jul 29, 2024 · 14 revisions

cjudge-create

Its creates problem given a judge and a problem.

Basic usage

cjudge-create judge problem

This will create a problem folder which consists of:

problem
├── main.cpp
├── problem.pdf
├── .meta
└── samples
    ├── 1.in
    └── 2.out

List of available judges:

Note

It is possible to provide no judge. In this case the problem created will have empty test samples, no statement and you won't be able to submit to any judge.

cjudge-create problem

Warning

If you want to download Kattis problem statement you might find some problem if you don't have installed latexmk installed. Because kattis problem statements aren't directly downloaded, instead they are created using LaTeX with my package kattispdf.

Extra parameters

-p PATH, --path PATH: By default the problem will be created as a folder in the current directory. If a PATH is provided it will be created inside the given path.

-f, --force: By default the problem won't be created if the folder already exists. If --force this behaviour is overriden.

--nostatement: By the default the a problem statement is created. If '--nostatement' this behaviour is overriden.

--nosample: By the default the a problem samples are downloaded. If '--nosample' empty sample test will be created.


cjudge-info

Its displays online information of a problem.

Basic usage

cjudge-info judge problem

or

cjudge-info problem-folder

Example

cjudge-info-example.png

Note

In the case of problems without a judge, little to no information will be displayed.

cjudge-submit

Submits a problem to the corresponding judge.

Basic usage

cjudge-submit problem-folder

Important

User and password of the judge will be necessary every time you try to submit a problem.

Warning

When using kattis you will need to introduce your token and username into the config file.

Extra parameters

-n, --notest: By default the problem is tested before being submitted. If --notest this behaviour is overriden.

cjudge-test

Clone this wiki locally