AT_abc481_a.Digits of A+B

入门

通过率:0%

时间限制:2.00s

内存限制:1024MB

AC君温馨提醒

该题目为【atcoder】题库的题目,您提交的代码将被提交至atcoder进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

You are given integers AA and BB between 11 and 99, inclusive.

Find the number of digits in the value of A+BA+B.

给你两个整数 AA 和 BB,均在 11 到 99(含)之间。

求 A+BA+B 的值的位数。

输入格式

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

AA BB

输入从标准输入中以如下格式给出:

AA BB

输出格式

Print the answer.

输出答案。

输入输出样例

  • 输入#1

    4 9

    输出#1

    2
  • 输入#2

    7 1

    输出#2

    1
  • 输入#3

    7 3

    输出#3

    2

说明/提示

Sample 1 Explanation:
4+9=134+9=13, and 1313 is a 22-digit number.

Sample 2 Explanation:
7+1=87+1=8, and 88 is a 11-digit number.

Sample 3 Explanation:
7+3=107+3=10, and 1010 is a 22-digit number.

Constraints

  • AA and BB are integers between 11 and 99, inclusive.

样例 1 解释:
4+9=134+9=13,而 1313 是一个 22 位数。

样例 2 解释:
7+1=87+1=8,而 88 是一个 11 位数。

样例 3 解释:
7+3=107+3=10,而 1010 是一个 22 位数。

约束条件

  • AA 和 BB 均为介于 11 到 99(含)之间的整数。

输入解题思路,AI测评打分。不知道怎么写?

首页