回答編集履歴
2
コード追記
answer
CHANGED
@@ -9,4 +9,7 @@
|
|
9
9
|
std::vector<std::vector<int>> a(2);
|
10
10
|
a[0].resize(3);
|
11
11
|
a[1].resize(5);
|
12
|
+
```
|
13
|
+
```C++
|
14
|
+
std::vector<std::vector<int>> a = {std::vector<int>(3), std::vector<int>(5)};
|
12
15
|
```
|
1
コード追記
answer
CHANGED
@@ -3,4 +3,10 @@
|
|
3
3
|
std::vector<std::vector<int>> a;
|
4
4
|
a.push_back(std::vector<int>(3));
|
5
5
|
a.push_back(std::vector<int>(5));
|
6
|
+
```
|
7
|
+
もしくは
|
8
|
+
```C++
|
9
|
+
std::vector<std::vector<int>> a(2);
|
10
|
+
a[0].resize(3);
|
11
|
+
a[1].resize(5);
|
6
12
|
```
|