.. | ||
basic.cpp | ||
README.md | ||
template.cpp | ||
usaco.cpp |
Templates
basic.cpp
is a minimalistic template for online contests like Codeforces and AtCodertemplate.cpp
is a lightweight template for online contestsusaco.cpp
is a slightly modified version oftemplate.cpp
for USACO
Notes
- Symlink these files from the repository to your home directory so you can easily
cp ~/basic.cpp .
andcat ~/template.cpp
- The line
if (fopen("in", "r")) freopen("in", "r", stdin), freopen("out", "w", stdout);
is to redirect input and output to filesin
andout
, if they exist - For the
usaco.cpp
template, replacename
with the name of the problem