Skip to content

Commit 9c03a49

Browse files
committed
fix cpp test
1 parent 042409d commit 9c03a49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/problem_0043/multiply_strings.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class Solution {
4747
const int a = num1[j] - '0';
4848
const int b = num2[i] - '0';
4949
const int current = a * b + carry + result[result_index];
50-
carry = floor(current / 10);
50+
carry = current / 10;
5151
result[result_index] = current % 10;
5252
if (j == 0 && carry > 0) {
5353
result[num1.length() + flag] += carry;

0 commit comments

Comments
 (0)