- done/skip/undo accept unique prefixes like every other command - builds define LOCAL (-I repo root): the template includes debugging.h and enables DBG/printV only locally, so main.cpp is submittable as-is - run/build/test --debug (or USACO_DEBUG=1): ASan/UBSan + _GLIBCXX_DEBUG - list/stats date problems by git history, not mtimes reset by checkouts - template/tpl is now an alias of reset (which gains -y); fixes template dropping the STDIO line - run shows <io>.out via detect_io instead of the first *.out - debugging.h: size_t loop indices (no -Wsign-compare noise) - zsh completion for i/cat/copy; README covers test, io, reset, --debug - ignore a.out Co-Authored-By: Claude Opus 5.5 <[email protected]>
19 lines
550 B
Bash
19 lines
550 B
Bash
# usaco list
|
|
list_by_mtime() { # list subdirs of $1 oldest-first by last modification
|
|
[[ -d "$1" ]] || return 0
|
|
for d in "$1"/*/; do
|
|
[[ -d "$d" ]] || continue
|
|
printf '%s\t%s\n' "$(last_touched "${d%/}")" "$(basename "$d")"
|
|
done | sort -n | cut -f2 | sed 's/^/ /'
|
|
}
|
|
echo "== Solving =="
|
|
list_by_mtime "$ROOT/solving"
|
|
echo
|
|
echo "== Solved =="
|
|
list_by_mtime "$ROOT/solved"
|
|
if [[ -d "$ROOT/skipped" && -n "$(ls -A "$ROOT/skipped" 2>/dev/null)" ]]; then
|
|
echo
|
|
echo "== Skipped =="
|
|
list_by_mtime "$ROOT/skipped"
|
|
fi
|