submission_id
string
problem_id
string
status
string
code
string
input
string
output
string
problem_description
string
s908836939
p00002
Wrong Answer
import math while True: try: a, b = map(int, input().split()) print(int(math.log(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>
s583287755
p00002
Wrong Answer
import math while True: try: a, b = map(int, input().split()) if a + b == 0: print(0) else: print(int(math.log(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>
s112519865
p00002
Wrong Answer
import math while True: try: a, b = map(int, input().split()) if a + b == 0: print(1) else: print(int(math.log(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>
s504197980
p00002
Wrong Answer
import math import sys for line in sys.stdin: a, b = map(int, line.split()) print(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>
s378298728
p00002
Wrong Answer
import sys a = [] for i in sys.stdin: a = list(map(int, input().split())) b = a[0] + a[1] c = str(b) 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>
s490437850
p00002
Wrong Answer
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>
s554905753
p00002
Wrong Answer
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>
s302626346
p00002
Wrong Answer
import sys a = [] for line in sys.stdin: a.append(line) for n in a: inl=n.split() num=inl[0]+inl[1] l=list(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>
s785915725
p00002
Wrong Answer
import sys a = [] for line in sys.stdin: a.append(line) for n in a: inl=n.split() num=inl[0]+inl[1] if num==0: print "0" else: l=list(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>
s488575999
p00002
Wrong Answer
def get_input(): while True: try: yield ''.join(raw_input()) except EOFError: break if __name__ == '__main__': a = list(get_input()) for n in a: inl=n.split() num=inl[0]+inl[1] l=list(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>
s380550994
p00002
Wrong Answer
def get_input(): while True: try: yield ''.join(raw_input()) except EOFError: break if __name__ == '__main__': a = list(get_input()) for n in a: inl=n.split() num=inl[0]+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>
s631175138
p00002
Wrong Answer
a=map(int,input().split()) print(len(str(sum(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>
s102208492
p00002
Wrong Answer
print(len(str(sum(list(map(int,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>
s610743527
p00002
Wrong Answer
import math nums = list(map(int, input().split())) 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>
s125148806
p00002
Wrong Answer
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,10)) if b==0: b=1 else: b = int(1.0+math.log(b,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>
s987002556
p00002
Wrong Answer
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,10)) if b==0: b=1 else: b = int(1.0+math.log(b,10)) if a==0 and b==0: print(1) else: 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>
s816519586
p00002
Wrong Answer
import math import sys for line in sys.stdin: words=line.strip().split(" ") a=int(words[0]) b=int(words[1]) if a==0 and b==0: print(1) else: if a==0: a=1 else: a = int(1.0+math.log(a,10)) if b==0: b=1 else: b = int(1.0+math.log(b,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>
s741468292
p00002
Wrong Answer
import math import sys for line in sys.stdin: words=line.strip().split(" ") a=int(words[0]) b=int(words[1]) if a==0 and b==0: print(2) else: if a==0: a=1 else: a = int(1.0+math.log(a,10)) if b==0: b=1 else: b = int(1.0+math.log(b,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>
s585214660
p00002
Wrong Answer
import math import sys for line in sys.stdin: words=line.strip().split(" ") a=int(words[0]) b=int(words[1]) c=a+b if c!=0: print(int(1.0+math.log(c,10))) else: print(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>
s257996425
p00002
Wrong Answer
import math import sys for line in sys.stdin: words=line.strip().split(" ") a=int(words[0]) b=int(words[1]) c=a+b if c!=0: print(int(1.0+math.log(c,10))) else: print(0)
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>
s592602297
p00002
Wrong Answer
import math import sys for line in sys.stdin: words=line.strip().split(" ") a=int(words[0]) b=int(words[1]) c=a+b if c!=0: print(int(1.0+math.log(c,10))) else: print(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>
s059299426
p00002
Wrong Answer
import math import sys for line in sys.stdin: words=line.strip().split(" ") a=int(words[0]) b=int(words[1]) c=a+b if c!=0: print(int(1.001+math.log(c,10))) else: print(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>
s811432295
p00002
Wrong Answer
import math import sys for line in sys.stdin: words=line.strip().split(" ") a=int(words[0]) b=int(words[1]) c=a+b if c!=0: print(int(1.00001+math.log(c,10))) else: print(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>
s566963069
p00002
Wrong Answer
a,b=map(int,input().split()) 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 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>
s357414311
p00002
Wrong Answer
__author__= 'CIPHER' str = input() numList = str.split(' ') numList = [ int(x) for x in numList] #print(numList) result = 1 length = 0 for x in numList: result *= x length += x print(length)
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>
s368771213
p00002
Wrong Answer
import sys L = sys.stdin.readlines() for line in L: ##line????????????????????? N = line.split() ##N??????????????¨???????????? sums = int(N[0]) + int(N[1]) print(len(str(sums))+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>
s645297963
p00002
Wrong Answer
import sys L = sys.stdin.readlines() for line in L: N = line.split() sums = int(N[0]) + int(N[1]) print(len(str(sums))+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>
s837636408
p00002
Wrong Answer
import sys for line in sys.stdin: a, b = 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>
s616201429
p00002
Wrong Answer
# -*- coding: utf-8 -*- import sys def get_digits(n): if n < 0: n *= -1 return len(str(n)) def main(): data = [] for line in sys.stdin: a, b = map(int, input().split()) digits = get_digits(a+b) 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 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>
s533465698
p00002
Wrong Answer
while True: try: a, b = map(int, raw_input().split()) except EOFError: 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 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>
s175051057
p00002
Wrong Answer
# Compatible with Python3 # -*- coding: utf-8 -*- from math import log10 print(int(log10(eval(input().replace(" ", "+"))) + 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>
s182925427
p00002
Wrong Answer
[print(len(str(sum(map(int, input().split()))))) for _ in range(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>
s739302864
p00002
Wrong Answer
[print(i//10)for i in[sum(int(e)for e in ln.split())for ln in __import__("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>
s510928881
p00002
Wrong Answer
values = [] x, y = [int(x) for x in input().split()] digit = 0 sum = x + y 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>
s584743960
p00002
Wrong Answer
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>
s634911531
p00002
Wrong Answer
# -*- coding:utf-8 -*- while True: try: array = input().split() a, b = int(array[0]), int(array[1]) x = a+b print(int(math.log10(x) + 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 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>
s542950865
p00002
Wrong Answer
l = 0 l = input().split() a = len(l[0]) b = len(l[1]) k=a+b print(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>
s546000845
p00002
Wrong Answer
l = 0 l = input().split() a = int(l[0]) b = int(l[1]) k=str(a+b) print(len(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>
s604767106
p00002
Wrong Answer
def plus_and_check(list): sum_up = 0 for i in range(len(list)): sum_up += list[i] return len(str(sum_up)) 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>
s834245977
p00002
Wrong Answer
def plus_and_check(list): sum_up = 0 for i in range(len(list)-1): sum_up += list[i] return len(str(sum_up)) 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>
s183684378
p00002
Wrong Answer
def plus_and_check(list): sum_up = sum(list) return len(str(sum_up)) 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>
s708499322
p00002
Wrong Answer
while True: try: line = input() except EOFError: 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>
s707058620
p00002
Wrong Answer
while True: try: line = input() except EOFError: break print(len(list(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>
s506151260
p00002
Wrong Answer
while True: try: line = input() except EOFError: break print(len(list(filter(lambda c: c in '1234567890', 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>
s218864735
p00002
Wrong Answer
#! /usr/bin/env python # -*- coding: utf-8 -*- def main(): nums = input().split(" ") sum = int(nums[0]) + int(nums[1]) print(len(str(sum))) 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>
s542606438
p00002
Wrong Answer
nums = input().split(" ") sum = int(nums[0]) + int(nums[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>
s882581464
p00002
Wrong Answer
import sys tokens = [] for line in sys.stdin.readlines(): tokens.append(list(map(int, line.strip().split()))) for i in range(len(tokens)): print(tokens[i][0] + tokens[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 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>
s039599416
p00002
Wrong Answer
import sys while True: line = sys.stdin.readline() if line == '': break token = list(map(int, line.strip().split())) print(token[0] + token[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>
s679287503
p00002
Wrong Answer
import sys for line in sys.stdin: 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>
s993800038
p00002
Wrong Answer
data_set_count = 3 data_set = [] for _ in range(data_set_count): data_set.append(list(map(int, input().split()))) for i in range(data_set_count): data = data_set[i][0] + data_set[i][1] print(len(str(data)))
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>
s063712038
p00002
Wrong Answer
data_set_count = 3 for _ in range(data_set_count): data_set = list(map(int, input().split())) data = data_set[0] + data_set[1] print(len(str(data)))
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>
s164173963
p00002
Wrong Answer
data_set = list(map(int, input().split())) data = data_set[0] + data_set[1] print(len(str(data)))
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>
s821973051
p00002
Wrong Answer
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>
s947761267
p00002
Wrong Answer
a,b=map(int,input().split()) 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>
s329621481
p00002
Wrong Answer
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>
s872206454
p00002
Wrong Answer
input = raw_input() print 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>
s824388966
p00002
Wrong Answer
splited = raw_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>
s757151382
p00002
Wrong Answer
a,b = map(int ,raw_input().split()) c=str(a+b) 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>
s187692740
p00002
Wrong Answer
# coding: utf-8 import sys def main(): for line in sys.stdin: ls = list(map(int, line.split(' '))) print(ls[0]+ls[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 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>
s220406557
p00002
Wrong Answer
p = input().split(" ") n = int(p[0]) +int(p[1]) print(len(str(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>
s793445324
p00002
Wrong Answer
import sys L = list() for i in sys.stdin: p = input().split(" ") q = int(p[0]) +int(p[1]) L.append(q) for j in range(int(len(L))): print(L[j])
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>
s855759821
p00002
Wrong Answer
def main(): def inputs(): li = [] count = 0 try: while count < 200: li.append(input()) count += 1 except EOFError: return li return li li = inputs() for x in li: a = x.split(" ") 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>
s742058455
p00002
Wrong Answer
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 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>
s123498347
p00002
Wrong Answer
#coding:utf-8 a,b = map(int, raw_input().split()) x = a + b n = 0 while x > 0: if x / 10: n += 1 elif x % 10: n += 1 x = x / 10 print 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>
s021321795
p00002
Wrong Answer
#coding:utf-8 a = [map(int, raw_input().split()) for i in range(3)] for i in range(len(a)): x = a[i][0] + a[i][1] n = 0 while x > 0: if x / 10: n += 1 elif x % 10: n += 1 x = x / 10 print 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>
s794072329
p00002
Wrong Answer
import fileinput if __name__ == "__main__": for line in fileinput.input(): v = line.split(" ") print(sum([int(i) for i in v]))
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>
s252947705
p00002
Wrong Answer
import math import sys ab = [] for line in sys.stdin: ab.append(list(map(int, input().split()))) for line in ab: a, b = line[0], line[1] 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>
s873590724
p00002
Wrong Answer
import math import sys ab = [] for line in sys.stdin: ab.append(list(map(int, input().split()))) for line in ab: a, b = line[0], line[1] 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>
s588001777
p00002
Wrong Answer
import math import sys ab = [] for line in sys.stdin: ab.append(list(map(int, input().split()))) for line in ab: a, b = line[0], line[1] add_ans = a + b print(map(int, str(add_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 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>
s272349858
p00002
Wrong Answer
import math import sys ab = [] for line in sys.stdin: ab.append(list(map(int, input().split()))) for line in ab: a, b = line[0], line[1] add_ans = a + b print(len(str(add_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 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>
s564321477
p00002
Wrong Answer
import math import sys ab = [] for line in sys.stdin: ab.append(list(map(int, input().split()))) for line in ab: a, b = line[0], line[1] add_ans = int(a + b) print(len(str(add_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 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>
s335615269
p00002
Wrong Answer
import math import sys ab = [] for line in sys.stdin: ab.append(list(map(int, input().split()))) for x in ab: a, b = x[0], x[1] add_ans = int(a + b) print(len(str(add_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 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>
s939350490
p00002
Wrong Answer
import math import sys ab = [] for line in sys.stdin: ab.append(line) for x in ab: a, b = x.split(" ") add_ans = int(a + b) print(len(str(add_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 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>
s656867134
p00002
Wrong Answer
# coding: utf-8 # Here your code ! while 1: try: a,b = map(int,input().split()) print(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 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>
s483719881
p00002
Wrong Answer
def main(): a, b = map(int, input().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 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>
s367667429
p00002
Wrong Answer
while True: a,b=map(int,input().split()) digit=(a+b) digit2=str(digit) print(len(digit2)) 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>
s719923014
p00002
Wrong Answer
try: while True: result=0 a,b = map(int, input().split()) result = a + b print(len(result)) 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 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>
s017000593
p00002
Wrong Answer
a, b = map(int, input().split()) 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>
s651405587
p00002
Wrong Answer
while True: try: line = input().split(" ") a = int(line[0]) b = int(line[1]) print(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 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>
s065435929
p00002
Wrong Answer
def main(): a, b = map(int, input().split()) hoge = list(str(a + b)) print(len(hoge)) 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>
s091629550
p00002
Wrong Answer
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 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>
s063636022
p00002
Wrong Answer
import sys for line in sys.stdin: x, y = map(int, line.split()) print(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>
s996615869
p00002
Wrong Answer
answers=[] while True: try: nums=input().split() answers.append(len(nums[0])+len(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 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>
s056005717
p00002
Wrong Answer
answers=[] while True: try: nums=input().split() answers.append(len(nums[0]+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 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>
s931677307
p00002
Wrong Answer
a,b=input().strip().split() 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>
s577306745
p00002
Wrong Answer
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>
s588537799
p00002
Wrong Answer
inputNums = list(map(int, input().split())) print(len(str(inputNums[0] + inputNums[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>
s814018095
p00002
Wrong Answer
import sys for i in sys.stdin: a,b = i.split() a,b = int(a),int(b) 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>
s128792974
p00002
Wrong Answer
import sys import fileinput for i in fileinput.input(): a,b = i.split() a,b = int(a),int(b) 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>
s215076804
p00002
Wrong Answer
import math
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>
s534566554
p00002
Wrong Answer
x,y=[int(i) for i in 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>
s290411614
p00002
Wrong Answer
import math x,y=[int(i) for i in input().split()] 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 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>
s633094315
p00002
Wrong Answer
# coding: utf-8 import codecs import sys sys.stdout = codecs.getwriter("shift_jis")(sys.stdout) # ?????? sys.stdin = codecs.getreader("shift_jis")(sys.stdin) # ??\??? # ??\??¬?????????print??????????????´?????? print(u'?????????') ??¨?????? # ??\??¬?????????input??? input(u'?????????') ??§OK # ??°?¢???????????????????????????´??????6,7???????????????????????¢?????? DEBUG = 0 if DEBUG==0: N, M = map(int, raw_input().split()) a = [] for i in range(M): a.append(map(int, raw_input().split())) else: a = [[5,7],[1,99],[1000,999]] import math for i in range(len(a)): wa = a[i][0] + a[i][1] keta = int(math.log(wa, 10)) + 1 print keta
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>
s646227246
p00002
Wrong Answer
# coding: utf-8 import codecs import sys sys.stdout = codecs.getwriter("shift_jis")(sys.stdout) # ?????? sys.stdin = codecs.getreader("shift_jis")(sys.stdin) # ??\??? # ??\??¬?????????print??????????????´?????? print(u'?????????') ??¨?????? # ??\??¬?????????input??? input(u'?????????') ??§OK # ??°?¢???????????????????????????´??????6,7???????????????????????¢?????? DEBUG = 0 if DEBUG==0: a = [] for line in sys.stdin: deglist = line.split(" ") int_deglist = [int(x) for x in deglist] a.append(int_deglist) else: a = [[5,7],[1,99],[1000,999]] import math for i in range(len(a)): wa = a[i][0] + a[i][1] keta = int(math.log(wa, 10)) + 1 print keta
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>
s638590580
p00002
Wrong Answer
# coding: utf-8 import codecs import sys sys.stdout = codecs.getwriter("shift_jis")(sys.stdout) # ?????? sys.stdin = codecs.getreader("shift_jis")(sys.stdin) # ??\??? # ??\??¬?????????print??????????????´?????? print(u'?????????') ??¨?????? # ??\??¬?????????input??? input(u'?????????') ??§OK # ??°?¢???????????????????????????´??????6,7???????????????????????¢?????? DEBUG = 1 if DEBUG == 0: a = [] for i in range(200): deglist=[int(x) for x in input().split(" ")] a.append(int_deglist) else: a = [[5,7],[1,99],[1000,999]] for i in range(len(a)): wa = a[i][0] + a[i][1] print len(str(wa))
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>
s567773595
p00002
Wrong Answer
import math lst = [] while True: try: a, b = map(int, input().split()) lst.append(int(math.log(10, 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 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>
s492956505
p00002
Wrong Answer
# usr/bin/python # coding: utf-8 ################################################################################ # Digit Number # Write a program which computes the digit number of sum of two integers a and b. # # Input # There are several test cases. Each test case consists of two non-negative integers a and b which are separeted by a space in a line. The input terminates with EOF. # # Constraints # 0 ??? a, b ??? 1,000,000 # The number of datasets ??? 200 # Output # Print the number of digits of a + b for each data set. # # Sample Input # 5 7 # 1 99 # 1000 999 # Output for the Sample Input # 2 # 3 # 4 # ################################################################################ import math if __name__ == "__main__": input_lines = input() a = int(input_lines.split(" ")[0]) b = int(input_lines.split(" ")[1]) data_size = int(math.log10(a+b) + 1) print(data_size) exit(0)
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>
s848310450
p00002
Wrong Answer
import sys for line in sys.stdin: a, b = map(str, line.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>
s549744498
p00002
Wrong Answer
# coding: utf-8 import sys import math def digNum(num): if num <= 0: return 1 else: return int (math.log10(num) + 1) for line in sys.stdin: l = map(int, line.split()) print digNum(l[0]) + digNum(l[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>
s266652996
p00002
Wrong Answer
import sys for line in sys.stdin: a, b = map(int, line.split()) print((a + b)//10 + 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>