回答編集履歴
1
インデント修正
test
CHANGED
@@ -16,19 +16,19 @@
|
|
16
16
|
|
17
17
|
if (val < 0) {
|
18
18
|
|
19
|
-
|
19
|
+
minus = true;
|
20
20
|
|
21
|
-
|
21
|
+
val = -val;
|
22
22
|
|
23
23
|
}
|
24
24
|
|
25
25
|
do {
|
26
26
|
|
27
|
-
|
27
|
+
if (idx % 4 == 2) chars[idx--] = ',';
|
28
28
|
|
29
|
-
|
29
|
+
chars[idx--] = (char)('0' + (val % 10));
|
30
30
|
|
31
|
-
|
31
|
+
val /= 10;
|
32
32
|
|
33
33
|
} while(val != 0);
|
34
34
|
|