diff --git a/f1.cpp b/f1.cpp index 97ea106..4720dc1 100644 --- a/f1.cpp +++ b/f1.cpp @@ -29,6 +29,7 @@ bool F1::run() } vector> edges; + edges.reserve(total); for (int i = 2; i <= N; ++i) { edges.push_back({1, i}); @@ -43,4 +44,4 @@ bool F1::run() } return true; -} +} \ No newline at end of file diff --git a/post_test.sh b/post_test.sh old mode 100755 new mode 100644