summaryrefslogtreecommitdiff
path: root/9p40.cpp
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-11-01 10:44:53 +0100
committerOskar <[email protected]>2024-11-01 10:44:53 +0100
commit77b344e13eae4b4439f96a8d062151da03bf8263 (patch)
treec7ed835678354e1877383884f7c061b5930b7328 /9p40.cpp
parentce6f87441ab2343f7730139f20d25b41e9dd6080 (diff)
been a while, took a break i guess
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;
+}