# usaco clean for s in solving solved skipped; do [[ -d "$ROOT/$s" ]] || continue find "$ROOT/$s" -mindepth 2 -maxdepth 2 -type f \ \( -name main -o -name a.out -o -name '*.bak' \) -print -delete | sed "s|^$ROOT/|removed |" done