質問するログイン新規登録

回答編集履歴

1

追記

2020/06/29 04:14

投稿

episteme
episteme

スコア16612

answer CHANGED
@@ -8,4 +8,18 @@
8
8
  vector<double> b = {1,1,1};
9
9
  ...
10
10
  }
11
+ ```
12
+ あるいは
13
+ ```C++
14
+ #include <iostream>
15
+ #include <vector>
16
+
17
+ int main() {
18
+ using namespace std;
19
+ vector<vector<double>> A;
20
+ A.assign({{3,-1,-1},{-1,3,-1},{-1,-1,3}});
21
+ vector<double> b;
22
+ b.assign({1,1,1});
23
+ ...
24
+ }
11
25
  ```