library

Some useful algorithms for competitive programming

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
## Templates

 - `basic.cpp` is a minimalistic template for online contests like Codeforces and AtCoder
 - `template.cpp` is a light template for online contests
 - `usaco.cpp` is a modified version of `template.cpp` for USACO
 
### Notes
 
 - Symlink these files from the repository to your home directory so you can easily `cp ~/basic.cpp .` and `cat ~/template.cpp`
 - The line `if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout);` is to redirect input and  output to files `in` and `out`, if they exist