2568. Sum of digit

单点时限: 2.0 sec

内存限制: 256 MB

Write a program which computes the digit number of sum of two integers and .

输入格式

The first line of input gives the number of cases, . test cases follow.

Each test case consists of two integers and which are separeted by a space in a line. .

输出格式

For each test case, print the number of digits of .

样例

Input
3
5 7
1 99
1000 999
Output
2
3
4

1557 人解决,1784 人已尝试。

1936 份提交通过,共有 3649 份提交。

0.6 EMB 奖励。

创建: 10 年,9 月前.

修改: 1 年,4 月前.

最后提交: 10 小时前.

来源: 2009 华东师范大学 研究生复试

题目标签