Skip to content

File difference tool for competitive programming.

Notifications You must be signed in to change notification settings

ChrisVilches/cpdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Usage

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 -

More competitive programming tools

C++ Runner

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.

Kattis Scraper

Scrapes the entire Kattis website, downloads all problems and helps you perform complex queries to find interesting problems.

https://github.com/ChrisVilches/Kattis-Scraper

Contribution

Feature requests, issues, bug reports, pull requests are welcome.

About

File difference tool for competitive programming.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published