303384: CF656F. Ace It!
Memory Limit:64 MB
Time Limit:2 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
Ace It!
题意翻译
求各位数字之和,其中A是1,1是10,其他数就是它本身。题目描述
输入输出格式
输入格式
The only line of the input is a string of 7 characters. The first character is letter A, followed by 6 digits. The input is guaranteed to be valid (for certain definition of "valid").
输出格式
Output a single integer.
输入输出样例
输入样例 #1
A221033
输出样例 #1
21
输入样例 #2
A223635
输出样例 #2
22
输入样例 #3
A232726
输出样例 #3
23