-->
当前位置:首页 > 题库

PROGRAMMING:Calculate the sum of the products of the corresponding bits

Luz5年前 (2021-05-10)题库395
Read in two integers a and B, and output the sum of the products of the corresponding bits of absolute value a and absolute value B, such as a = 1234, B = 608, then the output value is: "1 & times; 0+2× 6+3× 0+4× 8 ", that is 44.
###Input format:
Enter two numbers in a row
###Output format:
Output the sum of the corresponding bit products in one line
###Input example:
Here is a set of inputs. For example:
```in
1234 608
```
###Output example:
The corresponding output is given here. For example:
```out
forty-four
```







answer:If there is no answer, please comment