回答編集履歴

1

別解の追加

2021/04/29 08:04

投稿

kazuma-s
kazuma-s

スコア8224

test CHANGED
@@ -23,3 +23,27 @@
23
23
  }
24
24
 
25
25
  ```
26
+
27
+ 別解
28
+
29
+ ```java
30
+
31
+ class Main {
32
+
33
+ public static void main(String[] args) {
34
+
35
+ char[] a = "00 01 02 03 04 05 06 07 08 09".toCharArray();
36
+
37
+ for (char c = '0'; c <= '9'; c++) {
38
+
39
+ for (int i = 0; i < 30; i += 3) a[i] = c;
40
+
41
+ System.out.println(a);
42
+
43
+ }
44
+
45
+ }
46
+
47
+ }
48
+
49
+ ```