Say goodbye to annoying manual test runs during an intense programming contest!
Umpire is a blazingly fast command-line helper that compiles your code, executes it, and automatically validates against all test cases.
With just one short command, you can get quick, clear, and easy-to-read results at a glance. It lets you focus on solving problems rather than wasting time juggling with annoying copy-pastes and loads of commands.
Umpire turns testing into your winning edge!
Umpire is available for both Linux and MacOS.
Note
To avoid large package size, please install the compilers that you use:
Umpire is available via Nix flakes. Please enable Nix flakes for your system (here is the doc that explains how to enable it: NixOS Wiki).
- Add the url to your flake.nix input:
- Add the package in environment.systemPackages:
- Rebuild your configuration with Nix flakes enabled.
Use an AUR helper of your choice to get Umpire (like yay and paru):
Run the following command in your terminal:
See the detailed explaination.
The usage guide is also available via the following command: um --help
Organize your code directory as follows:
task-a is the directory that contains the code file and test case folder.
The code file should be named as main.XXX where XXX is the file extension (.cpp for C++).
The test cases should be located in the testcase folder (must be the exact name).
Each test case in the folder must be in the format of ABC.in and ABC.out where ABC is the input / output file name.
Run umpire in the current directory:
Or specify a directory:
Note
For Java programmers, make sure the class name is main.
Set the execution time limit in seconds (accepts integers and decimal numbers):
Tip
Omit for a 1 second time limit
Run the code located in the task-a folder with a 2 second time limit:
.png)

![Gemma3n architecture: a short guide [slides]](https://news.najib.digital/site/assets/img/broken.gif)
