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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s827255019 | p00002 | u803045841 | 1516552663 | Python | Python3 | py | Accepted | 20 | 5596 | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,302 |
s035372745 | p00002 | u150984829 | 1517404829 | Python | Python3 | py | Accepted | 20 | 5600 | 71 | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,303 |
s001369685 | p00002 | u536089081 | 1517565412 | Python | Python3 | py | Accepted | 20 | 5600 | 91 | from sys import stdin
for line in stdin:
print(len(str(sum(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,304 |
s190651706 | p00002 | u661290476 | 1517636332 | Python | Python3 | py | Accepted | 20 | 5592 | 119 | while True:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,305 |
s616961418 | p00002 | u780025254 | 1517966221 | Python | Python3 | py | Accepted | 20 | 5580 | 102 | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,306 |
s629615848 | p00002 | u585184379 | 1518946315 | Python | Python3 | py | Accepted | 20 | 5604 | 513 | import sys
num_of_data = 1
while True:
if num_of_data > 200:
break
try:
a, b = input().split()
except EOFError:
sys.exit()
a = int(a)
b = int(b)
if a >= 0 and a <= 1000000000:
if b >= 0 and b <= 1000000000:
num_of_data += 1
... | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,307 |
s770165886 | p00002 | u613534067 | 1518967076 | Python | Python3 | py | Accepted | 20 | 5608 | 333 | # 何行あるかわからない入力をまとめて処理する
import sys
line = sys.stdin.readlines()
#print(line)
for i in line:
# map関数は配列の型を一括変換するのに便利
b = list(map(int, i.split(" ")))
c = 1
d = b[0] + b[1]
while(d >= 10):
c += 1
d = d / 10
print(c)
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,308 |
s055734564 | p00002 | u328199937 | 1519036710 | Python | Python3 | py | Accepted | 20 | 5584 | 122 | while True:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,309 |
s271268975 | p00002 | u553148578 | 1519815154 | Python | Python3 | py | Accepted | 20 | 5584 | 93 | while True:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,310 |
s749280141 | p00002 | u770440301 | 1522564326 | Python | Python3 | py | Accepted | 20 | 5592 | 227 | def compute_digits_num(a,b):
c = a + b
s = 0
for c in str(c):
s += 1
return s
try:
while True:
a, b = list(map(int, input().split()))
print(compute_digits_num(a,b))
except:
pass
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,311 |
s589887508 | p00002 | u179070318 | 1522821714 | Python | Python3 | py | Accepted | 20 | 5676 | 170 | import math
while True:
try:
a,b = [int(x) for x in input().split()]
x = a + b
print(int(math.log10(x))+1)
except:
break
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,312 |
s625803793 | p00002 | u911420691 | 1523196528 | Python | Python | py | Accepted | 10 | 4636 | 245 | while True:
try:
a, b = (int(x) for x in raw_input().split())
s = a + b
num_digits = 0
while s > 0:
s /= 10
num_digits += 1
print num_digits
except EOFError:
break
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,313 |
s853257899 | p00002 | u027874809 | 1523431926 | Python | Python3 | py | Accepted | 30 | 5588 | 119 | while True:
try:
print(len(str(sum(list(map(int, input().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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,314 |
s213144346 | p00002 | u352394527 | 1523609932 | Python | Python3 | py | Accepted | 30 | 5596 | 114 | while True:
try:
a,b = list(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,315 |
s989845172 | p00002 | u349420778 | 1523980445 | Python | Python3 | py | Accepted | 30 | 5992 | 421 | #!/usr/bin/env python3
import collections
import sys
def read_prob():
inputs = []
try:
while True:
line = input().strip().split()
a, b = line[0], line[1]
inputs.append(int(a) + int(b))
except EOFError:
pass
return inputs
if __name__ == '__main__':
... | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,316 |
s301809292 | p00002 | u120970792 | 1524812236 | Python | Python3 | py | Accepted | 20 | 5600 | 191 | l = list(map(int, input().split()))
while(l != []):
try:
length = len(str(l[0]+l[1]))
print(length)
l = list(map(int, input().split()))
except:
break
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,317 |
s362315530 | p00002 | u533681846 | 1524995143 | Python | Python3 | py | Accepted | 20 | 5600 | 191 | while 1:
try:
a, b = map(int, input().split())
ans = 1
while (a+b)/(10**ans) >= 1:
ans += 1
print(str(ans))
except EOFError:
break
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,318 |
s686554693 | p00002 | u223900719 | 1525056577 | Python | Python | py | Accepted | 10 | 4620 | 101 | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,319 |
s601009917 | p00002 | u480716860 | 1525222400 | Python | Python3 | py | Accepted | 30 | 5604 | 291 |
A = []
B = []
s = True
while(s):
try:
a,b = map(int, input().split())
except:
break
A.append(a)
B.append(b)
for i in range(len(A)):
sum = A[i] + B[i]
digits = 1
while(sum//10 != 0):
digits += 1
sum //= 10
print(str(digits))
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,320 |
s985807066 | p00002 | u724548524 | 1525728767 | Python | Python3 | py | Accepted | 20 | 5600 | 72 | import sys
for i in sys.stdin:print(len(str(sum(map(int, i.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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,321 |
s995239498 | p00002 | u945249026 | 1525774690 | Python | Python3 | py | Accepted | 30 | 5592 | 142 | while True:
try:
a, b = map(int,input().split())
s = str(a + b)
print(len(s))
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,322 |
s425178251 | p00002 | u940977872 | 1526343710 | Python | Python3 | py | Accepted | 20 | 5588 | 138 | while True:
try:
a, b = map(int, input().rstrip().split())
print(len(str(a + b)))
except Exception:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,323 |
s663802930 | p00002 | u136916346 | 1527347585 | Python | Python3 | py | Accepted | 20 | 5616 | 97 | import sys
c=[len(str(sum(map(int,line.split())))) for line in sys.stdin]
[print(i) for i in 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,324 |
s615163678 | p00002 | u002010345 | 1527578854 | Python | Python3 | py | Accepted | 20 | 5600 | 177 | def main():
while True:
try:
a, b = (int(x) for x in input().split())
print(len(str(a+b)))
except EOFError:
break
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,325 |
s048028500 | p00002 | u328733599 | 1528354039 | Python | Python3 | py | Accepted | 20 | 5596 | 113 | from sys import stdin
for line in stdin:
a,b = line.split(" ")
c = int(a)+int(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,326 |
s770276051 | p00002 | u458530128 | 1528361565 | Python | Python3 | py | Accepted | 20 | 5612 | 160 | a = []
while True:
try:
a.append(list(map(int, input().split())))
except EOFError:
break
for i in a:
print(len(str(i[0] + i[1])))
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,327 |
s578945432 | p00002 | u847467233 | 1528377065 | Python | Python3 | py | Accepted | 20 | 5588 | 187 | # AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u
while True:
try:
a = list(map(int, input().split()))
print(len(str(a[0] + a[1])))
except EOFError:
break
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,328 |
s395186287 | p00002 | u563075864 | 1529160319 | Python | Python3 | py | Accepted | 20 | 5608 | 101 | import sys
for line in sys.stdin:
a,b = [int(i) for i 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,329 |
s219569975 | p00002 | u244745048 | 1529389067 | Python | Python3 | py | Accepted | 20 | 5684 | 146 | import math
import sys
for num in sys.stdin:
num = num.split()
a = int(num[0])
b = int(num[1])
size = int (math.log10(a+b) + 1)
print(size)
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,330 |
s492659226 | p00002 | u483248490 | 1529472525 | Python | Python3 | py | Accepted | 20 | 5604 | 223 | import sys
for line in sys.stdin:
l=0
for l in range(len(line)):
if(line[l] == ' '):
p = l
break
a = line[0:p]
b = line[p+1:]
c = int(a)+int(b)
d = 1
while(int(c/10) != 0):
d += 1
c = int(c/10)
print(d)
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,331 |
s931797812 | p00002 | u847467233 | 1529527738 | Python | Python3 | py | Accepted | 20 | 5580 | 152 | # AOJ 0002 Digit Number
# Python3 2018.6.7 bal4u
while True:
try: print(len(str(sum(list(map(int, input().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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,332 |
s152637327 | p00002 | u316584871 | 1530002323 | Python | Python3 | py | Accepted | 20 | 5592 | 206 | while True:
try:
a,b = map(int, input().split())
d = 0
s = sum([a,b])
while (s):
s //= 10
d += 1
print(d)
except EOFError: break
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,333 |
s267697052 | p00002 | u847467233 | 1530146674 | Python | Python3 | py | Accepted | 20 | 5580 | 90 | while 1:
try: print(len(str(sum(list(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,334 |
s722513894 | p00002 | u841567836 | 1530265022 | Python | Python3 | py | Accepted | 20 | 5596 | 128 | while True:
try:
a, b = (int(x) for x in 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,335 |
s225111746 | p00002 | u995990363 | 1530663033 | Python | Python3 | py | Accepted | 30 | 5688 | 228 | import sys, math
def run():
N = []
for n in sys.stdin:
a,b = map(int, n.split())
N.append((a,b))
for a,b in N:
print(math.floor(math.log10(a+b)) + 1)
if __name__ == '__main__':
run()
| 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,336 |
s578597115 | p00002 | u517745281 | 1344326059 | Python | Python | py | Accepted | 20 | 4200 | 95 | import sys
print "\n".join(str(len(str(sum(int(x) for x in l.split(' '))))) for l 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,337 |
s780830234 | p00002 | u263247628 | 1344570969 | Python | Python | py | Accepted | 10 | 4200 | 135 | while True:
try:
x = map(int, raw_input().split(" "))
print len(str(x[0]+x[1]))
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,338 |
s559869196 | p00002 | u894941280 | 1344729290 | Python | Python | py | Accepted | 10 | 4196 | 136 | while True:
try:
x = map(int, raw_input().split(" "))
print len(str(x[0]+x[1]))
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,339 |
s018634394 | p00002 | u229177350 | 1344883406 | Python | Python | py | Accepted | 10 | 4392 | 116 | import sys
import math
for line in sys.stdin:
a = line.split()
print int(math.log10(int(a[0]) + int(a[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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,340 |
s857144446 | p00002 | u891318575 | 1346471450 | Python | Python | py | Accepted | 10 | 4204 | 167 | # -*- coding: utf-8 -*-
while True:
try:
x = [int(i) for i in raw_input().split(" ")]
print len(str(x[0]+x[1]))
except Exception:
break | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,341 |
s742962447 | p00002 | u724947062 | 1346478481 | Python | Python | py | Accepted | 10 | 4196 | 124 | import sys
for i in sys.stdin.readlines():
a, b = map(int, i.strip().split())
print "{0}".format(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,342 |
s190676406 | p00002 | u788273968 | 1349063704 | Python | Python | py | Accepted | 10 | 4212 | 161 | while 1:
try:
line = raw_input()
except EOFError:
break
arr = map((lambda x: int(x)), line.split())
print len(str(arr[0]+arr[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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,343 |
s344067624 | p00002 | u126791750 | 1350210328 | Python | Python | py | Accepted | 10 | 4204 | 164 | #condig: UTF-8
while True:
try:
n = map(int, raw_input().split())
s = len(str(n[0] + n[1]))
print s
except Exception:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,344 |
s832360002 | p00002 | u647766105 | 1350901769 | Python | Python | py | Accepted | 10 | 4396 | 140 | import sys
import math
for i in sys.stdin.readlines():
a, b = map(int, i.strip().split())
print "{}".format(int(math.log10(a+b))+1) | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,345 |
s319155934 | p00002 | u719737030 | 1350907095 | Python | Python | py | Accepted | 10 | 4200 | 105 | import sys
for i in sys.stdin.readlines():
x = i.split(" ")
print len(str(int(x[0]) + int(x[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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,346 |
s705893489 | p00002 | u779627195 | 1352367805 | Python | Python | py | Accepted | 10 | 4200 | 138 | while 1:
try:
a,b = map(int, raw_input().split())
n = a+b
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,347 |
s495645666 | p00002 | u504990413 | 1353137916 | Python | Python | py | Accepted | 10 | 4220 | 321 | while True:
try:
nums = map(int, raw_input().split(' '))
ans = nums[0]+nums[1]
x = 0
while True:
if (10**x -1) < ans < 10**(x+1):
print x+1
break
else:
x = x+1
except EOFError:
break... | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,348 |
s844977612 | p00002 | u735362704 | 1354634596 | Python | Python | py | Accepted | 10 | 4208 | 268 |
#!/usr/bin/env python
# coding: utf-8
def main():
while 1:
try:
input_data = raw_input()
except EOFError:
break
print sum(map(int, input_data.split(" "))).__str__().__len__()
if __name__ == '__main__':
main() | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,349 |
s645892535 | p00002 | u647766105 | 1354798443 | Python | Python | py | Accepted | 10 | 5076 | 138 | import sys,math
for i in sys.stdin.readlines():
if not i.strip():break
a, b = map(int, i.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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,350 |
s506043548 | p00002 | u419407022 | 1355293295 | Python | Python | py | Accepted | 10 | 5732 | 138 | while True:
try:
a, b = [int(i) for i in 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,351 |
s163573326 | p00002 | u560838141 | 1356512260 | Python | Python | py | Accepted | 10 | 4204 | 133 | while True:
try:
a, b = raw_input().strip().split(" ")
print len(str(int(a) + int(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,352 |
s682788268 | p00002 | u560838141 | 1356512479 | Python | Python | py | Accepted | 10 | 4200 | 133 | while True:
try:
a, b = raw_input().strip().split(" ")
print len(str(int(a) + int(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,353 |
s429148668 | p00002 | u560838141 | 1356512731 | Python | Python | py | Accepted | 10 | 4204 | 133 | while True:
try:
a, b = raw_input().strip().split(" ")
print len(str(int(a) + int(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,354 |
s247569493 | p00002 | u560838141 | 1356709365 | Python | Python | py | Accepted | 20 | 4204 | 110 | while True:
try:
a, b = map(int, raw_input().strip().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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,355 |
s083892412 | p00002 | u665962315 | 1357419309 | Python | Python | py | Accepted | 20 | 4200 | 116 | while True:
try:
print len(str(sum(map(int, raw_input().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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,356 |
s875414199 | p00002 | u560838141 | 1357482555 | Python | Python | py | Accepted | 10 | 4200 | 99 | while True:
try:
print len(str(sum(map(int, raw_input().strip().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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,357 |
s188530453 | p00002 | u560838141 | 1357485190 | Python | Python | py | Accepted | 10 | 4204 | 165 | #condig: UTF-8
while True:
try:
n = map(int, raw_input().split())
s = len(str(n[0] + n[1]))
print s
except Exception:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,358 |
s190020517 | p00002 | u560838141 | 1357556659 | Python | Python | py | Accepted | 20 | 4200 | 165 | #condig: UTF-8
while True:
try:
n = map(int, raw_input().split())
s = len(str(n[0] + n[1]))
print s
except Exception:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,359 |
s656219727 | p00002 | u378761086 | 1360422649 | Python | Python | py | Accepted | 20 | 4200 | 121 | #!/usr/bin/python
import sys
for l in sys.stdin:
array = l.split()
print len(str(int(array[0]) + int(array[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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,360 |
s599544739 | p00002 | u273917701 | 1360672291 | Python | Python | py | Accepted | 10 | 4200 | 126 | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,361 |
s001506992 | p00002 | u273917701 | 1360672807 | Python | Python | py | Accepted | 10 | 4196 | 95 | import sys
for i in sys.stdin.readlines():
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,362 |
s309415807 | p00002 | u782850731 | 1361765558 | Python | Python | py | Accepted | 10 | 4208 | 162 | from __future__ import absolute_import, print_function, unicode_literals
import sys
for line in sys.stdin:
print(len(str(sum(int(n) for n in 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,363 |
s286107752 | p00002 | u894941280 | 1362256729 | Python | Python | py | Accepted | 10 | 4204 | 127 | while True:
try:
a,b = raw_input().split()
print len(str(int(a)+int(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,364 |
s886849739 | p00002 | u246394513 | 1362301283 | Python | Python | py | Accepted | 10 | 4196 | 84 | try:
for a in iter(raw_input,0):print len(str(sum(map(int,a.split()))))
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,365 |
s585742796 | p00002 | u743065194 | 1362999107 | Python | Python | py | Accepted | 10 | 4196 | 78 | import sys
for line in sys.stdin: print(len(str(sum(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,366 |
s095594728 | p00002 | u282635979 | 1363859248 | Python | Python | py | Accepted | 20 | 4204 | 94 | while True:
try:
a,b = map(int,raw_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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,367 |
s620664338 | p00002 | u585414111 | 1365338842 | Python | Python | py | Accepted | 10 | 4424 | 115 | import sys,math
for line in sys.stdin:
print reduce(lambda x,y: int(math.log10(x+y)+1), 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,368 |
s788283023 | p00002 | u455516672 | 1365667939 | Python | Python | py | Accepted | 10 | 4196 | 97 | while True:
try: print len(str(sum(map(int,raw_input().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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,369 |
s921272641 | p00002 | u147801965 | 1366434111 | Python | Python | py | Accepted | 10 | 4196 | 69 | import sys
for i in sys.stdin:print len(str(sum(map(int,i.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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,370 |
s234350974 | p00002 | u318424563 | 1366625485 | Python | Python | py | Accepted | 10 | 4220 | 258 | try:
data = []
while True:
data.append(raw_input())
except EOFError:
pass
for i in data:
x, y = i.split()
a, b = int(x), int(y)
for j in range(1, 8):
if (a + b) / (10 ** j) < 1:
print j
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,371 |
s384179068 | p00002 | u363039534 | 1367904188 | Python | Python | py | Accepted | 10 | 4204 | 119 | while True:
try:
a=map(int,raw_input().split())
print len(str(a[0]+a[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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,372 |
s270629660 | p00002 | u350508326 | 1367929247 | Python | Python | py | Accepted | 10 | 4200 | 94 | import sys
for line in sys.stdin:
n =map(int,line.split())
a = n[0]+n[1]
print len(str(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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,373 |
s720098957 | p00002 | u116766943 | 1368072086 | Python | Python | py | Accepted | 10 | 4196 | 93 | while True:
try:
a,b = map(int,raw_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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,374 |
s542818095 | p00002 | u542421762 | 1368080474 | Python | Python | py | Accepted | 10 | 4312 | 329 | #
# AIZU ONLINE JUDGE: Digit Number
# cf. http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002&lang=jp
#
import sys
import re
#file = open(sys.argv[1], "r")
for line in sys.stdin:
ab = map(int, re.split(" +", line))
answer = reduce((lambda x, y: x + y), ab, 0)
digits = len(str(answer))
pri... | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,375 |
s043955944 | p00002 | u093607836 | 1369055833 | Python | Python | py | Accepted | 20 | 4208 | 100 | import sys
for line in sys.stdin:
list = line.split()
print len(str(eval(list[0])+eval(list[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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,376 |
s062134187 | p00002 | u759934006 | 1372531576 | Python | Python | py | Accepted | 10 | 4396 | 152 | import math
while True:
try:
a, b = map(int, raw_input().split())
except EOFError:
break
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,377 |
s549254781 | p00002 | u536245846 | 1374642640 | Python | Python | py | Accepted | 20 | 4200 | 119 | while True:
try:
a, b = map(int, raw_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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,378 |
s028878254 | p00002 | u085789778 | 1374655719 | Python | Python | py | Accepted | 10 | 4224 | 272 | # -*- utf-8 -*-
while True:
try:
inp = raw_input()
i = map(int, inp.split())
a = i[0]
b = i[1]
s = a + b
except:
break
ans = 0
while s >= 1:
s /= 10
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,379 |
s107656423 | p00002 | u843960735 | 1374681438 | Python | Python | py | Accepted | 10 | 4200 | 111 | try :
while True :
(a,b) = map(int, raw_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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,380 |
s056193300 | p00002 | u912573907 | 1375165918 | Python | Python | py | Accepted | 10 | 4404 | 158 | import sys
import math
for line in sys.stdin:
line = line.strip()
print int(math.log10(int(line[:line.find(' ')]) + int(line[line.find(' ') + 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,381 |
s934238622 | p00002 | u455025374 | 1376079834 | Python | Python | py | Accepted | 20 | 4200 | 92 | while 1:
try:
print len(str(sum(map(int,raw_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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,382 |
s867620862 | p00002 | u228756885 | 1376482422 | Python | Python | py | Accepted | 10 | 4396 | 128 | #coding UTF-8
import math
import sys
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,383 |
s538279024 | p00002 | u912237403 | 1376708306 | Python | Python | py | Accepted | 20 | 4200 | 135 | import sys
while True:
try:
a,b = map(int, raw_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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,384 |
s114706267 | p00002 | u866760195 | 1378218863 | Python | Python | py | Accepted | 10 | 4340 | 205 | import math
while True:
try:
a =map(int,raw_input().split())
b = a[0] + a[1]
print len(str(a[0]+a[1]))
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,385 |
s308210523 | p00002 | u813384600 | 1379065311 | Python | Python | py | Accepted | 10 | 4196 | 128 | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,386 |
s656103000 | p00002 | u389390219 | 1380934583 | Python | Python | py | Accepted | 10 | 4196 | 83 | while True:
try: print len(str(sum(map(int,raw_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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,387 |
s870472687 | p00002 | u492005863 | 1381233250 | Python | Python | py | Accepted | 10 | 4208 | 173 | # Digit Number
import sys
results = []
for line in sys.stdin:
results.append(int(line.split()[0]) + int(line.split()[1]))
for result in results:
print len(str(result)) | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,388 |
s802110575 | p00002 | u351182591 | 1381506986 | Python | Python | py | Accepted | 20 | 4200 | 106 | try:
while 1:
a, b = map(int,raw_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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,389 |
s791788929 | p00002 | u093607836 | 1381631922 | Python | Python | py | Accepted | 20 | 4200 | 105 | import sys
for line in sys.stdin:
l = map(lambda i:int(i), line.split(' '))
print len(str(l[0] + l[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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,390 |
s339358156 | p00002 | u511257811 | 1381938064 | Python | Python | py | Accepted | 10 | 4192 | 184 | import sys
for line in sys.stdin:
result = 0
a, b = map(int, line.rstrip('\n').split(' '))
x = a + b
while x > 0:
result += 1
x /= 10
print result | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,391 |
s398783508 | p00002 | u674319057 | 1382284638 | Python | Python | py | Accepted | 10 | 4200 | 233 | #!/usr/bin/env python
dn = lambda a, b: len(str(a+b))
get = lambda: [int(x) for x in raw_input().split()]
if __name__ == "__main__":
while True:
try:
print "%d" % dn(*get())
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,392 |
s820689903 | p00002 | u674319057 | 1382284726 | Python | Python | py | Accepted | 10 | 4200 | 242 | #!/usr/bin/env python
dn = lambda a, b: len(str(a+b))
get = lambda: [int(x) for x in raw_input().split()]
if __name__ == "__main__":
while True:
try:
print "%d" % dn(*get())
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,393 |
s336325397 | p00002 | u093607836 | 1382890035 | Python | Python | py | Accepted | 10 | 4180 | 78 | import sys
for s in sys.stdin:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,394 |
s557585059 | p00002 | u146816547 | 1386686537 | Python | Python | py | Accepted | 10 | 4380 | 141 | import math
while 1:
try:
a, b = map(int,raw_input().split())
except EOFError:
break
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,395 |
s212678742 | p00002 | u786185717 | 1387838694 | Python | Python | py | Accepted | 20 | 4200 | 138 | x = []
try:
while True:
a, b = map(int, raw_input().split())
x.append(len(list(str(a + b))))
except EOFError:
for i in x:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,396 |
s603127903 | p00002 | u023846178 | 1388046802 | Python | Python | py | Accepted | 10 | 4184 | 84 | import sys
for v in sys.stdin:
a,b = map(int, v.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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,397 |
s774082994 | p00002 | u912237403 | 1388813804 | Python | Python | py | Accepted | 20 | 4180 | 81 | import sys
for s in sys.stdin:
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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,398 |
s564856525 | p00002 | u912237403 | 1388815966 | Python | Python | py | Accepted | 20 | 4180 | 74 | import sys
for s in sys.stdin:
print len(str(sum(map(int,s.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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,399 |
s604280708 | p00002 | u912237403 | 1390110866 | Python | Python | py | Accepted | 10 | 4184 | 83 | import sys
for s in sys.stdin:
x=len(str(sum(map(int,s.split()))))
print x | 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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,400 |
s985423494 | p00002 | u912237403 | 1390117544 | Python | Python | py | Accepted | 10 | 4184 | 69 | import sys
for s in sys.stdin:print len(str(sum(map(int,s.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 ter... | 5 7
1 99
1000 999
| 2
3
4
| 2,401 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.