回答編集履歴

1

%= に変更

2020/05/31 09:11

投稿

kazuma-s
kazuma-s

スコア8224

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] = a[j] % 10;
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