1273: (2026)实验1-2B 百位与个位之和 / Sum of Hundreds and Units Digits
Memory Limit:128 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:62
Solved:28
Description
【中文题面】
输入一个三位正整数,求它的百位数字与个位数字之和。
[English Description]
Input a 3-digit positive integer and output the sum of its hundreds digit and units digit.
输入一个三位正整数,求它的百位数字与个位数字之和。
[English Desc
Input a 3-digit positive integer and output the sum of its hundreds digit and units digit.
Input
【输入】
输入一个三位正整数。
[Input]
One 3-digit positive integer.
输入一个三位正整数。
[Input]
One 3-digit positive integer.
Output
【输出】
输出一个整数,表示百位数字与个位数字之和。
[Output]
Output one integer, the sum of the hundreds digit and the units digit.
输出一个整数,表示百位数字与个位数字之和。
[Output]
Output one integer, the sum of the hundreds digit and the units digit.
Sample Input Copy
572
Sample Output Copy
7