SMBC 编程竞赛 #2(第 481 场 AtCoder Beginner Contest)
A
A+B 的位数
Digits of A+B
AtCoder
⌀ 0
原题
←B →

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$(含)之间的整数。
AI (CI翻译)

Input

输入格式

AI (CI翻译)

The input is given from Standard Input in the following format:

输入从标准输入按以下格式给出:AI (CI翻译)

A B

A B
AI (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.
题目信息
题号
abc481_a
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(gpt-6.1-sol),如有出入请以原文为准。