Toggle navigation
编绘童年
F.A.Qs
ProblemSet
Source/Category
Status
Ranklist
Contest
Login
Problem2554--数字分离---两个数数位和的差
2554: 数字分离---两个数数位和的差
Time Limit:
1
Sec
Memory Limit:
128 MB
Submit:
100
Solved:
55
[
Status
] [
Submit
] [Creator:
]
Description
输入两个数字a和b,求a的各位之和与b的各位之和的差
Input
两个正整数a,b(a,b均在int范围内)
Output
a的各位之和与b的各位之和的差(输出绝对值的结果,负数变正数)
Sample Input
Copy
87905 50505
Sample Output
Copy
14
Source/Category
基础C