#abc187a. A - Large Digits
A - Large Digits
Score : points
问题陈述
对于一个整数 ,让 表示 在十进制表示中的数字之和。例如,我们有 。
给定两个三位数整数 和 ,找出 和 中较大的一个。
以上为大语言模型 kimi 翻译,仅供参考。
Problem Statement
For an integer , let be the sum of digits in the decimal notation of . For example, we have .
Given two -digit integers and , find the greater of and .
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the value of the greater of and .
If these are equal, print .
Sample Input 1
123 234
Sample Output 1
9
We have and , so we should print the greater of these: .
Sample Input 2
593 953
Sample Output 2
17
Sample Input 3
100 999
Sample Output 3
27