5393: 【32课】【3194】数位积

Memory Limit:128 MB Time Limit:1.000 S
Judge Style:Text Compare Creator:
Submit:52 Solved:30

Description

給出一个非负整数n,请求出n中各个数位上的数字之和。

Input

一开始有一个整数 T(1T100),表示共有几组测试数据。接下来有T个整数n(0n<2147483648)。

Output

输出数位数字乘积的结果。

Sample Input Copy

3
356
123
9999

Sample Output Copy

90
6
6561