diff --git a/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README.md b/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README.md index eb8b072ee284f..0146db4cca987 100644 --- a/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README.md +++ b/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README.md @@ -143,7 +143,7 @@ public: nums[i] /= 10; } for (int i = 0; i < 10; ++i) { - ans += 1LL * (cnt[i] * (n - cnt[i])); + ans += 1LL * cnt[i] * (n - cnt[i]); } } return ans / 2; diff --git a/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README_EN.md b/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README_EN.md index d26d68ffdbc6f..01de7a1d313b8 100644 --- a/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README_EN.md +++ b/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/README_EN.md @@ -141,7 +141,7 @@ public: nums[i] /= 10; } for (int i = 0; i < 10; ++i) { - ans += 1LL * (cnt[i] * (n - cnt[i])); + ans += 1LL * cnt[i] * (n - cnt[i]); } } return ans / 2; diff --git a/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/Solution.cpp b/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/Solution.cpp index 99bb7c4a65a61..516c9f1647450 100644 --- a/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/Solution.cpp +++ b/solution/3100-3199/3153.Sum of Digit Differences of All Pairs/Solution.cpp @@ -12,9 +12,9 @@ class Solution { nums[i] /= 10; } for (int i = 0; i < 10; ++i) { - ans += 1LL * (cnt[i] * (n - cnt[i])); + ans += 1LL * cnt[i] * (n - cnt[i]); } } return ans / 2; } -}; \ No newline at end of file +};