回答編集履歴
1
追記
test
CHANGED
@@ -23,3 +23,33 @@
|
|
23
23
|
}
|
24
24
|
|
25
25
|
```
|
26
|
+
|
27
|
+
[追記] バッテン
|
28
|
+
|
29
|
+
```C++
|
30
|
+
|
31
|
+
#include <iostream>
|
32
|
+
|
33
|
+
#include <string>
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
int main() {
|
38
|
+
|
39
|
+
int n = 10;
|
40
|
+
|
41
|
+
for ( int i = 0; i < n; ++i ) {
|
42
|
+
|
43
|
+
std::string str(n,'.');
|
44
|
+
|
45
|
+
str[i] = '*';
|
46
|
+
|
47
|
+
str[n-i-1] = '*';
|
48
|
+
|
49
|
+
std::cout << str << std::endl;
|
50
|
+
|
51
|
+
}
|
52
|
+
|
53
|
+
}
|
54
|
+
|
55
|
+
```
|