AT_abc481_a.Digits of A+B
入门
通过率:0%
时间限制:2.00s
内存限制:1024MB
AC君温馨提醒
该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
You are given integers A and B between 1 and 9, inclusive.
Find the number of digits in the value of A+B.
给你两个整数 A 和 B,均在 1 到 9(含)之间。
求 A+B 的值的位数。
输入格式
The input is given from Standard Input in the following format:
A B
输入从标准输入中以如下格式给出:
A B
输出格式
Print the answer.
输出答案。
输入输出样例
输入#1
4 9
输出#1
2
输入#2
7 1
输出#2
1
输入#3
7 3
输出#3
2
说明/提示
Sample 1 Explanation:
4+9=13, and 13 is a 2-digit number.
Sample 2 Explanation:
7+1=8, and 8 is a 1-digit number.
Sample 3 Explanation:
7+3=10, and 10 is a 2-digit number.
Constraints
- A and B are integers between 1 and 9, inclusive.
样例 1 解释:
4+9=13,而 13 是一个 2 位数。
样例 2 解释:
7+1=8,而 8 是一个 1 位数。
样例 3 解释:
7+3=10,而 10 是一个 2 位数。
约束条件
- A 和 B 均为介于 1 到 9(含)之间的整数。
输入解题思路,AI测评打分。不知道怎么写?