回答編集履歴
1
追記
answer
CHANGED
@@ -10,4 +10,19 @@
|
|
10
10
|
std::cout << str << std::endl;
|
11
11
|
}
|
12
12
|
}
|
13
|
+
```
|
14
|
+
[追記] バッテン
|
15
|
+
```C++
|
16
|
+
#include <iostream>
|
17
|
+
#include <string>
|
18
|
+
|
19
|
+
int main() {
|
20
|
+
int n = 10;
|
21
|
+
for ( int i = 0; i < n; ++i ) {
|
22
|
+
std::string str(n,'.');
|
23
|
+
str[i] = '*';
|
24
|
+
str[n-i-1] = '*';
|
25
|
+
std::cout << str << std::endl;
|
26
|
+
}
|
27
|
+
}
|
13
28
|
```
|