summaryrefslogtreecommitdiff
path: root/graphs-algo/Makefile
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2021-04-04 20:49:48 +0400
committerAndrew Guschin <saintruler@gmail.com>2021-04-04 20:49:48 +0400
commitaaa6a2375d3621828f062d5f4f09ed8628addd7b (patch)
tree97a1be57545fdd847036fc9f797c29291f47f529 /graphs-algo/Makefile
parent31b49d6551e068f41daae6e38d88bfe8bf5bfb23 (diff)
Добавил алгоритм Прима в алгоритмах на графах
Diffstat (limited to 'graphs-algo/Makefile')
-rw-r--r--graphs-algo/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/graphs-algo/Makefile b/graphs-algo/Makefile
index 5343597..44bfcbf 100644
--- a/graphs-algo/Makefile
+++ b/graphs-algo/Makefile
@@ -6,17 +6,17 @@ task1:
$(COMPILE) -o task.out task1.cpp
test1: task1
@printf "4\n4\n1 2 1\n2 3 1\n3 4 1\n4 1 1\n4\n2" | ./task.out
- @printf "Answer: \n"
+ @printf "Answer: 4 -> 1 -> 2\n"
@printf "4\n4\n1 2 1\n2 3 5\n3 4 1\n4 1 2\n2\n3" | ./task.out
- @printf "Answer: \n"
+ @printf "Answer: 2 -> 1 -> 4 -> 3\n"
@printf "3\n1\n1 2 1\n1 2" | ./task.out
- @printf "Answer: \n"
+ @printf "Answer: 1 -> 2\n"
task2:
$(COMPILE) -o task.out task2.cpp
test2: task2
- @printf "" | ./task.out
- @printf "Answer: \n"
+ @printf "6\n7\n1 2 4\n2 3 2\n3 5 4\n5 4 1\n4 6 2\n6 2 5\n1 3 3" | ./task.out
+ @printf "7\n7\n1 2 4\n2 3 2\n3 5 4\n5 4 1\n4 6 2\n6 2 5\n1 3 3" | ./task.out
clean:
rm -f task.out *.zip