質問編集履歴
3
ファイル出力を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,23 +6,25 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
|
9
|
+
using (StreamWriter sw = new StreamWriter(path))
|
10
10
|
|
11
|
+
for(int i = 1; i < N; ++i)
|
12
|
+
|
11
|
-
{
|
13
|
+
{
|
12
14
|
|
13
15
|
|
14
16
|
|
15
|
-
int y = i % A;
|
17
|
+
int y = i % A;
|
16
18
|
|
17
|
-
int x = A - y;
|
19
|
+
int x = A - y;
|
18
20
|
|
19
21
|
|
20
22
|
|
21
|
-
sw.WriteLine($"{"":x}{"■":y}");
|
23
|
+
sw.WriteLine($"{"":x}{"■":y}");
|
22
24
|
|
23
|
-
}
|
25
|
+
}
|
24
26
|
|
25
|
-
|
27
|
+
}
|
26
28
|
|
27
29
|
|
28
30
|
|
2
バグがあったため
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
sw.WriteLine({"":x}{"■":y}");
|
21
|
+
sw.WriteLine($"{"":x}{"■":y}");
|
22
22
|
|
23
23
|
}
|
24
24
|
|
1
空白が消されてしまったため
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
sw.WriteLine({"":x}{"
|
21
|
+
sw.WriteLine({"":x}{"■":y}");
|
22
22
|
|
23
23
|
}
|
24
24
|
|
@@ -34,22 +34,24 @@
|
|
34
34
|
|
35
35
|
結果
|
36
36
|
|
37
|
-
|
37
|
+
□□□□■
|
38
38
|
|
39
|
-
|
39
|
+
□□□■■
|
40
40
|
|
41
|
-
|
41
|
+
□□■■■
|
42
42
|
|
43
|
-
|
43
|
+
□■■■■
|
44
44
|
|
45
|
-
|
45
|
+
■■■■■
|
46
46
|
|
47
|
-
|
47
|
+
□□□□■
|
48
48
|
|
49
|
-
|
49
|
+
□□□■■
|
50
50
|
|
51
|
-
|
51
|
+
□□■■■
|
52
52
|
|
53
|
-
|
53
|
+
□■■■■
|
54
54
|
|
55
|
-
|
55
|
+
■■■■■
|
56
|
+
|
57
|
+
□は全角空白です。
|