submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s223633955
p00002
Accepted
import sys for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a + b)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s719438048
p00002
Accepted
for var in range(1,2001): try: a,b=map(int,input().split()) c=a+b c=str(c) print(len(c)) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s221118145
p00002
Accepted
# coding: utf-8 # Here your code ! while 1: try: a,b = map(int,input().split()) su = a+b print(len(str(su))) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s129494563
p00002
Accepted
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s027290782
p00002
Accepted
import sys for line in sys.stdin: a, b = map(int, line.split()) digitNumber = len(str(a + b)) print(digitNumber)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s108834878
p00002
Accepted
import sys a=[map(int,i.split()) for i in sys.stdin] [print(len(str(b+c))) for b,c in a]
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s227320755
p00002
Accepted
import sys for a in sys.stdin: b,c=map(int,a.split()) d=len(str(b+c)) print(d)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s186241391
p00002
Accepted
import sys a=[map(int,i.split())for i in sys.stdin] [print(len(str(b+c)))for b,c in a]
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s551248146
p00002
Accepted
# 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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s812889887
p00002
Accepted
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()
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s332035307
p00002
Accepted
while True: try: a, b = map(int, input().split()) except: break print(len(str(a+b)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s137943480
p00002
Accepted
import sys for line in sys.stdin: a, b = list(map(int, line.split())) s=len(str(a+b)) print(s)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s666441577
p00002
Accepted
try: while True: a,b=map(int,input().split()) digit=(a+b) digit2=str(digit) print(len(digit2)) except: pass
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s949297173
p00002
Accepted
try: while True: a,b = map(int, input().split()) print(len(str(a+b))) except: pass
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s263670492
p00002
Accepted
import sys for line in sys.stdin: a, b = list(map(int, line.split())) print(len(str(a + b)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s158306742
p00002
Accepted
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s324384362
p00002
Accepted
import fileinput for line in fileinput.input(): a, b = map(int, line.split()) print(len(str(a + b)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s846480009
p00002
Accepted
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);
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s232368735
p00002
Accepted
try: s = [] while True: l = input().split() t = int(l[0]) + int(l[1]) n = str(t) print(len(n)) except EOFError: pass
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s989193433
p00002
Accepted
while (1): try: a, b = map(int, input().split()) except: break c = a+b print( len(str(c)) )
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s683380709
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s536433552
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s262403742
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s756284833
p00002
Accepted
import math while True: try: line = input().split(" ") print(int(math.log10(int(line[0])+int(line[1])))+1) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s195797098
p00002
Accepted
import math while True: try: line = input().split(" ") print(int(math.log10(int(line[0])+int(line[1])))+1) except: exit()
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s598403116
p00002
Accepted
import math while True: try: line = input().split(" ") print(int(math.log10(int(line[0])+int(line[1])))+1) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s006058776
p00002
Accepted
import sys a = [print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s202837609
p00002
Accepted
import sys [print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s248474618
p00002
Accepted
import sys,math for x,y in (line.split() for line in sys.stdin):print(int(math.log10(int(x)+int(y))+1))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s909434621
p00002
Accepted
while 1: try: x,y=input().split() k=int(x)+int(y) print(len(str(k))) except EOFError: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s005515634
p00002
Accepted
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s548167218
p00002
Accepted
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()
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s243733036
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s417788840
p00002
Accepted
import sys def main(): for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a + b))) if __name__ == "__main__": main()
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s160024722
p00002
Accepted
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')
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s264160292
p00002
Accepted
# 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)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s658784155
p00002
Accepted
# 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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s172369125
p00002
Accepted
while True: try: x = list(map(int, input().split(' '))) n = x[0] + x[1] print(len(str(n))) except EOFError: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s318313056
p00002
Accepted
while True: try: a,b=(int(i) for i in input().split()) print(len(str(a+b))) except EOFError: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s093990985
p00002
Accepted
import sys if __name__ == "__main__": for i in sys.stdin: a,b = list(map(int,i.strip().split())) print(len(str(a+b)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s650969789
p00002
Accepted
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)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s708635433
p00002
Accepted
try: while True: a,b=map(int, input().split()) print(len(str(a+b))) except EOFError: pass
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s231455218
p00002
Accepted
import sys for l in sys.stdin: n, m = map(int, l.split()) print(len(str(n+m)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s140324145
p00002
Accepted
import sys for line in sys.stdin: x, y = map(int, line.split()) print(len(str(x+y)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s792266806
p00002
Accepted
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])
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s715725078
p00002
Accepted
import sys for line in sys.stdin: sum = 0 for x in line.split(): sum += int(x) print(len(str(sum)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s204718475
p00002
Accepted
import sys for line in sys.stdin: print(len(str(sum(list(map(int, line.split()))))))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s821134407
p00002
Accepted
import sys for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a+b)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s814189510
p00002
Accepted
while True: try: inputNums = list(map(int, input().split())) print(len(str(inputNums[0] + inputNums[1]))) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s169219416
p00002
Accepted
import math import sys while True: try: a,b = map(int, input().split()) print(len(str(a+b))) except EOFError: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s591200047
p00002
Accepted
import sys for line in sys.stdin: a, b = map(int, line.strip().split()) print len(str(a+b))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s971001398
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s281353075
p00002
Accepted
import sys for line in sys.stdin: a = int(line.split()[0]) b = int(line.split()[1]) s = a + b print(len(str(s)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s796876433
p00002
Accepted
import sys d = sys.stdin.readline() while d: a, b = map(int,d.split()) print(len(str(a+b))) d = sys.stdin.readline()
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s904991504
p00002
Accepted
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s114739614
p00002
Accepted
# 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 # ??°?¢?????????????????...
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s218757999
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s396461999
p00002
Accepted
while True: try: a,b=map(int,input().split()) print(len(str(a+b))) except EOFError: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s583969230
p00002
Accepted
import sys def main(): inputs = sys.stdin.readlines() for item in inputs: print(len(str(sum(tuple(map(int, item.split())))))) main()
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s485035456
p00002
Accepted
import sys if __name__ == '__main__': for line in sys.stdin: (x,y) = map(int,line.split()) print(len(str(x+y)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s138874278
p00002
Accepted
# -*-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)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s302363572
p00002
Accepted
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s580598280
p00002
Accepted
import sys for line in sys.stdin: s=sum([int(num) for num in line.split(' ')]) print(len(str(s)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s481741105
p00002
Accepted
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])))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s529595001
p00002
Accepted
# 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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s173495639
p00002
Accepted
# 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 ...
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s545314988
p00002
Accepted
import sys for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a+b)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s764791027
p00002
Accepted
# coding: utf-8 import sys import math for line in sys.stdin: l = map(int, line.split()) print len(str(sum(l)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s696564316
p00002
Accepted
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s911706288
p00002
Accepted
import sys import math for line in sys.stdin: a, b = map(int, line.split()) print(int(math.log10(a + b) + 1))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s769301271
p00002
Accepted
import sys import math for line in sys.stdin: a, b = map(int, line.split()) print(int(math.log10(a + b)//1 + 1))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s350718249
p00002
Accepted
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__ == "__ma...
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s678771584
p00002
Accepted
# coding:utf-8 while True: try: a, b = (int(x) for x in input().split()) print(len(str(a + b))) except EOFError: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s377396211
p00002
Accepted
while True: try: a, b = map(int, input().split()) except: break string = str(a+b) print(len(string))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s140214173
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s888630300
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s430911990
p00002
Accepted
while 1: try: a,b=map(int,input().split()) print(len(str(a+b))) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s161923844
p00002
Accepted
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]
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s155030133
p00002
Accepted
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()
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s009074618
p00002
Accepted
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
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s816285825
p00002
Accepted
import sys for i in sys.stdin: a,b = map(int, i.split()) print(len(str(a+b)))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s917014373
p00002
Accepted
while True: try: input_line = input() if input_line == '': break else: print(len(str(sum(map(int, input_line.split()))))) except EOFError: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s648814673
p00002
Accepted
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])))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s832468835
p00002
Accepted
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) ket...
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s660253328
p00002
Accepted
try: while True: a, b = [int(x) for x in input().strip().split(' ')] print(len(list(str(a+b)))) except EOFError: pass
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s085901963
p00002
Accepted
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: an...
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s301936351
p00002
Accepted
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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s412834525
p00002
Accepted
import sys for e in sys.stdin.readlines(): print(len(str(eval('+'.join(e.split())))))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s674864517
p00002
Accepted
import sys for e in sys.stdin.readlines(): print(len(str(sum(map(int,e.split())))))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s657868219
p00002
Accepted
while 1: try:print(len(str(sum(map(int,input().split()))))) except:break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s652889168
p00002
Accepted
import sys for e in sys.stdin: print(len(str(sum(map(int,e.split())))))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s637911585
p00002
Accepted
import sys for e in sys.stdin: print(len(str(eval('+'.join(e.split())))))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s035372745
p00002
Accepted
import sys for e in sys.stdin:print(len(str(sum(map(int,e.split())))))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s001369685
p00002
Accepted
from sys import stdin for line in stdin: print(len(str(sum(map(int, line.split())))))
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s190651706
p00002
Accepted
while True: try: a, b = map(int, input().split()) print(len(str(a + b))) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s616961418
p00002
Accepted
while 1: try: print(len(str(sum(map(int, input().split()))))) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s629615848
p00002
Accepted
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 ...
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s770165886
p00002
Accepted
# 何行あるかわからない入力をまとめて処理する 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)
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s055734564
p00002
Accepted
while True: try: a, b = map(int, input().split(" ")) print(len(str(a + b))) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...
s271268975
p00002
Accepted
while True: try: a, b = map(int, input().split()) print(len(str(a+b))) except: break
5 7 1 99 1000 999
2 3 4
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input ter...