499. Product Minus Sum of Digits
EasyMath
Print the product of n's digits minus the sum of its digits.
Input format
One integer n
Output format
The difference.
Example 1
Input
234
Output
15
Example 2
Input
4421
Output
21
Constraints
1 ≤ n ≤ 10⁵
Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.
Loading the MyLoginn IDE…