#5917. 【例32.3】 数位积
【例32.3】 数位积
Description
給出一个非负整数,请求出中各个数位上的数字之和。
Input Format
一开始有一个整数 (),表示共有几组测试数据。接下来有个整数()。
Output Format
输出数位数字乘积的结果。
3
356
123
9999
90
6
6561
給出一个非负整数n,请求出n中各个数位上的数字之和。
一开始有一个整数 T(1≤T≤100),表示共有几组测试数据。接下来有T个整数n(0≤n<2147483648)。
输出数位数字乘积的结果。
3
356
123
9999
90
6
6561
By signing up a 津桥OJ universal account, you can submit code and join discussions in all online judging services provided by us.