Problem:


Digit Number

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

Input

There are several test cases. Each test case consists of two non-negative integers a and b which are separeted by a space in a line. The input terminates with EOF.

Constraints

0 ≤ a, b ≤ 1,000,000

The number of datasets ≤ 200

Output

Print the number of digits of a + b for each data set.

Sample Input

5 7
1 99
1000 999

Output for the Sample Input

2
3
4



Sample input:
5 7
1 99
1000 999


Sample output:
2
3
4

Submission status: Accepted

Solution code:
import sys

def solve():
    for line in sys.stdin:
        a, b = map(int, line.split())

        c = a + b

        if c == 0:
            print(1)
        else:
            ans = 0

            while c > 0:
                ans += 1
                c //= 10

            print(ans)

if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
def main():
    def inputs():
        li = []
        count = 0
        try:
            while count < 200:
                li.append(input())
                count += 1
        except EOFError:
            return li
        return li

    li = inputs()
    for x in li:
        a = x.split(" ")
        result = len(str(int(a[0]) + int(a[1])))
        print(result)
    return None

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
while True:
    try:
        a,b = map(int,input().split())
    except:
        exit()
 
    print(len(str(a+b)))

Submission status: Accepted

Solution code:
import sys

while True:
    line = sys.stdin.readline()
    if not line:
        break
    print(len(str(abs(sum(map(int, line.rstrip().split(' ')))))))

Submission status: Accepted

Solution code:
import fileinput

if __name__ == "__main__":
    for line in fileinput.input():
        v = line.split(" ")
        print(len(str(sum([int(i) for i in v]))))

Submission status: Accepted

Solution code:
def digit(n):
	cnt = 1
	m = n

	while 10 <= m:
		cnt += 1
		m = m / 10
		
	return cnt

while True:
	try:
		inpt = map(int, raw_input().split())
		print digit(inpt[0]+inpt[1])

	except:
		break

Submission status: Accepted

Solution code:
import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        tokens = line.strip().split()
        a, b = int(tokens[0]), int(tokens[1])
        c = a+b
        print(len(str(c)))

Submission status: Accepted

Solution code:
import sys
strs = sys.stdin.readlines()
for s in strs:
    a, b = map(int, s.split())
    print(len(str(a + b)))

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
    a, b = map(int, line.split())
    print(len(str(a + b)))

Submission status: Accepted

Solution code:
for var in range(1,2001):
    try:
        a,b=map(int,input().split())
        c=a+b
        c=str(c)
        print(len(c))
    except:
        break

Submission status: Accepted

Solution code:
# coding: utf-8
# Here your code !

while 1:
    try:
        a,b = map(int,input().split())
        su = a+b
        print(len(str(su)))
    except:
        break

Submission status: Accepted

Solution code:
import sys
from math import log10

for line in sys.stdin:
	a, b = map(int, line.split())
	digitNumber = int(log10((a + b))) + 1
	print(digitNumber)

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
	a, b = map(int, line.split())
	digitNumber = len(str(a + b))
	print(digitNumber)

Submission status: Accepted

Solution code:
import sys
a=[map(int,i.split()) for i in sys.stdin]
[print(len(str(b+c))) for b,c in a]

Submission status: Accepted

Solution code:
import sys
for a in sys.stdin:
    b,c=map(int,a.split())
    d=len(str(b+c))
    print(d)

Submission status: Accepted

Solution code:
import sys
a=[map(int,i.split())for i in sys.stdin]
[print(len(str(b+c)))for b,c in a]

Submission status: Accepted

Solution code:
# coding: utf-8
remaining_questions = True
while remaining_questions:
    try:
        value_a, value_b = map(int, input().split(" "))
        print(len(str(value_a + value_b)))
    except:
        remaining_questions = False

Submission status: Accepted

Solution code:
def main():
	import sys

	for line in sys.stdin:
		a, b = map(int, line.split())
		c = a + b
		digits = 1
		while c // 10 != 0:
			c = c // 10
			digits += 1

		print(digits)

if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int, input().split())
    except:
        break
    print(len(str(a+b)))

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    a, b = list(map(int, line.split()))

    s=len(str(a+b))
    
    print(s)

Submission status: Accepted

Solution code:
try:
 while True:
  a,b=map(int,input().split())
  digit=(a+b)
  digit2=str(digit)
  print(len(digit2))
except:
   pass

Submission status: Accepted

Solution code:
try:
    while True:
        a,b = map(int, input().split())
        print(len(str(a+b)))
except:
    pass

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    a, b = list(map(int, line.split()))
    print(len(str(a + b)))

Submission status: Accepted

Solution code:
from sys import stdin
import math
import fileinput

for line in fileinput.input():
    a, b = [int(n) for n in line.split()]
    print(math.floor(math.log10(a + b) + 1))
    # x1, y1, x2, y2, x3, y3, xp, yp = [float(r) for r in line]
    # print(x1, y1, x2, y2, x3, y3, xp, yp)

Submission status: Accepted

Solution code:
import fileinput
for line in fileinput.input():
    a, b = map(int, line.split())
    print(len(str(a + b)))

Submission status: Accepted

Solution code:
import sys;

for line in sys.stdin:
	a = [int(num) for num in line.split()];
	sum = a[0] + a[1];
	count = 0;
	while sum > 0:
		count += 1;
		sum //= 10;
	print(count);

Submission status: Accepted

Solution code:
try:
    s = []
    while True:
        l = input().split()
        t = int(l[0]) + int(l[1])
        n = str(t)
        print(len(n))
except EOFError:
    pass

Submission status: Accepted

Solution code:
while (1):
	try:
		a, b = map(int, input().split())
	except:
		break
	c = a+b
	print( len(str(c)) )

Submission status: Accepted

Solution code:
import math

while True:
    try:
        line = input().split(" ")
        if(len(line) != 2):
            exit()
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break

Submission status: Accepted

Solution code:
import math

while True:
    try:
        line = input().split(" ")
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break

Submission status: Accepted

Solution code:
import math
while True:
    try:
        line = input().split(" ")
        a = int(line[0])
        b = int(line[1])
        print(int(math.log10(a+b))+1)
    except:
        break

Submission status: Accepted

Solution code:
import math

while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        break

Submission status: Accepted

Solution code:
import math

while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        exit()

Submission status: Accepted

Solution code:
import math
while True:
    try:
        line = input().split(" ")
        print(int(math.log10(int(line[0])+int(line[1])))+1)
    except:
        break

Submission status: Accepted

Solution code:
import sys
a = [print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]

Submission status: Accepted

Solution code:
import sys
[print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]

Submission status: Accepted

Solution code:
import sys,math
for x,y in (line.split() for line in sys.stdin):print(int(math.log10(int(x)+int(y))+1))

Submission status: Accepted

Solution code:
while 1:
    try:
        x,y=input().split()
        k=int(x)+int(y)
        print(len(str(k)))
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    count=1
    k=a+b
    while k>=10:
        k//=10
        count+=1
    print(count)

Submission status: Accepted

Solution code:
import sys

def main():
    """ ????????? """
    istr = sys.stdin.read()
    wi = istr.splitlines()
    for i in wi:
        a = list(map(int,i.split()))
        b = str(a[0] + a[1])
        print(len(b))

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    datas =line.split()
    if (len(datas)):
        v = int(datas[0]) + int(datas[1])
        print(len(str(v)))
    else:
        break

Submission status: Accepted

Solution code:
import sys
def main():
    for line in sys.stdin:
        a, b = map(int, line.split())
        print(len(str(a + b)))

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
lst = []
for i in range(200):
    try:
        lst.append(input())
    except EOFError:
        break

print(*[len(str(sum([int(num) for num in string.split(' ')]))) for string in lst], sep='\n')

Submission status: Accepted

Solution code:
# Aizu Problem 0002: Digit Number
#
import sys, math, os

# read input:
PYDEV = os.environ.get('PYDEV')
if PYDEV=="True":
    sys.stdin = open("sample-input.txt", "rt")


for line in sys.stdin:
    a, b = [int(_) for _ in line.split()]
    print(len(str(a + b)))

Submission status: Accepted

Solution code:

# coding: utf-8
# Here your code !

import sys
import math

list = ["2","3"]
r = sys.stdin.readlines()

n = [[int(i) for i in (j.split())] for j in r]
#e = [[int(i) for i in input().split()] for i in range(n)] 

for j in n:
    a = sum(j)
    d = int(math.log10(a)) + 1
    print(d)

Submission status: Accepted

Solution code:
while True:
    try:
        x = list(map(int, input().split(' ')))
        n = x[0] + x[1]
        print(len(str(n)))
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        a,b=(int(i) for i in input().split())
        print(len(str(a+b)))
    except EOFError:
        break

Submission status: Accepted

Solution code:
import sys
if __name__ == "__main__":
    for i in sys.stdin:
        a,b = list(map(int,i.strip().split()))
        print(len(str(a+b)))

Submission status: Accepted

Solution code:
import fileinput as fi
if __name__ == "__main__":
    for i in fi.input():
        a,b = list(map(int,i.strip().split()))
        print(len(str(a+b)))

Submission status: Accepted

Solution code:
try:
    while True:
        a,b=map(int, input().split())
        print(len(str(a+b)))
except EOFError:
    pass

Submission status: Accepted

Solution code:
import sys
for l in sys.stdin:
    n, m = map(int, l.split())
    print(len(str(n+m)))

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
  x, y = map(int, line.split())
  print(len(str(x+y)))

Submission status: Accepted

Solution code:
answers=[]
while True:
    try:
        nums=input().split()
        answers.append(len(str(int(nums[0])+int(nums[1]))))
    except :
        break
for i in range(len(answers)):
    print(answers[i])

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    sum = 0
    for x in line.split():
        sum += int(x)
    print(len(str(sum)))

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
    print(len(str(sum(list(map(int, line.split()))))))

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
    a, b = map(int, line.split())
    print(len(str(a+b)))

Submission status: Accepted

Solution code:
while True:
    try:
        inputNums = list(map(int, input().split()))
        print(len(str(inputNums[0] + inputNums[1])))
    except:
        break

Submission status: Accepted

Solution code:
import math
import sys

while True:
	try:
		a,b = map(int, input().split())
		print(len(str(a+b)))
	except EOFError:
		break

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    a, b = map(int, line.strip().split())
    print len(str(a+b))

Submission status: Accepted

Solution code:
import sys

for s in sys.stdin:
  a,b = s.split(' ')
  c = int(a) + int(b)
  i = 1

  while c >= 10:
    c = c / 10
    i = i + 1

  print i

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
	a = int(line.split()[0])
	b = int(line.split()[1])
	s = a + b
	print(len(str(s)))

Submission status: Accepted

Solution code:
import sys

d = sys.stdin.readline()
while d:
    a, b = map(int,d.split())
    print(len(str(a+b)))
    d = sys.stdin.readline()

Submission status: Accepted

Solution code:
import math
t = 0
while t == 0:	
	try:
		x,y=[int(i) for i in input().split()]
	except:
		break
	else:
		a = int (math.log10(x + y) + 1)
		print(a)

Submission status: Accepted

Solution code:
# coding: utf-8

import codecs
import sys

sys.stdout = codecs.getwriter("shift_jis")(sys.stdout) # ??????
sys.stdin = codecs.getreader("shift_jis")(sys.stdin) # ??\???

# ??\??¬?????????print??????????????´?????? print(u'?????????') ??¨??????
# ??\??¬?????????input??? input(u'?????????') ??§OK
# ??°?¢???????????????????????????´??????6,7???????????????????????¢??????

"""
DEBUG = 0

if DEBUG == 0:
	a = []
	for i in range(200):
		deglist=[int(x) for x in input().split(" ")]
		a.append(deglist)
else:
	a = [[5,7],[1,99],[1000,999]]

for i in range(len(a)):
	wa = a[i][0] + a[i][1]
	print len(str(wa))
"""

while True:
	try:
		a,b = map(int, raw_input().split())
		print len(str(a+b))
	except EOFError:
		break

Submission status: Accepted

Solution code:
import math

lst = []
while True:
    try:
        a, b = map(int, input().split())
        lst.append(int(math.log10(a+b))+1)
    except EOFError:
        for i in lst:
            print(i)
        break

Submission status: Accepted

Solution code:
while True:
    try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except EOFError:
        break

Submission status: Accepted

Solution code:
import sys

def main():

    inputs = sys.stdin.readlines()
    for item in inputs:
        print(len(str(sum(tuple(map(int, item.split()))))))
    
main()

Submission status: Accepted

Solution code:
import sys

if __name__ == '__main__':
    for line in sys.stdin:
        (x,y) = map(int,line.split())
        print(len(str(x+y)))

Submission status: Accepted

Solution code:
# -*-coding:utf-8

import fileinput

if __name__ == '__main__':
    for line in fileinput.input():
        digit = 0
        tokens = list(map(int, line.strip().split()))
        a, b = tokens[0], tokens[1]
        num = a + b

        print(len(str(num)))

Submission status: Accepted

Solution code:
from math import log10 as log
from sys import stdin
A = []
for po in stdin:
    S = list(map(int,po.split()))
    A.append(int(log(S[0]+S[1])+1))
for i in A:
    print(i)

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
        s=sum([int(num) for num in line.split(' ')])
        print(len(str(s)))

Submission status: Accepted

Solution code:
import sys
# l = sys.stdin.readline()
l = sys.stdin.readlines()
for line in l:
    data = map(int, line.split(" "))
    print(len(str(data[0] + data[1])))

Submission status: Accepted

Solution code:
# coding=utf-8
import math


while True:
    try:
        a, b = map(int, input().split())
    except EOFError:
        break
    c = a + b
    digit = int(math.log10(c) + 1)
    print(digit)

Submission status: Accepted

Solution code:
# usr/bin/python
# coding: utf-8
################################################################################
# Digit Number
# Write a program which computes the digit number of sum of two integers a and b.
#
# Input
# There are several test cases. Each test case consists of two non-negative integers a and b which are separeted by a space in a line. The input terminates with EOF.
#
# Constraints
# 0 ??? a, b ??? 1,000,000
# The number of datasets ??? 200
# Output
# Print the number of digits of a + b for each data set.
#
# Sample Input
# 5 7
# 1 99
# 1000 999
# Output for the Sample Input
# 2
# 3
# 4
#
################################################################################

import math
import fileinput

if __name__ == "__main__":
    for line in fileinput.input():
        a = int(line.split(" ")[0])
        b = int(line.split(" ")[1])
        data_size = int(math.log10(a+b) + 1)
        print(data_size)
    exit(0)

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    a, b = map(int, line.split())
    print(len(str(a+b)))

Submission status: Accepted

Solution code:
# coding: utf-8
import sys
import math

for line in sys.stdin:
    l = map(int, line.split())
    print len(str(sum(l)))

Submission status: Accepted

Solution code:
import sys
import math

for line in sys.stdin:
    l = line.split()
    digit = int(math.log10(int(l[0]) + int(l[1]))) + 1
    print(digit)

Submission status: Accepted

Solution code:
import sys
import math

for line in sys.stdin:
    a, b = map(int, line.split())
    print(int(math.log10(a + b) + 1))

Submission status: Accepted

Solution code:
import sys
import math

for line in sys.stdin:
    a, b = map(int, line.split())
    print(int(math.log10(a + b)//1 + 1))

Submission status: Accepted

Solution code:
import math

def main():
    data = []
    while 1:
        try:
            n = input().split()
            a = int(n[0])
            b = int(n[1])
            ans = int(math.log10(a+b)+1)
            data.append(ans)
        except EOFError:
            break

    for i in data:
        print(i)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
# coding:utf-8

while True:
    try:
        a, b = (int(x) for x in input().split())
        print(len(str(a + b)))
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int, input().split())
    except:
        break
    string = str(a+b)
    print(len(string))

Submission status: Accepted

Solution code:
results=[]
from sys import stdin
for line in stdin:
    a, b = (int(i) for i in line.split())
    results.append(len(str(a+b)))
for i in results:
    print i

Submission status: Accepted

Solution code:
res=[]

while 1:
    try:
        s=input()
        a,b = [int(x) for x in s.split()]
        res.append(a+b)
    except:
        for n in res:
            print(len(str(n)))
        break

Submission status: Accepted

Solution code:
while 1:
    try:
        a,b=map(int,input().split())
        print(len(str(a+b)))
    except:
        break

Submission status: Accepted

Solution code:
import math

digit = []
while True:
    try:
        a,b =raw_input().split()
        c = int(a)+int(b)
        digit.append(int(math.log10(c) + 1))
    except:
        break
for i in range(0,len(digit)):
    print digit[i]

Submission status: Accepted

Solution code:
import sys
def main():
    for line in sys.stdin:
        A = list(map(int,line.split()))
        C = A[0]+A[1]
        count = 0
        while True:
            C/=10
            if C < 1:
                break
            count += 1
        print(count+1)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys
import math

for line in sys.stdin:
  try:
    a, b = [int(i) for i in line.split()]
    print(int(math.log10(a + b) + 1))
  except:
    break

Submission status: Accepted

Solution code:
import sys
for i in sys.stdin:
    a,b = map(int, i.split())
    print(len(str(a+b)))

Submission status: Accepted

Solution code:
while True:
    try:
        input_line = input()
        if input_line == '':
            break
        else:
            print(len(str(sum(map(int, input_line.split())))))
    except EOFError:
        break

Submission status: Accepted

Solution code:
import sys

a = ""
for input in sys.stdin:
    a += input
l = a.split()
for i in range(0,len(l),2):
    print len(str(int(l[i])+int(l[i+1])))

Submission status: Accepted

Solution code:
import math

def get_input():
    while True:
        try:
            yield ''.join(input())
        except EOFError:
            break

line = list(get_input())
for l in range(len(line)):
    a,b = [int(i) for i in line[l].split()]
    S = a + b
    keta = 0
    while S > 0:
        S = math.floor(S / 10)
        keta = keta + 1
    print(keta)

Submission status: Accepted

Solution code:
try:
    while True:
        a, b = [int(x) for x in input().strip().split(' ')]
        print(len(list(str(a+b))))
except EOFError:
    pass

Submission status: Accepted

Solution code:
while True:
    try:a,b=map(int,input().split())
    except:break
    if a=="" or b==":":
        break
    c=a+b
    ans=0
    if c>=0 and c<=9:
        ans=1
    if c>=10 and c<=99:
        ans=2
    if c>=100 and c<=999:
        ans=3
    if c>=1000 and c<=9999:
        ans=4
    if c>=10000 and c<=99999:
        ans=5
    if c>=100000 and c<=999999:
        ans=6
    if c>=1000000 and c<=9999999:
        ans=7

    print(ans)

Submission status: Accepted

Solution code:
while True:
    try:a,b=map(int,input().split())
    except:break
    c=a+b
    ans=0

    while c>9:
        c=c//10
        ans+=1
    ans+=1
    print(ans)

Submission status: Accepted

Solution code:
import sys
for e in sys.stdin.readlines():
 print(len(str(eval('+'.join(e.split())))))

Submission status: Accepted

Solution code:
import sys
for e in sys.stdin.readlines():
 print(len(str(sum(map(int,e.split())))))

Submission status: Accepted

Solution code:
while 1:
 try:print(len(str(sum(map(int,input().split())))))
 except:break

Submission status: Accepted

Solution code:
import sys
for e in sys.stdin:
 print(len(str(sum(map(int,e.split())))))

Submission status: Accepted

Solution code:
import sys
for e in sys.stdin:
 print(len(str(eval('+'.join(e.split())))))

Submission status: Accepted

Solution code:
import sys
for e in sys.stdin:print(len(str(sum(map(int,e.split())))))

Submission status: Accepted

Solution code:
from sys import stdin
for line in stdin:
    print(len(str(sum(map(int, line.split())))))

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int, input().split())
        print(len(str(a + b)))
    except:
        break

Submission status: Accepted

Solution code:
while 1:
    try:
        print(len(str(sum(map(int, input().split())))))
    except:
        break

Submission status: Accepted

Solution code:
import sys

num_of_data = 1
while True:
    if num_of_data > 200:
        break

    try:
        a, b = input().split()
         
    except EOFError:
        sys.exit()
        
    a = int(a)
    b = int(b)
    if a >= 0 and a <= 1000000000:
        if b >= 0 and b <= 1000000000:     
            num_of_data += 1
            sum = a+b
            cnt = 1
            while True:
                if sum < 10:
                    break
                sum /= 10
                cnt += 1
            print(cnt)

Submission status: Accepted

Solution code:
# 何行あるかわからない入力をまとめて処理する
import sys
line = sys.stdin.readlines()
#print(line)
for i in line:
    # map関数は配列の型を一括変換するのに便利
    b = list(map(int, i.split(" ")))
    c = 1
    d = b[0] + b[1]
    while(d >= 10):
        c += 1
        d = d / 10
    print(c)

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int, input().split(" "))
        print(len(str(a + b)))
    except:
        break

Submission status: Accepted

Solution code:
while True:
	try:
		a, b = map(int, input().split())
		print(len(str(a+b)))
	except:
		break

Submission status: Accepted

Solution code:
def compute_digits_num(a,b):
    c = a + b
    s = 0
    for c in str(c):
        s += 1
    return s

try:
    while True:
        a, b = list(map(int, input().split()))
        print(compute_digits_num(a,b))
except:
    pass

Submission status: Accepted

Solution code:
import math
while True:
    try:
        a,b = [int(x) for x in input().split()]
        x = a + b        
        print(int(math.log10(x))+1)
    except:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = (int(x) for x in raw_input().split())
        s = a + b
        num_digits = 0
        while s > 0:
            s /= 10
            num_digits += 1
        print num_digits
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        print(len(str(sum(list(map(int, input().split()))))))
    except EOFError:
        break

Submission status: Accepted

Solution code:
#!/usr/bin/env python3

import collections
import sys

def read_prob():
    inputs = []
    try:
        while True:
            line = input().strip().split()
            a, b = line[0], line[1]
            inputs.append(int(a) + int(b))
    except EOFError:
        pass
    return inputs

if __name__ == '__main__':
    inputs = read_prob()
    for inp in inputs:
        answer = len(str(inp))
        print(answer)

Submission status: Accepted

Solution code:
l = list(map(int, input().split()))

while(l != []):
    try:
        length = len(str(l[0]+l[1]))
        print(length)
        l = list(map(int, input().split()))
    except:
        break

Submission status: Accepted

Solution code:
while 1:
    try:
        a, b = map(int, input().split())
        ans = 1
        while (a+b)/(10**ans) >= 1:
            ans += 1
        print(str(ans))
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
	try:
		a,b=map(int,raw_input().split())
		print len(str(a+b))
	except EOFError:
		break

Submission status: Accepted

Solution code:

A = []
B = []
s = True
while(s):
    try:
        a,b = map(int, input().split())
    except:
        break
    A.append(a)
    B.append(b)

for i in range(len(A)):
    sum = A[i] + B[i]
    digits = 1
    while(sum//10 != 0):
        digits += 1
        sum //= 10
    print(str(digits))

Submission status: Accepted

Solution code:
import sys
for i in sys.stdin:print(len(str(sum(map(int, i.split())))))

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int,input().split())
        s = str(a + b)
        print(len(s))
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = map(int, input().rstrip().split())
        print(len(str(a + b)))
    except Exception:
        break

Submission status: Accepted

Solution code:
import sys
c=[len(str(sum(map(int,line.split())))) for line in sys.stdin]
[print(i) for i in c]

Submission status: Accepted

Solution code:
def main():
    while True:
        try:
            a, b = (int(x) for x in input().split())
            print(len(str(a+b)))
        except EOFError:
            break
main()

Submission status: Accepted

Solution code:
from sys import stdin
for line in stdin:
    a,b = line.split(" ")
    c = int(a)+int(b)
    print(len(str(c)))

Submission status: Accepted

Solution code:
a = []
while True:
    try:
        a.append(list(map(int, input().split())))
    except EOFError:
        break

for i in a:
    print(len(str(i[0] + i[1])))

Submission status: Accepted

Solution code:
# AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u

while True:
    try:
        a = list(map(int, input().split()))
        print(len(str(a[0] + a[1])))
    except EOFError:
        break

Submission status: Accepted

Solution code:
import sys

for line in sys.stdin:
    a,b = [int(i) for i in line.split()]
    print(len(str(a+b)))

Submission status: Accepted

Solution code:
import math
import sys

for num in sys.stdin:
	num = num.split()
	a = int(num[0])
	b = int(num[1])
	size = int (math.log10(a+b) + 1)
	print(size)

Submission status: Accepted

Solution code:
import sys
for line in sys.stdin:
	l=0
	for l in range(len(line)):
		if(line[l] == ' '):
			p = l
			break
	a = line[0:p]
	b = line[p+1:]
	c = int(a)+int(b)
	d = 1
	while(int(c/10) != 0):
		d += 1
		c = int(c/10)
	print(d)

Submission status: Accepted

Solution code:
# AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u

while True:
    try: print(len(str(sum(list(map(int, input().split()))))))
    except EOFError: break

Submission status: Accepted

Solution code:
while True:
    try:
        a,b = map(int, input().split())
        d = 0
        s = sum([a,b])
        while (s):
            s //= 10
            d += 1
        print(d)
    except EOFError: break

Submission status: Accepted

Solution code:
while 1:
    try: print(len(str(sum(list(map(int, input().split()))))))
    except: break

Submission status: Accepted

Solution code:
while True:
    try:
        a, b = (int(x) for x in input().split())
        print(len(str(a + b)))
    except:
        break;

Submission status: Accepted

Solution code:
import sys, math

def run():
    N = []
    for n in sys.stdin:
        a,b = map(int, n.split())
        N.append((a,b))

    for a,b in N:
        print(math.floor(math.log10(a+b)) + 1)

if __name__ == '__main__':
    run()

Submission status: Accepted

Solution code:
import sys
print "\n".join(str(len(str(sum(int(x) for x in l.split(' '))))) for l in sys.stdin)

Submission status: Accepted

Solution code:
while True:
    try:
        x = map(int, raw_input().split(" "))
        print len(str(x[0]+x[1]))

    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        x = map(int, raw_input().split(" "))
        print len(str(x[0]+x[1]))
 
    except EOFError:
        break

Submission status: Accepted

Solution code:
import sys
import math

for line in sys.stdin:
  a = line.split()
  print int(math.log10(int(a[0]) + int(a[1]))) + 1

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
while True:
    try:
        x = [int(i) for i in raw_input().split(" ")]
        print len(str(x[0]+x[1]))
    except Exception:
        break

Submission status: Accepted

Solution code:
import sys

for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{0}".format(len(str((a + b))))

Submission status: Accepted

Solution code:
while 1:
    try:
        line = raw_input()
    except EOFError:
        break
    arr = map((lambda x: int(x)), line.split())
    print len(str(arr[0]+arr[1]))

Submission status: Accepted

Solution code:
#condig: UTF-8

while True:
    try:
        n = map(int, raw_input().split())
        s = len(str(n[0] + n[1]))
        print s
    except Exception:
        break

Submission status: Accepted

Solution code:
import sys
import math

for i in sys.stdin.readlines():
    a, b = map(int, i.strip().split())
    print "{}".format(int(math.log10(a+b))+1)

Submission status: Accepted

Solution code:
import sys
for i in sys.stdin.readlines():
    x = i.split(" ")
    print len(str(int(x[0]) + int(x[1])))

Submission status: Accepted

Solution code:
while 1:
    try:
        a,b = map(int, raw_input().split())
        n = a+b
        print len(str(n))
    except EOFError:
        break

Submission status: Accepted

Solution code:
while True:
    try:
        nums = map(int, raw_input().split(' '))
        
        ans = nums[0]+nums[1]
        
        x = 0
        while True:
            if (10**x -1) < ans < 10**(x+1):
                print x+1
                break
            else:
                x = x+1
    except EOFError:
        break

Submission status: Accepted

Solution code:

#!/usr/bin/env python
# coding: utf-8


def main():
    while 1:
        try:
            input_data = raw_input()
        except EOFError:
            break
        print sum(map(int, input_data.split(" "))).__str__().__len__()

if __name__ == '__main__':
    main()