aboutsummaryrefslogtreecommitdiff
path: root/Template/README.md
blob: 504ebf07112ebe2bf152b335e85e6dcc252922c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
## Templates

 - `basic.cpp` is a minimalistic template for online contests like Codeforces and AtCoder
 - `template.cpp` is a lightweight template for online contests
 - `usaco.cpp` is a slightly modified version of `template.cpp` for USACO
 
### Notes
 
 - Symlink these files from the repository to your home directory as `.b`, `.t`, and `.u`, so you can easily `cp ~/.b main.cpp` and `cat ~/.t`
 - 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
 - For the `usaco.cpp` template, replace `name` with the name of the problem