- Every problem here is written in a workspace managed by Run it as Clone the repo and run Or add this to
That makes ./usaco, a small bash script at
- the repo root. Each problem lives in solving/, solved/ or
+ Every problem here is written in a workspace managed by ./usaco, a small bash script at
+ the root of the repo on Gitea (the commands themselves are in
+ lib/cmd/). Each problem lives in solving/, solved/ or
skipped/ as a directory with main.cpp and its .in/.out
files. Wherever a command takes a problem name, a unique prefix works too:
usaco e diam finds diamond-collector.
@@ -90,11 +96,14 @@ usaco [watermelon:solved]> q`;
Setup
./usaco from the repo root, or add this to ~/.zshrc:
+ source ~/Coding/USACO/usaco.zsh./usaco from its root:
+ git clone https://www.adam-french.co.uk{{ repo }}.git~/.zshrc:source ~/Coding/USACO/usaco.zshusaco a global command, adds tab completion for commands and problem names, and
- adds ucd <name> to cd into a problem's directory.
+ adds ucd <name> to cd into a problem's directory. The full reference is the
+ README.
- usaco builds define LOCAL, which the template uses to include
- debugging.h (pretty-printers for vectors, maps and pairs) and enable its
+ usaco builds define LOCAL, which the template uses to include
+ debugging.h (pretty-printers for vectors, maps and pairs) and enable its
DBG(x) macros. The judge doesn't define it, so main.cpp is submittable as-is.