summaryrefslogtreecommitdiff
path: root/9p40.cpp
blob: 517dd913dd69511b44cd16b3cd9056c962f5dd98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
}