summaryrefslogtreecommitdiff
path: root/9p40.cpp
diff options
context:
space:
mode:
Diffstat (limited to '9p40.cpp')
-rw-r--r--9p40.cpp30
1 files changed, 30 insertions, 0 deletions
diff --git a/9p40.cpp b/9p40.cpp
new file mode 100644
index 0000000..517dd91
--- /dev/null
+++ b/9p40.cpp
@@ -0,0 +1,30 @@
+#include <iostream>
+#include <vector>
+
+/*
+ *
+ * 9.40
+ *
+ *
+ */
+
+int main () {
+
+ /*
+ 256 words = 1024
+ 512 words = 1024
+ 1000 words = 2000
+ 1048 words = 2048
+ */
+
+ std::vector<std::string> svec;
+ svec.reserve(1024);
+ std::string word;
+ while (std::cin >> word) {
+ svec.push_back(word);
+ }
+
+ svec.resize(svec.size()+svec.size()/2);
+ std::cout << svec.capacity() << std::endl;
+ return 0;
+}