SMBC 编程竞赛 #2(第 481 场 AtCoder Beginner Contest)
A+B 的位数AI (CI翻译)
Problem Statement
题目描述
AI (CI翻译)You are given integers $A$ and $B$ between $1$ and $9$, inclusive.
给定两个介于 $1$ 和 $9$(含)之间的整数 $A$ 和 $B$。AI (CI翻译)
Find the number of digits in the value of $A+B$.
求 $A+B$ 的值有多少位。AI (CI翻译)
Constraints
约束条件
AI (CI翻译)$A$and$B$are integers between$1$and$9$, inclusive.
$A$和$B$是介于$1$和$9$(含)之间的整数。
Input
输入格式
AI (CI翻译)The input is given from Standard Input in the following format:
输入从标准输入按以下格式给出:AI (CI翻译)
A B
A BAI (CI翻译)
Output
输出格式
AI (CI翻译)Print the answer.
输出答案。AI (CI翻译)
样例
Input #1
4 9
Output #1
2
$4+9=13$, and $13$ is a $2$-digit number.
Input #2
7 1
Output #2
1
$7+1=8$, and $8$ is a $1$-digit number.
Input #3
7 3
Output #3
2
$7+3=10$, and $10$ is a $2$-digit number.
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(gpt-6.1-sol),如有出入请以原文为准。