rust: add p1, p2

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-10-27 04:16:43 +05:30
parent 6c89f18e9d
commit 4e98bf2115
5 changed files with 30 additions and 3 deletions

View File

@@ -10,9 +10,7 @@ version = "0.1.0"
edition = "2021"
EOF
if ! [ -e ./src/p*.rs ]; then
exit 0
fi
[[ ! $(ls ./src/p*.rs) ]] && exit 0
for problem in ./src/p*.rs; do
file=${problem##*/}