Separate lib, new problems and script for web

This commit is contained in:
2026-08-26 22:25:19 +01:00
parent 6fd6d70b04
commit afdab7d4bd
44 changed files with 1060 additions and 211 deletions
+6
View File
@@ -0,0 +1,6 @@
# usaco template/tpl <name>
[[ $# -ge 1 ]] || usage
dir="$(find_problem "$1")"
[[ -f "$dir/main.cpp" ]] && cp "$dir/main.cpp" "$dir/main.cpp.bak" && echo "Backed up old main.cpp -> main.cpp.bak"
cp "$ROOT/template.cpp" "$dir/main.cpp"
echo "Refreshed $dir/main.cpp from template"