回答編集履歴
1
%= に変更
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
for (int c = 0, j = 0; j < n; j++)
|
30
30
|
|
31
|
-
a[j] = a[j] * 3 + c, c = a[j] / 10, a[j] =
|
31
|
+
a[j] = a[j] * 3 + c, c = a[j] / 10, a[j] %= 10;
|
32
32
|
|
33
33
|
while (--n >= 0) printf("%d", a[n]);
|
34
34
|
|