A - Digits of A+B
Editorial
/
/
Time Limit: 2 sec / Memory Limit: 1024 MiB
配点 : 100 点
問題文
1 以上 9 以下の整数 A,B が与えられます。
A+B の値の桁数を求めてください。
制約
- A,B は 1 以上 9 以下の整数
入力
入力は以下の形式で標準入力から与えられる。
A B
出力
答えを出力せよ。
入力例 1
4 9
出力例 1
2
4+9=13 であり、13 は 2 桁の数です。
入力例 2
7 1
出力例 2
1
7+1=8 であり、8 は 1 桁の数です。
入力例 3
7 3
出力例 3
2
7+3=10 であり、10 は 2 桁の数です。
Score : 100 points
Problem Statement
You are given integers A and B between 1 and 9, inclusive.
Find the number of digits in the value of A+B.
Constraints
- A and B are integers between 1 and 9, inclusive.
Input
The input is given from Standard Input in the following format:
A B
Output
Print the answer.
Sample Input 1
4 9
Sample Output 1
2
4+9=13, and 13 is a 2-digit number.
Sample Input 2
7 1
Sample Output 2
1
7+1=8, and 8 is a 1-digit number.
Sample Input 3
7 3
Sample Output 3
2
7+3=10, and 10 is a 2-digit number.