IMPORTANT
The project was moved (and rewritten in Go) to:
https://github.com/ChrisVilches/cpdiff
Install using (globally since it's a CLI application):
npm install -g cpdiff
Compare your program's output to the accepted answer:
./your_program < data.in | cpdiff data.out
This is a simple utility for comparing the output of your program to the accepted answer or sample output. The name stands for competitive programming difference.
This program was developed because programs like sdiff
or diff
completely deform the layout when there are too many differences. This tool is meant to be specific for competitive programming.
Compare two files:
cpdiff file1 file2
Specify only one file, but pass the output of some other program as input (stdin).
some_program | cpdiff file1
Use -
(dash) to specify which side of the comparison should receive input from stdin.
cpdiff - file1
# or
cpdiff file1 -
Try my C++ runner. I use this program to quickly run C++ files as if they were scripts, using the simple c++ my_program.cpp
command.
Scrapes the entire Kattis website, downloads all problems and helps you perform complex queries to find interesting problems.
https://github.com/ChrisVilches/Kattis-Scraper
Feature requests, issues, bug reports, pull requests are welcome.