My site for notes on competitive programming.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cp
notes
ref
solutions
tools
.gitignore
Collegiate competitions.txt
README.md
compprogramming-docs.txt
index.html

README.md

This repository is a mirror of my competitive programming site. It is primarily intended for reference by myself and other members of the programming team at the University of Alabama, but anyone is welcome to find it useful.

Sites for problems

More listed in notes: 2019-01-17, 2019-01-24

Books

Compiling & running solutions

The commands below emulate how submissions are compiled and run at competitions and practice sites (some flags that shouldn't affect a solution's correctness unless you're doing something very strange are omitted for brevity):

  • C++: g++ -std=c++14 -O2 solution.cpp && ./a.out < input.txt
  • C: gcc -O2 solution.c && ./a.out < input.txt
  • Java: javac Solution.java && java Solution < input.txt
  • Python 3: python3 solution.py < input.txt
  • Python 2: python2 solution.py < input.txt
  • Perl: perl solution.pl < input.txt

Use -g for gcc/g++ to get additional debugging information out of your runtime errors.

All solutions (even Java) must be one file.