#C. 奶牛乘法

    Type: Default 1000ms 256MiB

奶牛乘法

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

做厌了乘法计算题的佳佳,自创了一种新的乘法运算法则。在这套法则里,A*B等于一个取自A、一个取自B的所有数字对的乘积的和。

例如,12345等于14+15+24+25+34+35=54123*45等于1*4+1*5+2*4+2*5+3*4+3*5=54

本题的任务是,对于给定的数A和B,用新的乘法法则计算A*B的值。

输入 一行两个用一个空格隔开的整数A和B,1≤A、B≤10^9^。

输出 一行一个整数,表示新的乘法法则下A*B的值。

样例输入

123 45

样例输出

54

5.11模拟测试

Not Attended
Status
Done
Rule
Ledo
Problem
6
Start at
2025-5-11 19:15
End at
2025-5-11 20:15
Duration
1 hour(s)
Host
Partic.
8