s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
int64
0
100
memory
stringlengths
4
6
code_size
int64
15
14.7k
code
stringlengths
15
14.7k
problem_id
stringlengths
6
6
problem_description
stringlengths
358
9.83k
input
stringlengths
2
4.87k
output
stringclasses
807 values
__index_level_0__
int64
1.1k
1.22M
s095363255
p00002
u440180827
1496824864
Python
Python3
py
Accepted
30
7516
112
import sys strs = sys.stdin.readlines() for s in strs: a, b = map(int, s.split()) print(len(str(a + b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,202
s772180528
p00002
u440180827
1496824870
Python
Python3
py
Accepted
30
7528
112
import sys strs = sys.stdin.readlines() for s in strs: a, b = map(int, s.split()) print(len(str(a + b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,203
s223633955
p00002
u440180827
1496884601
Python
Python3
py
Accepted
20
7544
94
import sys for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a + b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,204
s719438048
p00002
u387731924
1498023759
Python
Python3
py
Accepted
20
7596
150
for var in range(1,2001): try: a,b=map(int,input().split()) c=a+b c=str(c) print(len(c)) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,205
s221118145
p00002
u144068724
1499014951
Python
Python3
py
Accepted
20
7524
163
# coding: utf-8 # Here your code ! while 1: try: a,b = map(int,input().split()) su = a+b print(len(str(su))) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,206
s129494563
p00002
u340500592
1499403561
Python
Python3
py
Accepted
30
7600
147
import sys from math import log10 for line in sys.stdin: a, b = map(int, line.split()) digitNumber = int(log10((a + b))) + 1 print(digitNumber)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,207
s027290782
p00002
u340500592
1499403572
Python
Python3
py
Accepted
20
7544
116
import sys for line in sys.stdin: a, b = map(int, line.split()) digitNumber = len(str(a + b)) print(digitNumber)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,208
s108834878
p00002
u503263570
1499676516
Python
Python3
py
Accepted
30
7680
88
import sys a=[map(int,i.split()) for i in sys.stdin] [print(len(str(b+c))) for b,c in a]
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,209
s227320755
p00002
u503263570
1499677011
Python
Python3
py
Accepted
20
7516
90
import sys for a in sys.stdin: b,c=map(int,a.split()) d=len(str(b+c)) print(d)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,210
s186241391
p00002
u503263570
1499677389
Python
Python3
py
Accepted
10
7676
86
import sys a=[map(int,i.split())for i in sys.stdin] [print(len(str(b+c)))for b,c in a]
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,211
s551248146
p00002
u589276934
1499996357
Python
Python3
py
Accepted
30
7532
225
# coding: utf-8 remaining_questions = True while remaining_questions: try: value_a, value_b = map(int, input().split(" ")) print(len(str(value_a + value_b))) except: remaining_questions = False
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,212
s812889887
p00002
u806182843
1500206951
Python
Python3
py
Accepted
20
7588
210
def main(): import sys for line in sys.stdin: a, b = map(int, line.split()) c = a + b digits = 1 while c // 10 != 0: c = c // 10 digits += 1 print(digits) if __name__ == '__main__': main()
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,213
s332035307
p00002
u546285759
1500268332
Python
Python3
py
Accepted
20
7500
112
while True: try: a, b = map(int, input().split()) except: break print(len(str(a+b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,214
s137943480
p00002
u914146430
1500344105
Python
Python3
py
Accepted
20
7664
118
import sys for line in sys.stdin: a, b = list(map(int, line.split())) s=len(str(a+b)) print(s)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,215
s666441577
p00002
u498511622
1501474770
Python
Python3
py
Accepted
20
7508
119
try: while True: a,b=map(int,input().split()) digit=(a+b) digit2=str(digit) print(len(digit2)) except: pass
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,216
s949297173
p00002
u350064373
1501481310
Python
Python3
py
Accepted
30
7524
106
try: while True: a,b = map(int, input().split()) print(len(str(a+b))) except: pass
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,217
s263670492
p00002
u354053070
1501674026
Python
Python3
py
Accepted
20
7588
101
import sys for line in sys.stdin: a, b = list(map(int, line.split())) print(len(str(a + b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,218
s158306742
p00002
u187606290
1502042461
Python
Python3
py
Accepted
30
7816
277
from sys import stdin import math import fileinput for line in fileinput.input(): a, b = [int(n) for n in line.split()] print(math.floor(math.log10(a + b) + 1)) # x1, y1, x2, y2, x3, y3, xp, yp = [float(r) for r in line] # print(x1, y1, x2, y2, x3, y3, xp, yp)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,219
s324384362
p00002
u821624310
1502459778
Python
Python3
py
Accepted
30
7616
108
import fileinput for line in fileinput.input(): a, b = map(int, line.split()) print(len(str(a + b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,220
s846480009
p00002
u214404619
1502747346
Python
Python3
py
Accepted
20
7644
167
import sys; for line in sys.stdin: a = [int(num) for num in line.split()]; sum = a[0] + a[1]; count = 0; while sum > 0: count += 1; sum //= 10; print(count);
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,221
s232368735
p00002
u267909338
1502770092
Python
Python3
py
Accepted
30
7536
160
try: s = [] while True: l = input().split() t = int(l[0]) + int(l[1]) n = str(t) print(len(n)) except EOFError: pass
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,222
s989193433
p00002
u748033250
1502783779
Python
Python3
py
Accepted
30
7524
101
while (1): try: a, b = map(int, input().split()) except: break c = a+b print( len(str(c)) )
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,223
s683380709
p00002
u234052535
1502788297
Python
Python3
py
Accepted
30
7720
228
import math while True: try: line = input().split(" ") if(len(line) != 2): exit() a = int(line[0]) b = int(line[1]) print(int(math.log10(a+b))+1) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,224
s536433552
p00002
u234052535
1502788308
Python
Python3
py
Accepted
30
7580
181
import math while True: try: line = input().split(" ") a = int(line[0]) b = int(line[1]) print(int(math.log10(a+b))+1) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,225
s262403742
p00002
u234052535
1502788343
Python
Python3
py
Accepted
30
7576
180
import math while True: try: line = input().split(" ") a = int(line[0]) b = int(line[1]) print(int(math.log10(a+b))+1) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,226
s756284833
p00002
u234052535
1502788491
Python
Python3
py
Accepted
20
7584
153
import math while True: try: line = input().split(" ") print(int(math.log10(int(line[0])+int(line[1])))+1) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,227
s195797098
p00002
u234052535
1502788577
Python
Python3
py
Accepted
20
7620
154
import math while True: try: line = input().split(" ") print(int(math.log10(int(line[0])+int(line[1])))+1) except: exit()
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,228
s598403116
p00002
u234052535
1502788596
Python
Python3
py
Accepted
20
7656
152
import math while True: try: line = input().split(" ") print(int(math.log10(int(line[0])+int(line[1])))+1) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,229
s006058776
p00002
u551456712
1502848198
Python
Python3
py
Accepted
20
7576
83
import sys a = [print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,230
s202837609
p00002
u551456712
1502848306
Python
Python3
py
Accepted
20
7672
79
import sys [print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,231
s248474618
p00002
u380740339
1502849424
Python
Python3
py
Accepted
30
7788
103
import sys,math for x,y in (line.split() for line in sys.stdin):print(int(math.log10(int(x)+int(y))+1))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,232
s909434621
p00002
u299798926
1502856255
Python
Python3
py
Accepted
20
7612
131
while 1: try: x,y=input().split() k=int(x)+int(y) print(len(str(k))) except EOFError: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,233
s005515634
p00002
u724606305
1502860226
Python
Python3
py
Accepted
30
7536
184
while True: try: a, b = map(int, input().split()) except EOFError: break count=1 k=a+b while k>=10: k//=10 count+=1 print(count)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,234
s548167218
p00002
u193453446
1503459849
Python
Python3
py
Accepted
20
7596
244
import sys def main(): """ ????????? """ istr = sys.stdin.read() wi = istr.splitlines() for i in wi: a = list(map(int,i.split())) b = str(a[0] + a[1]) print(len(b)) if __name__ == '__main__': main()
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,235
s243733036
p00002
u428982301
1503641135
Python
Python3
py
Accepted
20
7576
172
import sys for line in sys.stdin: datas =line.split() if (len(datas)): v = int(datas[0]) + int(datas[1]) print(len(str(v))) else: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,236
s417788840
p00002
u855694108
1504081486
Python
Python3
py
Accepted
20
7540
157
import sys def main(): for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a + b))) if __name__ == "__main__": main()
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,237
s160024722
p00002
u123964252
1504085167
Python
Python3
py
Accepted
20
7608
195
lst = [] for i in range(200): try: lst.append(input()) except EOFError: break print(*[len(str(sum([int(num) for num in string.split(' ')]))) for string in lst], sep='\n')
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,238
s264160292
p00002
u957021183
1504683045
Python
Python3
py
Accepted
30
7784
262
# Aizu Problem 0002: Digit Number # import sys, math, os # read input: PYDEV = os.environ.get('PYDEV') if PYDEV=="True": sys.stdin = open("sample-input.txt", "rt") for line in sys.stdin: a, b = [int(_) for _ in line.split()] print(len(str(a + b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,239
s658784155
p00002
u525269094
1505103492
Python
Python3
py
Accepted
20
7704
283
# coding: utf-8 # Here your code ! import sys import math list = ["2","3"] r = sys.stdin.readlines() n = [[int(i) for i in (j.split())] for j in r] #e = [[int(i) for i in input().split()] for i in range(n)] for j in n: a = sum(j) d = int(math.log10(a)) + 1 print(d)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,240
s172369125
p00002
u877201735
1505655042
Python
Python3
py
Accepted
20
7604
153
while True: try: x = list(map(int, input().split(' '))) n = x[0] + x[1] print(len(str(n))) except EOFError: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,241
s318313056
p00002
u659034691
1505692969
Python
Python3
py
Accepted
20
7748
130
while True: try: a,b=(int(i) for i in input().split()) print(len(str(a+b))) except EOFError: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,242
s093990985
p00002
u741801763
1505719673
Python
Python3
py
Accepted
30
7708
137
import sys if __name__ == "__main__": for i in sys.stdin: a,b = list(map(int,i.strip().split())) print(len(str(a+b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,243
s650969789
p00002
u741801763
1505720881
Python
Python3
py
Accepted
50
7588
150
import fileinput as fi if __name__ == "__main__": for i in fi.input(): a,b = list(map(int,i.strip().split())) print(len(str(a+b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,244
s708635433
p00002
u933096856
1505791729
Python
Python3
py
Accepted
30
7556
113
try: while True: a,b=map(int, input().split()) print(len(str(a+b))) except EOFError: pass
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,245
s231455218
p00002
u197615397
1506151654
Python
Python3
py
Accepted
20
7524
86
import sys for l in sys.stdin: n, m = map(int, l.split()) print(len(str(n+m)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,246
s140324145
p00002
u531482846
1506200129
Python
Python3
py
Accepted
50
7708
89
import sys for line in sys.stdin: x, y = map(int, line.split()) print(len(str(x+y)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,247
s143860167
p00002
u531482846
1506200485
Python
Python3
py
Accepted
20
7708
79
import sys [print(len(str(sum(map(int, line.split()))))) for line in sys.stdin]
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,248
s792266806
p00002
u506705885
1506349992
Python
Python3
py
Accepted
20
7656
199
answers=[] while True: try: nums=input().split() answers.append(len(str(int(nums[0])+int(nums[1])))) except : break for i in range(len(answers)): print(answers[i])
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,249
s715725078
p00002
u015592390
1507126536
Python
Python
py
Accepted
10
6284
120
import sys for line in sys.stdin: sum = 0 for x in line.split(): sum += int(x) print(len(str(sum)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,250
s204718475
p00002
u343251190
1507220494
Python
Python3
py
Accepted
20
7708
88
import sys for line in sys.stdin: print(len(str(sum(list(map(int, line.split()))))))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,251
s821134407
p00002
u256256172
1507280449
Python
Python3
py
Accepted
20
7692
92
import sys for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a+b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,252
s814189510
p00002
u947762778
1507544771
Python
Python3
py
Accepted
60
7652
151
while True: try: inputNums = list(map(int, input().split())) print(len(str(inputNums[0] + inputNums[1]))) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,253
s169219416
p00002
u742505495
1507617531
Python
Python3
py
Accepted
20
7636
124
import math import sys while True: try: a,b = map(int, input().split()) print(len(str(a+b))) except EOFError: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,254
s591200047
p00002
u197670577
1508083205
Python
Python
py
Accepted
10
6364
100
import sys for line in sys.stdin: a, b = map(int, line.strip().split()) print len(str(a+b))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,255
s971001398
p00002
u123686770
1508476366
Python
Python
py
Accepted
10
6228
140
import sys for s in sys.stdin: a,b = s.split(' ') c = int(a) + int(b) i = 1 while c >= 10: c = c / 10 i = i + 1 print i
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,256
s281353075
p00002
u422087503
1508706845
Python
Python3
py
Accepted
20
7560
116
import sys for line in sys.stdin: a = int(line.split()[0]) b = int(line.split()[1]) s = a + b print(len(str(s)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,257
s796876433
p00002
u926657458
1508955392
Python
Python3
py
Accepted
30
7684
129
import sys d = sys.stdin.readline() while d: a, b = map(int,d.split()) print(len(str(a+b))) d = sys.stdin.readline()
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,258
s904991504
p00002
u424041287
1509095432
Python
Python3
py
Accepted
20
7716
147
import math t = 0 while t == 0: try: x,y=[int(i) for i in input().split()] except: break else: a = int (math.log10(x + y) + 1) print(a)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,259
s114739614
p00002
u846136461
1509263480
Python
Python
py
Accepted
10
6400
722
# coding: utf-8 import codecs import sys sys.stdout = codecs.getwriter("shift_jis")(sys.stdout) # ?????? sys.stdin = codecs.getreader("shift_jis")(sys.stdin) # ??\??? # ??\??¬?????????print??????????????´?????? print(u'?????????') ??¨?????? # ??\??¬?????????input??? input(u'?????????') ??§OK # ??°?¢???????????????????????????´??????6,7???????????????????????¢?????? """ DEBUG = 0 if DEBUG == 0: a = [] for i in range(200): deglist=[int(x) for x in input().split(" ")] a.append(deglist) else: a = [[5,7],[1,99],[1000,999]] for i in range(len(a)): wa = a[i][0] + a[i][1] print len(str(wa)) """ while True: try: a,b = map(int, raw_input().split()) print len(str(a+b)) except EOFError: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,260
s218757999
p00002
u914007790
1509343689
Python
Python3
py
Accepted
20
7644
204
import math lst = [] while True: try: a, b = map(int, input().split()) lst.append(int(math.log10(a+b))+1) except EOFError: for i in lst: print(i) break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,261
s396461999
p00002
u223481558
1509940562
Python
Python3
py
Accepted
30
7612
126
while True: try: a,b=map(int,input().split()) print(len(str(a+b))) except EOFError: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,262
s583969230
p00002
u776758454
1510439987
Python
Python3
py
Accepted
50
7756
155
import sys def main(): inputs = sys.stdin.readlines() for item in inputs: print(len(str(sum(tuple(map(int, item.split())))))) main()
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,263
s485035456
p00002
u917432951
1510658638
Python
Python3
py
Accepted
50
7680
132
import sys if __name__ == '__main__': for line in sys.stdin: (x,y) = map(int,line.split()) print(len(str(x+y)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,264
s138874278
p00002
u488038316
1510800554
Python
Python3
py
Accepted
30
7596
256
# -*-coding:utf-8 import fileinput if __name__ == '__main__': for line in fileinput.input(): digit = 0 tokens = list(map(int, line.strip().split())) a, b = tokens[0], tokens[1] num = a + b print(len(str(num)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,265
s302363572
p00002
u471400255
1510979702
Python
Python3
py
Accepted
20
7740
170
from math import log10 as log from sys import stdin A = [] for po in stdin: S = list(map(int,po.split())) A.append(int(log(S[0]+S[1])+1)) for i in A: print(i)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,266
s580598280
p00002
u742178809
1511319369
Python
Python3
py
Accepted
30
7684
113
import sys for line in sys.stdin: s=sum([int(num) for num in line.split(' ')]) print(len(str(s)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,267
s481741105
p00002
u947718497
1511525606
Python
Python
py
Accepted
10
6372
154
import sys # l = sys.stdin.readline() l = sys.stdin.readlines() for line in l: data = map(int, line.split(" ")) print(len(str(data[0] + data[1])))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,268
s529595001
p00002
u548155360
1512380076
Python
Python3
py
Accepted
30
5676
191
# coding=utf-8 import math while True: try: a, b = map(int, input().split()) except EOFError: break c = a + b digit = int(math.log10(c) + 1) print(digit)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,269
s173495639
p00002
u779220087
1512986786
Python
Python3
py
Accepted
20
5700
944
# usr/bin/python # coding: utf-8 ################################################################################ # Digit Number # Write a program which computes the digit number of sum of two integers a and b. # # Input # There are several test cases. Each test case consists of two non-negative integers a and b which are separeted by a space in a line. The input terminates with EOF. # # Constraints # 0 ??? a, b ??? 1,000,000 # The number of datasets ??? 200 # Output # Print the number of digits of a + b for each data set. # # Sample Input # 5 7 # 1 99 # 1000 999 # Output for the Sample Input # 2 # 3 # 4 # ################################################################################ import math import fileinput if __name__ == "__main__": for line in fileinput.input(): a = int(line.split(" ")[0]) b = int(line.split(" ")[1]) data_size = int(math.log10(a+b) + 1) print(data_size) exit(0)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,270
s545314988
p00002
u842823276
1513133993
Python
Python3
py
Accepted
30
5600
93
import sys for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a+b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,271
s764791027
p00002
u181768286
1513156477
Python
Python
py
Accepted
10
4676
120
# coding: utf-8 import sys import math for line in sys.stdin: l = map(int, line.split()) print len(str(sum(l)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,272
s696564316
p00002
u987649781
1513177628
Python
Python3
py
Accepted
20
5680
139
import sys import math for line in sys.stdin: l = line.split() digit = int(math.log10(int(l[0]) + int(l[1]))) + 1 print(digit)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,273
s911706288
p00002
u024715419
1513243093
Python
Python3
py
Accepted
20
5688
118
import sys import math for line in sys.stdin: a, b = map(int, line.split()) print(int(math.log10(a + b) + 1))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,274
s769301271
p00002
u024715419
1513243102
Python
Python3
py
Accepted
20
5680
121
import sys import math for line in sys.stdin: a, b = map(int, line.split()) print(int(math.log10(a + b)//1 + 1))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,275
s671277314
p00002
u024715419
1513243124
Python
Python3
py
Accepted
20
5680
118
import sys import math for line in sys.stdin: a, b = map(int, line.split()) print(int(math.log10(a + b) + 1))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,276
s350718249
p00002
u706217959
1513391453
Python
Python3
py
Accepted
20
5688
337
import math def main(): data = [] while 1: try: n = input().split() a = int(n[0]) b = int(n[1]) ans = int(math.log10(a+b)+1) data.append(ans) except EOFError: break for i in data: print(i) if __name__ == "__main__": main()
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,277
s678771584
p00002
u759934006
1513426577
Python
Python3
py
Accepted
20
5600
151
# coding:utf-8 while True: try: a, b = (int(x) for x in input().split()) print(len(str(a + b))) except EOFError: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,278
s377396211
p00002
u546285759
1513512212
Python
Python3
py
Accepted
20
5588
132
while True: try: a, b = map(int, input().split()) except: break string = str(a+b) print(len(string))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,279
s140214173
p00002
u255925718
1513526068
Python
Python
py
Accepted
10
4628
157
results=[] from sys import stdin for line in stdin: a, b = (int(i) for i in line.split()) results.append(len(str(a+b))) for i in results: print i
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,280
s888630300
p00002
u183079216
1513769886
Python
Python3
py
Accepted
20
5616
188
res=[] while 1: try: s=input() a,b = [int(x) for x in s.split()] res.append(a+b) except: for n in res: print(len(str(n))) break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,281
s430911990
p00002
u298999032
1513996677
Python
Python3
py
Accepted
30
5584
109
while 1: try: a,b=map(int,input().split()) print(len(str(a+b))) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,282
s009855334
p00002
u298999032
1513996685
Python
Python3
py
Accepted
20
5584
109
while 1: try: a,b=map(int,input().split()) print(len(str(a+b))) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,283
s161923844
p00002
u764789069
1514020700
Python
Python
py
Accepted
10
4752
223
import math digit = [] while True: try: a,b =raw_input().split() c = int(a)+int(b) digit.append(int(math.log10(c) + 1)) except: break for i in range(0,len(digit)): print digit[i]
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,284
s095893897
p00002
u480287988
1514104751
Python
Python3
py
Accepted
20
5600
93
import sys for line in sys.stdin: a, b = map(int, line.split()) print(len(str(a+b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,285
s155030133
p00002
u600263347
1514195805
Python
Python3
py
Accepted
20
5612
296
import sys def main(): for line in sys.stdin: A = list(map(int,line.split())) C = A[0]+A[1] count = 0 while True: C/=10 if C < 1: break count += 1 print(count+1) if __name__ == '__main__': main()
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,286
s009074618
p00002
u028347703
1514529738
Python
Python3
py
Accepted
20
5692
153
import sys import math for line in sys.stdin: try: a, b = [int(i) for i in line.split()] print(int(math.log10(a + b) + 1)) except: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,287
s816285825
p00002
u585035894
1514533336
Python
Python3
py
Accepted
20
5596
85
import sys for i in sys.stdin: a,b = map(int, i.split()) print(len(str(a+b)))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,288
s917014373
p00002
u183224403
1514941684
Python
Python3
py
Accepted
30
5592
209
while True: try: input_line = input() if input_line == '': break else: print(len(str(sum(map(int, input_line.split()))))) except EOFError: break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,289
s648814673
p00002
u009288816
1515076600
Python
Python
py
Accepted
10
4636
142
import sys a = "" for input in sys.stdin: a += input l = a.split() for i in range(0,len(l),2): print len(str(int(l[i])+int(l[i+1])))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,290
s832468835
p00002
u043254318
1515431897
Python
Python3
py
Accepted
30
5680
351
import math def get_input(): while True: try: yield ''.join(input()) except EOFError: break line = list(get_input()) for l in range(len(line)): a,b = [int(i) for i in line[l].split()] S = a + b keta = 0 while S > 0: S = math.floor(S / 10) keta = keta + 1 print(keta)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,291
s660253328
p00002
u538972897
1515558490
Python
Python3
py
Accepted
20
5596
142
try: while True: a, b = [int(x) for x in input().strip().split(' ')] print(len(list(str(a+b)))) except EOFError: pass
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,292
s085901963
p00002
u737311644
1516413647
Python
Python3
py
Accepted
20
5592
434
while True: try:a,b=map(int,input().split()) except:break if a=="" or b==":": break c=a+b ans=0 if c>=0 and c<=9: ans=1 if c>=10 and c<=99: ans=2 if c>=100 and c<=999: ans=3 if c>=1000 and c<=9999: ans=4 if c>=10000 and c<=99999: ans=5 if c>=100000 and c<=999999: ans=6 if c>=1000000 and c<=9999999: ans=7 print(ans)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,293
s301936351
p00002
u737311644
1516414283
Python
Python3
py
Accepted
20
5596
159
while True: try:a,b=map(int,input().split()) except:break c=a+b ans=0 while c>9: c=c//10 ans+=1 ans+=1 print(ans)
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,294
s412834525
p00002
u150984829
1516548158
Python
Python3
py
Accepted
30
5572
87
import sys for e in sys.stdin.readlines(): print(len(str(eval('+'.join(e.split())))))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,295
s953894875
p00002
u150984829
1516548186
Python
Python3
py
Accepted
20
5568
87
import sys for e in sys.stdin.readlines(): print(len(str(eval('+'.join(e.split())))))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,296
s674864517
p00002
u150984829
1516548396
Python
Python3
py
Accepted
20
5604
85
import sys for e in sys.stdin.readlines(): print(len(str(sum(map(int,e.split())))))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,297
s657868219
p00002
u150984829
1516548448
Python
Python3
py
Accepted
20
5580
75
while 1: try:print(len(str(sum(map(int,input().split()))))) except:break
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,298
s652889168
p00002
u150984829
1516548496
Python
Python3
py
Accepted
20
5596
73
import sys for e in sys.stdin: print(len(str(sum(map(int,e.split())))))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,299
s637911585
p00002
u150984829
1516548517
Python
Python3
py
Accepted
20
5568
75
import sys for e in sys.stdin: print(len(str(eval('+'.join(e.split())))))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,300
s881959028
p00002
u803045841
1516552624
Python
Python3
py
Accepted
20
5600
85
import sys for e in sys.stdin.readlines(): print(len(str(sum(map(int,e.split())))))
p00002
<H1>Digit Number</H1> <p> Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>. </p> <H2>Input</H2> <p> There are several test cases. Each test case 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>
5 7 1 99 1000 999
2 3 4
2,301