Divisibility by 11
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Divisibility by is often stated as follows: add the digits standing separately at even and at odd positions. If the difference of these sums is divisible by , then the number is divisible by . Calculate the product of these sums.
Input
A positive integer .
Output
Print the product of sums of digits at even and at odd positions.
Examples
Input #1
Answer #1
Input #2
Answer #2
Input #3
Answer #3
Submissions 10K
Acceptance rate 62%