summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2022/Makefile2
-rwxr-xr-x2022/script.sh10
2 files changed, 5 insertions, 7 deletions
diff --git a/2022/Makefile b/2022/Makefile
index 35528a2..08000ae 100644
--- a/2022/Makefile
+++ b/2022/Makefile
@@ -2,4 +2,4 @@ all:
@g++ main.cpp -o ans.o
run:
- ./ans < input.txt
+ ./ans.o < input.txt
diff --git a/2022/script.sh b/2022/script.sh
index cdb5e16..1bc63c4 100755
--- a/2022/script.sh
+++ b/2022/script.sh
@@ -1,10 +1,8 @@
#!/bin/sh
+read N
-for i in {3..25}
-do
- echo "d" | ~/.scripts/cpp_ps.sh "Day$i"
- cp Makefile Day$i
- touch "Day$i"/input.txt
-done
+echo "d" | ~/.scripts/cpp_ps.sh "Day$N"
+cp Makefile Day$N
+touch "Day$N"/input.txt