#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> dyn;
dyn.resize(1);
dyn[0] = 100;
cout << dyn.size() << endl;
dyn.resize(2);
cout << dyn.size() << endl;
dyn[1] = 200;
cout << dyn[0] << endl;
cout << dyn[1] << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCXZlY3RvcjxpbnQ+IGR5bjsKCQoJZHluLnJlc2l6ZSgxKTsKCQoJZHluWzBdID0gMTAwOwoJCgljb3V0IDw8IGR5bi5zaXplKCkgPDwgZW5kbDsKCQoJZHluLnJlc2l6ZSgyKTsKCQoJY291dCA8PCBkeW4uc2l6ZSgpIDw8IGVuZGw7CgkKCWR5blsxXSA9IDIwMDsKCQoJY291dCA8PCBkeW5bMF0gPDwgZW5kbDsKCWNvdXQgPDwgZHluWzFdIDw8IGVuZGw7CgkKCXJldHVybiAwOwp9