https://github.com/eightsq/cp-domjudge-contest-scripts
shell scripts for downloading contest data from and submitting solutions to DOMjudge instances
https://github.com/eightsq/cp-domjudge-contest-scripts
Last synced: 12 months ago
JSON representation
shell scripts for downloading contest data from and submitting solutions to DOMjudge instances
- Host: GitHub
- URL: https://github.com/eightsq/cp-domjudge-contest-scripts
- Owner: EightSQ
- Created: 2020-08-11T20:46:29.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T20:46:43.000Z (almost 6 years ago)
- Last Synced: 2025-02-15T00:45:21.739Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# domjudge submit shell scripts
Some shell scripts for DOMjudge contest cloning and submissions (as a participant).
This probably works primarily on Linux and macOS.
## Prerequisites
You wil need
- `curl`
- `httpie`
- `xdg-open` (optional)
## Configuration
Create the following files.
- `$HOME/.config/domjudge/session` containing your *PHPSESSID* cookie
- `$HOME/.config/domjudge/judgeurl` containing the base url of the DOMjudge instance.
## Usage
Go to an appropriate directory and run `clone_contest.sh` there with a contest id as argument. E.g., can find it in the `domjudge_cid` cookie in your browser. This will create one directory for each problem.
Being in such problem directory and having a solution source file like e.g. `solution.cpp`, run `submit.sh` with the source file as argument. Do not remove the `.contest` and `.problem` files, they are needed by the `submit.sh` script.
## Customization
To add more languages, you will need to find their judge submission form values (i.e. **cpp17** for C++) and modify `submit.sh` accordingly.
There is a callback for the creation of each problem directory in `clone_contest.sh` script.