submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s475728530
p00002
Runtime Error
import math while True: try: a, b = map(int, input().split()) print(int(math.log10(a + b, 10)) + 1) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s836860704
p00002
Runtime Error
while True: inl=map(int, raw_input().split()) num=inl[0]+inl[1] a=list(str(num)) time=0 for i in a: time+=1 print time
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s099984077
p00002
Runtime Error
while True: inl=map(int, raw_input().split()) if inl==[]: break num=inl[0]+inl[1] a=list(str(num)) time=0 for i in a: time+=1 print time
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s487536746
p00002
Runtime Error
while True: inl=map(int, raw_input().split()) if inl==[]: break num=inl[0]+inl[1] a=list(str(num)) time=0 for i in a: time+=1 print time
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s627733338
p00002
Runtime Error
import sys for i in sys.stdin: inl=map(int, raw_input().split()) num=inl[0]+inl[1] a=list(str(num)) time=0 for i in a: time+=1 print time
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s178906382
p00002
Runtime Error
import sys for i in sys.stdin: inl=i.split() a=inl[0]+inl[1] time=0 for n in a time+=1 print tie
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s798467564
p00002
Runtime Error
a = [] for line in sys.stdin: a.append(line) for n in a: inl=n.split() num=int(inl[0])+int(inl[1]) l=list(str(num)) time=0 for i in l: time+=1 print time
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s181664659
p00002
Runtime Error
a=input() while a!=None: b=map(int,a.split()) print(len(str(sum(b)))) a=input()
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s693265499
p00002
Runtime Error
While True: try: print(len(str(sum(list(map(int,input().split())))))) except: bereak
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s201225383
p00002
Runtime Error
While True: try: print(len(str(sum(list(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s733046491
p00002
Runtime Error
import math lis=[] n=0 while n < 200: nums = list(map(int, input().split())) a=int(math.log(nums[0],10))+1)+(int(math.log(nums[1],10))+1) lis.append(a) for i in lis: 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s478956642
p00002
Runtime Error
import math lis=[] n=0 while n < 200: nums = list(map(int, input().split())) print(nums) a=int(1.0+math.log(nums[0],10))+int(1.0+math.log(nums[1],10)) lis.append(a) for i in lis: 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s693437583
p00002
Runtime Error
import math for n in range(200): nums = list(map(int, input().split())) a=int(1.0+math.log(nums[0],10))+int(1.0+math.log(nums[1],10)) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s537227496
p00002
Runtime Error
import math for n in range(200): nums = list(map(int, input().split())) if nums==[]: break else: if nums[0]==0: a=1 else: a = int(1.0+math.log(nums[0],10)) if nums[1]==0: b=1 else: b = int(1.0+math.log(nums[1],10)) print(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s795766300
p00002
Runtime Error
import math for n in range(200): nums = list(map(int, input().split())) if nums==[]: break else: if nums[0]==0: a=1 else: a = int(1.0+math.log(nums[0],10)) if nums[1]==0: b=1 else: b = int(1.0+math.log(nums[1],10)) print(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s054569870
p00002
Runtime Error
import math lis=[] for n in range(200): nums = list(map(int, input().split())) if nums==[]: break else: if nums[0]==0: a=1 else: a = int(1.0+math.log(nums[0],10)) if nums[1]==0: b=1 else: b = int(1.0+math.log(nums[1],10)) lis.append(a+b) for i in lis: 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s820236940
p00002
Runtime Error
import math import sys for line in sys.stdin: words=line.strip().split(" ") a=int(words[0]) b=int(words[1]) if a==0: a=1 else: a = int(1.0+math.log(a[0],10)) if b==0: b=1 else: b = int(1.0+math.log(b[1],10)) print(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s876766496
p00002
Runtime Error
while True: a,b=[int(i) in input().split()] print(len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s614938884
p00002
Runtime Error
while True: a,b=[int(i) for i in input().split()] if a==False: break print(len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s143414340
p00002
Runtime Error
import sys input_lines=sys.stdin.readlines() for line in input_lines: x,y=[int(i) for i in line] 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s341353440
p00002
Runtime Error
import sys input_lines=sys.stdin.readlines() for line in input_lines: x=[int(i) for i in line] print(len(str(x[0]+x[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s199721595
p00002
Runtime Error
while True: m,n = map(int,raw_input().split()) a = list(str(m + n)) print len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s739242984
p00002
Runtime Error
while True: try: m,n = map(int,raw_input().split()) a = list(str(m + n)) print len(a) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s847524907
p00002
Runtime Error
while True: try: m,n = map(int,raw_input().split()) a = list(str(m + n)) print len(a) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s635107249
p00002
Runtime Error
import sys for i in sys.stdin: print len(list(str(sum(map(int,raw_input().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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s666532719
p00002
Runtime Error
import sys for i in sys.stdin: print len(list(str(sum(map(int,raw_input().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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s612624363
p00002
Runtime Error
while True: rig=[int(i) for i in input().split(" ")] ke=rig[0]+rig[1] ans=1 count=10 while True: if ke<count: print(ans) break else: ans+=1 count=count*10
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s097612159
p00002
Runtime Error
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s662860892
p00002
Runtime Error
while True: try: Nu = list(map(int,input().split())) print(len(str(Nu[0]+Nu[1]))) except IndexError: 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s521586395
p00002
Runtime Error
while True: try: a,b = map(int,input().split()) print(len(str(a+b))) except ValueError: 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s804045820
p00002
Runtime Error
values = [] i = 0 while True: values.append([int(x) for x in input().split()]) if [] == values[i] and 0 == len(values[i]): values.pop() break else: i += 1 sum = 0 digit = 0 for x, y in values: sum = x + y digit = 0 while sum >= 1: sum //= 10 digit += 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s768617216
p00002
Runtime Error
l = map(int, raw_input().split()) l1 = [int(i) for i in l] sum = (l1[0] + l1[1]) import math print(int(math.log10(sum) + 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s686559163
p00002
Runtime Error
l = map(int, raw_input().split()) l1 = [int(i) for i in l] sum = (l1[0] + l1[1]) print(int(math.log10(sum) + 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s226809513
p00002
Runtime Error
while True: try: l = map(int, raw_input().split()) l1 = [int(i) for i in l] sum = (l1[0] + l1[1]) import math print(int(math.log10(sum) + 1)) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s321037007
p00002
Runtime Error
import math while True: try: l = map(int, raw_input().split()) l1 = [int(i) for i in l] sum = (l1[0] + l1[1]) print(int(math.log10(sum) + 1)) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s629715165
p00002
Runtime Error
# -*- coding:utf-8 -*- array = input().split() a, b = int(array[0]), int(array[1]) x = a+b print(int(math.log10(x) + 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s800094482
p00002
Runtime Error
# -*- coding:utf-8 -*- while True: array = input().split() a, b = int(array[0]), int(array[1]) x = a+b print(int(math.log10(x) + 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s612646398
p00002
Runtime Error
# -*- coding:utf-8 -*- import sys import math array =[] for line in sys.stdin: array.append(line) for i in range(array): num = array[i].sprit(' ') a = num[0] b = num[1] n = a + b print(int(math.log10(x) + 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s127385514
p00002
Runtime Error
# -*- coding:utf-8 -*- #Write a program which computes the digit number of sum of two integers a and b. import sys import math array =[] for line in sys.stdin: try: array.append(line) except EOFError: break for i in range(array): num = array[i].sprit(' ') a = num[0] b = num[1] n = a + b print(int(math.log10(x) + 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s443192709
p00002
Runtime Error
def plus_and_check(list): sum_up = 0 for i in range(len(list)-1): sum_up += list[i] l = map(int, raw_input().split()) print "%d" % plus_and_check(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s947554658
p00002
Runtime Error
def plus_and_check(list): sum_up = sum(list) while i > 0: number_1 = 10 * i number_2 = 10 * (i+1) if number_2 > sum_up and sum_up > number_1: return i else: continue l = map(int, raw_input().split()) print "%d" % plus_and_check(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s364070620
p00002
Runtime Error
def plus_and_check(list): sum_up = sum(list) while i > 0: number_1 = 10 * i number_2 = 10 * (i+1) if number_2 > sum_up and sum_up > number_1: return i else: continue i = i + 1 l = map(int, raw_input().split()) print "%d" % plus_and_check(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s839801161
p00002
Runtime Error
import sys def plus_and_check(list): sum_up = sum(list) return len(str(sum_up)) a = [] for line in sys.stdin: a.append(map(iny, raw_input().split())) answer = [] for i in range(len(a)): answer = plus_and_check(l) for i in range(len(answer)): print answer[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s559747093
p00002
Runtime Error
import sys def plus_and_check(list): sum_up = sum(list) return len(str(sum_up)) a = [] for line in sys.stdin: a.append(map(iny, raw_input().split())) answer = [] for i in range(len(a)): answer = plus_and_check(a[i]) for i in range(len(answer)): print answer[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s657058062
p00002
Runtime Error
import sys def plus_and_check(list): sum_up = sum(list) return len(str(sum_up)) a = [] for line in sys.stdin: a.append(map(int, raw_input().split())) answer = [] for i in range(len(a)): answer = plus_and_check(a[i]) for i in range(len(answer)): print answer[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s367398325
p00002
Runtime Error
import sys def plus_and_check(lines): a, b = lines.split() number = a + b return len(str(number)) a = [] for line in sys.stdin: a.append(int(line)) answer = [] for i in range(len(a)): answer = plus_and_check(a[i]) for i in range(len(answer)): print answer[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s286672393
p00002
Runtime Error
import sys def plus_and_check(lines): c, d = lines.split() number = c + d return len(str(number)) a = [] for line in sys.stdin: a.append(int(line)) answer = [] for i in range(len(a)): answer = plus_and_check(a[i]) for i in range(len(answer)): print answer[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s271839175
p00002
Runtime Error
import sys def plus_and_check(lines): c, d = lines.split() number = c + d return len(str(number)) a = [] for line in sys.stdin: a.append(int(line)) answer = [] i = 0 while i < len(a): answer = plus_and_check(a[i]) j = 0 while j < len(answer): print answer[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s595907281
p00002
Runtime Error
import sys def plus_and_check(lines): c, d = lines.split() number = c + d return len(str(number)) a = [] answer = [] for line in sys.stdin: a.append(int(line)) i = 0 while i < len(a)-1: answer = plus_and_check(a[i]) j = 0 while j < len(answer)-1: print answer[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s895469647
p00002
Runtime Error
while True: line = input() if not line: break a, b = map(int, line.split()) print(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s783805102
p00002
Runtime Error
while True: try: line = input() except IOError: break a, b = map(int, line.split()) print(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s965074333
p00002
Runtime Error
while True: try: line = input() except EOFError: break for c in line: print(len(filter(lambda c: c in '123456789', line)))
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s372165633
p00002
Runtime Error
while True: try: line = input() except EOFError: break print(len(filter(lambda c: c in '123456789', line)))
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s083611751
p00002
Runtime Error
while True: try: line = input() except EOFError: break s = sum(map(int, line.split())) num = 0 for c in s: if c.isdigit(): num += 1 print(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s358392642
p00002
Runtime Error
a,b = (int(i) for i in input().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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s387711664
p00002
Runtime Error
if __name__ == '__main__': nums = [] for line in sys.stdin: if line == "\n": break else : nums.append([int(item) for item in input().split(" ")]) for n in nums: sum = n[0] + n[1] 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s872665190
p00002
Runtime Error
if __name__ == '__main__': nums = [] for line in sys.stdin: if line == "\n": break else : nums.append([int(item) for item in line.split(" ")]) for n in nums: sum = n[0] + n[1] 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s120749778
p00002
Runtime Error
while True: a,b=map(int,input().split()) sum=str(a+b) print(len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s168308078
p00002
Runtime Error
while True: input = raw_input() splited = input.split() num = int(splited[0])+int(splited[1]) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s410768963
p00002
Runtime Error
while True: try: input = raw_input() splited = input.split() num = int(splited[0])+int(splited[1]) print len(str(num)) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s518519711
p00002
Runtime Error
while True: try: splited = raw_input().split() num = int(splited[0])+int(splited[1]) print len(str(num)) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s243283371
p00002
Runtime Error
while True: try: a,b = map(int raw_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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s305964024
p00002
Runtime Error
while True: try: a,b = map(int, raw_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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s947645099
p00002
Runtime Error
while True: try: a,b = map(int, raw_input().split()) print int(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s890212265
p00002
Runtime Error
# coding: utf-8 import fileinput import math reslt = [] for line in fileinput.input(): tokens = list(map(int, line.strip().split())) wa = tokens[0], tokens[1] keta = int(math.log10(wa) + 1) result.append(keta) for i in range(len(result)): 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s384981977
p00002
Runtime Error
import sys def keta(x): return len(str(x)) while True: t=input() if t=="": sys.exit() a,b=[int(i) for i in t.split(" ")] print(keta(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s659036853
p00002
Runtime Error
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s641185612
p00002
Runtime Error
import sys def solve(): while True: try: a, b = map(int, sys.stdin.readline().split()) c = a + b if c == 0: print(1) else: ans = 0 while c > 0: ans += 1 c //= 10 print(ans) except EOFError: return if __name__ == '__main__': solve()
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s321101879
p00002
Runtime Error
def main(): def inputs(): li = [] string = input() count = 0 while count < 201 and string != "": li.append(string) string = input() count += 1 return li li = inputs() for x in li: a = x.split(" ") print(int(a[0]) + int(a[1])) return None 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s912228885
p00002
Runtime Error
import sys while True: print(len(str(abs(sum(map(int, sys.stdin.readline().rstrip().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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s047108808
p00002
Runtime Error
judge = True while judge: a,b = map(int, input().split(" ")) if a == None: judge = False else: 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s975723224
p00002
Runtime Error
judge = True while judge: a,b = map(int, input().split(" ")) if a != None: c = a+b print(len(str(c))) else: judge = 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s447728215
p00002
Runtime Error
for var in range(1,2001): a,b=map(int,input().split()) c=a+b c=str(c) print(len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s826210106
p00002
Runtime Error
import math for _ in range(200): a, b = list(map(int, input().split())) add_ans = a + b print(int(math.log10(add_ans)) + 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s273086285
p00002
Runtime Error
while True: a,b=map(int,input().split()) digit=(a+b) digit2=str(digit) print(len(digit2))
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s880411784
p00002
Runtime Error
while True: a,b=map(int,input().split()) digit=(a+b) digit2=str(digit) print(len(digit2)) print()
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s050953323
p00002
Runtime Error
while True: a,b=map(int,input().split()) digit=(a+b) digit2=str(digit) print(len(digit2)) print('')
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s234474518
p00002
Runtime Error
l = [] for i in range(200): a = input() if a == 'EOF': break else: b = a[0] + a[2] l.append(l) n = 0 for i in range(len(l)): print(len(l[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s795970679
p00002
Runtime Error
l = [] for i in range(200): a,b = map(str,input().split(' ')) if a == 'EOF': break else: c = int(a) d = int(b) e = c + d l.append(e) a = 0 b = 0 c = 0 d = 0 e = 0 n = 0 for i in range(len(l)): print(len(l[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s731333626
p00002
Runtime Error
from sys import stdin import math lines = [line for line in stdin] for line in lines: a, b = [float(n) for n in line] print(math.floor(math.log10(a + b))) # 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s497584993
p00002
Runtime Error
while True: a, b = map(int, input().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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s299687931
p00002
Runtime Error
while 1: a, b = map(int, input().split()) c = a + b c = str(c) print(len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s247622626
p00002
Runtime Error
import sys while 1: a, b = map(int, sys.stdin.readline().split()) c = a + b c = str(c) print(len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s078732134
p00002
Runtime Error
import math while True: line = input().split(" ") if(len(line) != 2): exit() a = int(line[0]) b = int(line[1]) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s783930892
p00002
Runtime Error
#import math while True: line = input().split(" ") if(len(line) != 2): exit() a = int(line[0]) b = int(line[1]) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s314316469
p00002
Runtime Error
import numpy.math while True: line = input().split(" ") if(len(line) != 2): exit() a = int(line[0]) b = int(line[1]) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s220630087
p00002
Runtime Error
import math while True: line = input().split(" ") if(len(line) != 2): break a = int(line[0]) b = int(line[1]) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s751743436
p00002
Runtime Error
import sys a = [print(len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s540355932
p00002
Runtime Error
while(True): x,y=input().split() if x=="EOFError": break k=int(x)+int(y) print(len(str(k)))
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s437190801
p00002
Runtime Error
try: while(True): x,y=input().split() except EOFError: pass k=int(x)+int(y) print(len(str(k)))
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s167144423
p00002
Runtime Error
while True: try: a,b=(int(i) for i in input().split()) print(len(str(a+b))) except EOFError:
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s868557387
p00002
Runtime Error
if __name__ == "__main__": for i in range(200): a = list(map(int,input().strip().split())) if len(a) == 0 :break absum = a[0] + a[1] count = 1 while 1: if absum < 10: break absum= absum /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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s118247347
p00002
Runtime Error
if __name__ == "__main__": for i in range(200): a = list(map(int,input().strip().split())) if len(a) == 0 :break absum = a[0] + a[1] for j in range(1,8): if absum < 10: print(1) break elif int(absum/pow(10,j)) == 1: print(j+1) 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s458752699
p00002
Runtime Error
if __name__ == "__main__": for i in range(200): a,b = list(map(int,input().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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s292273481
p00002
Runtime Error
while(1): a,b=input().strip().split() if a<0 or b<0: break a=int(a) b=int(b) sum = a+b sum = str(sum) print(len(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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s363144972
p00002
Runtime Error
while True: a, b = map(int, input().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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s928865002
p00002
Runtime Error
import math while t == 0: try: n = int(input().rstrip().split(??? ???)) except: break else: print(math.log10(int(n[0]) + int(n[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s418186908
p00002
Runtime Error
import math while t == 0: try: n = int(input().rstrip.split(??? ???)) except: break else: print(math.log10(int(n[0]) + int(n[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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s170686961
p00002
Runtime Error
import math while t == 0: try: n = int(input().rstrip().split(??? ???)) except: break else:
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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>
s695378520
p00002
Runtime Error
import math while t == 0: try: n = int(input().rstrip().split(??? ???)) except: break else: 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 terminates with EOF. </p> <h2>Constraints</h2> <ul> <li>0 &le; <var>a</var>, <var>b</var> &le; 1,000,000</li> <li>The number of datasets &le; 200</li> </ul> <H2>Output</H2> <p> Print the number of digits of <var>a</var> + <var>b</var> for each data set. </p> <H2>Sample Input</H2> <pre> 5 7 1 99 1000 999 </pre> <H2>Output for the Sample Input</H2> <pre> 2 3 4 </pre>