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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s344471208
|
p00002
|
u230836528
|
1392093562
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 206
|
# -*- coding: utf-8 -*-
import sys
for line in sys.stdin.readlines():
a, b = map(int, line.strip().split())
n = a + b
ans = 1
while(n >= 10):
n /= 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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,402
|
s703441023
|
p00002
|
u633068244
|
1393347660
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,403
|
s825121443
|
p00002
|
u140201022
|
1395768733
|
Python
|
Python
|
py
|
Accepted
| 10
|
4180
| 83
|
import sys
for jk in sys.stdin:
j,k=map(int,jk.split())
print len(str(j+k))
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,404
|
s332353541
|
p00002
|
u491763171
|
1396336974
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 102
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,405
|
s317877260
|
p00002
|
u292964502
|
1396570474
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 129
|
while True:
try:
a,b=map(int,raw_input().split())
c = str(a+b)
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,406
|
s235284848
|
p00002
|
u246033265
|
1396601996
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 112
|
try:
while True:
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,407
|
s254204958
|
p00002
|
u708217907
|
1397778849
|
Python
|
Python
|
py
|
Accepted
| 10
|
4176
| 80
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,408
|
s979555721
|
p00002
|
u791201756
|
1397876479
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 114
|
while 1:
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,409
|
s816913733
|
p00002
|
u146816547
|
1398772851
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 102
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,410
|
s438091950
|
p00002
|
u047988051
|
1400120524
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 92
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,411
|
s550633352
|
p00002
|
u907152698
|
1400225963
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 128
|
#coding: utf-8
while True:
try:
s = input().split(" ")
num = int(s[0]) + int(s[1])
print(len(str(num)))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,412
|
s663185100
|
p00002
|
u436634575
|
1400909526
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 138
|
while True:
try:
line = input()
except:
break
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,413
|
s405712299
|
p00002
|
u462169221
|
1401800696
|
Python
|
Python
|
py
|
Accepted
| 10
|
4192
| 179
|
# -*- coding: utf-8 -*-
import sys
for line in sys.stdin.readlines():
a, b = map(int, line.strip().split())
n = a + b
ans = 1
while(n >= 10):
n /= 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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,414
|
s350852892
|
p00002
|
u618672141
|
1403737514
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 297
|
def digits(n):
if n < 10: return 1
c = 0
while n > 0:
c += 1
n = n // 10
return c
while 1:
try:
inp = input()
except EOFError:
break
else:
n, m = inp.split(' ')
n = int(n)
m = int(m)
print(digits(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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,415
|
s604492985
|
p00002
|
u189528630
|
1597542134
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 196
|
# coding: utf-8
# Your code here!
for line in open(0).readlines():
a, b = map(int, line.split())
c = a+b
ans = +(c == 0)
while c:
ans += 1
c //= 10
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,416
|
s689945215
|
p00002
|
u747915832
|
1597074261
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 115
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,417
|
s028362310
|
p00002
|
u849721539
|
1596269082
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 126
|
for i in range(200):
try:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,418
|
s662723525
|
p00002
|
u770042163
|
1594045543
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 201
|
while 1:
try:
x,y = map(int, input().split())
except EOFError:
break
count = 0
sum = x+y
while sum > 0:
sum = sum // 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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,419
|
s577461254
|
p00002
|
u766298320
|
1593533111
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 175
|
while True:
try :
a, b=[int(x) for x in input().split()]
ans = a+b
ans = str(ans)
size = len(ans)
print(size)
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,420
|
s559819193
|
p00002
|
u706903326
|
1592814251
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5612
| 212
|
num_list = []
while True:
try:
num_list.append(input().split())
except EOFError:
break
for i in num_list:
if i != []:
ans = len(str(int(i[0]) + int(i[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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,421
|
s566545893
|
p00002
|
u187074069
|
1592183492
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5652
| 188
|
import math
while True:
try:
lst = list(map(int, input().split()))
a, b = lst[0], lst[1]
c = str(a+b)
print(len(c))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,422
|
s166730210
|
p00002
|
u390052013
|
1591959057
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5600
| 142
|
while True:
try:
s = input()
a, b = [int(i) for i in s.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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,423
|
s993874190
|
p00002
|
u923142875
|
1591781445
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 96
|
import sys
for x in sys.stdin:
s = x.split()
a,b = int(s[0]), int(s[1])
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,424
|
s494645902
|
p00002
|
u245861861
|
1591092797
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5612
| 226
|
listal=[]
while True:
try:
listal.append(input())
except EOFError:
break
tyon=[]
for i in listal:
lista=i.split()
tyon.append(len(str(int(lista[0])+int(lista[1]))))
for i in tyon:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,425
|
s819033422
|
p00002
|
u894788865
|
1589765532
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5644
| 112
|
import math
while 1:
try:
a,b=map(int, input().split())
print(len(format(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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,426
|
s590523764
|
p00002
|
u240091169
|
1588745694
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 149
|
while True :
try :
a, b = map(int, input().split())
except EOFError :
break
x = a + b
print(len(list(str(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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,427
|
s561227517
|
p00002
|
u260980560
|
1588727606
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 162
|
for line in open(0).readlines():
a, b = map(int, line.split())
c = a+b
ans = +(c == 0)
while c:
ans += 1
c //= 10
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,428
|
s472275728
|
p00002
|
u842461513
|
1588296583
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 231
|
line = []
try:
while True:
a,b = input().split(" ")
d = int(a) + int(b)
list = [c for c in str(d)]
line.append(len(list))
except EOFError:
for e in range(0,len(line)):
print(line[e])
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,429
|
s612024546
|
p00002
|
u235330043
|
1588083941
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 124
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,430
|
s603283056
|
p00002
|
u352646821
|
1588038795
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 144
|
while True:
try:
a, b = map(int, input().split())
c = a + b
print(len(str(c)))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,431
|
s357190552
|
p00002
|
u353890989
|
1587126728
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 137
|
while True:
try:
a, b = map(int, input().split(" "))
print(len(str(a + b)))
except BaseException:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,432
|
s696976664
|
p00002
|
u374434600
|
1586621600
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 223
|
import sys
try:
while True:
a,b= map(int, input().split())
sum1=a+b
sum1s=str(sum1)
kata_sum1s=len(sum1s)
keta=int(kata_sum1s)
print(str(keta))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,433
|
s139308448
|
p00002
|
u744927780
|
1586619590
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 123
|
while True:
try:
l=list(map(int,input().split()))
print(len(str(l[0]+l[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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,434
|
s948956252
|
p00002
|
u713674793
|
1586517331
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,435
|
s842876959
|
p00002
|
u230927103
|
1586077262
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 107
|
import sys
for line in sys.stdin.readlines():
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,436
|
s107089375
|
p00002
|
u072053884
|
1585301938
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5688
| 281
|
def solve():
from sys import stdin
input_lines = stdin
from math import log10
for line in input_lines:
a, b = map(int, line.split())
if (a == 0 and b == 0):
break
print(int(log10(a + b)) + 1)
solve()
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,437
|
s048557842
|
p00002
|
u490578380
|
1584683627
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5588
| 172
|
while True:
try:
a, b = list(map(int, input().split()))
print(len(str(a + b)))
except EOFError:
break
except ValueError:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,438
|
s588597900
|
p00002
|
u123017074
|
1584516770
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 133
|
try:
while True:
a, b = list(map(int, input().split()))
print(len(str(a + b)))
except Exception as ex:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,439
|
s892009483
|
p00002
|
u104239930
|
1584462235
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 145
|
while True:
try:
a, b = map(int, input().split())
c = a + b
print(len(str(c)))
except EOFError:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,440
|
s271194417
|
p00002
|
u808372529
|
1583659883
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 129
|
while True:
try:
a,b = map(int,input().split())
c = a+b
print(len(str(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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,441
|
s683291224
|
p00002
|
u998478961
|
1583497008
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 95
|
while 1:
try:print(len(str(sum(list(int(x) for x in 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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,442
|
s579386278
|
p00002
|
u230061082
|
1582583452
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 89
|
while True:
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,443
|
s538339141
|
p00002
|
u642972715
|
1582100973
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5592
| 117
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,444
|
s142440947
|
p00002
|
u701163915
|
1581430286
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 97
|
while 1:
try:
a,b=map(int,input().split())
l=len(str(a+b))
print(l)
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,445
|
s599474694
|
p00002
|
u616752689
|
1581053295
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 210
|
# coding: utf-8
# Your code here!
while 1:
try:
line = input()
lul = line.split()
#printlul)
a = int(lul[0])+int(lul[1])
print(len(str(a)))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,446
|
s409347224
|
p00002
|
u617401892
|
1576247102
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5644
| 227
|
import sys
array = []
for line in sys.stdin:
array.append(map(int, line.split(' ')))
for a, b in array:
digit = 0
c = a + b
while c > 0:
c = int(c / 10)
digit = digit + 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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,447
|
s668886228
|
p00002
|
u630911389
|
1575252226
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 150
|
while True:
try:
a, b = (int(x) for x in input().split())
c = a + b
print(len(str(c)))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,448
|
s935482194
|
p00002
|
u153447291
|
1574769389
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5584
| 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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,449
|
s197287615
|
p00002
|
u011621222
|
1574378019
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,450
|
s312860226
|
p00002
|
u297517978
|
1573379249
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 108
|
while True:
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,451
|
s348720458
|
p00002
|
u774946823
|
1572778354
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5596
| 87
|
import sys
for e in sys.stdin:
a, b = map(int, e.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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,452
|
s409991243
|
p00002
|
u933957884
|
1572605894
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 120
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,453
|
s277654246
|
p00002
|
u635209856
|
1571404728
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 89
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,454
|
s977513125
|
p00002
|
u803862921
|
1570537089
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5600
| 136
|
try:
while True:
a, b = [int(x) for x in input().split()]
print(len(str(a+b)))
pass
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,455
|
s306997373
|
p00002
|
u852592538
|
1569675404
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 115
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,456
|
s015619064
|
p00002
|
u447421429
|
1569575985
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 89
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,457
|
s408685248
|
p00002
|
u629170852
|
1567956727
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 148
|
k=[]
try:
while True:
k.append(list(map(int,input().split())))
except EOFError:
pass
for x,y in k:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,458
|
s928077787
|
p00002
|
u813197825
|
1566220771
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 108
|
import sys
for line in sys.stdin.readlines():
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,459
|
s307100172
|
p00002
|
u824708460
|
1566135388
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 116
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,460
|
s436529805
|
p00002
|
u717727327
|
1565697558
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5612
| 103
|
import sys
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,461
|
s015415370
|
p00002
|
u939401108
|
1564924928
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 167
|
ans = []
while True:
try:
a, b = map(int, input().split())
except:
break
s = str(a + b)
cnt = len(s)
ans.append(cnt)
for a in ans:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,462
|
s672523335
|
p00002
|
u445425884
|
1564924658
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 110
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,463
|
s543327117
|
p00002
|
u218784088
|
1564919267
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 117
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,464
|
s780794171
|
p00002
|
u586792237
|
1564917726
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 117
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,465
|
s537183644
|
p00002
|
u821561321
|
1564917380
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 96
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,466
|
s790480434
|
p00002
|
u250040203
|
1564915211
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 137
|
while True:
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,467
|
s610243592
|
p00002
|
u455877373
|
1564893538
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 110
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,468
|
s075467132
|
p00002
|
u800408401
|
1564848520
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 95
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,469
|
s154447849
|
p00002
|
u108130680
|
1564756116
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 113
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,470
|
s023467800
|
p00002
|
u312033355
|
1564726401
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 84
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,471
|
s493461812
|
p00002
|
u212392281
|
1564578315
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 125
|
try:
while(True):
a, b = map(int, input().split())
c = a + b
print(len(str(c)))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,472
|
s752011726
|
p00002
|
u529337794
|
1564577624
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 110
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,473
|
s537508377
|
p00002
|
u804558166
|
1564554271
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 134
|
def funk():
a,b=map(int,input().split())
print(len(str(a+b)))
while True:
try:
funk()
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,474
|
s832975369
|
p00002
|
u074302614
|
1564498889
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 157
|
import sys
try:
while True:
a, b = list(map(int, input().split()))
c = str(a + b)
print(len(c))
except Exception:
sys.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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,475
|
s895794272
|
p00002
|
u052791913
|
1563257259
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 117
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,476
|
s723439292
|
p00002
|
u090921599
|
1563170498
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 131
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,477
|
s857110729
|
p00002
|
u525395303
|
1563170413
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 110
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,478
|
s945202762
|
p00002
|
u351754662
|
1563169398
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 110
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,479
|
s856748101
|
p00002
|
u678843586
|
1563166657
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5580
| 91
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,480
|
s784486842
|
p00002
|
u397862444
|
1563165982
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 97
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,481
|
s745323158
|
p00002
|
u480501638
|
1562564258
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 105
|
while True:
try:
a,b = list(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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,482
|
s078772672
|
p00002
|
u607723579
|
1562564169
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 105
|
while True:
try:
a,b = list(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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,483
|
s822224753
|
p00002
|
u037441960
|
1562560898
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5584
| 128
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,484
|
s806502496
|
p00002
|
u051789695
|
1562040385
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 109
|
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,485
|
s701755684
|
p00002
|
u313600138
|
1561962366
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 105
|
while True:
try:
a,b = list(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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,486
|
s734608994
|
p00002
|
u013648252
|
1561960345
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 110
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,487
|
s037937002
|
p00002
|
u427219397
|
1561960333
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 122
|
while True:#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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,488
|
s248264822
|
p00002
|
u997476941
|
1561958027
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,489
|
s047567096
|
p00002
|
u089486079
|
1561710998
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 117
|
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 terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,490
|
s044797205
|
p00002
|
u614095715
|
1560495617
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 112
|
import sys
for line in sys.stdin.readlines():
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,491
|
s948053213
|
p00002
|
u264450287
|
1560323366
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 121
|
while True:
try:
a,b=(map(int,input().split()))
c=a+b
print(len(str(c)))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,492
|
s261076762
|
p00002
|
u548252256
|
1560091152
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5612
| 118
|
import sys
if __name__ == '__main__':
for line in sys.stdin:
n,m = map(int,line.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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,493
|
s825604886
|
p00002
|
u506537276
|
1559974649
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 139
|
while True:
try:
a, b = map(int, input().split())
c = a + b
cc = str(c)
print(len(cc))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,494
|
s196794716
|
p00002
|
u555040407
|
1558857262
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5596
| 158
|
while True:
try:
list = input().split()
a = int(list[0])
b = int(list[1])
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,495
|
s506570194
|
p00002
|
u257754197
|
1558702573
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5608
| 121
|
while(1):
try:
a, b= (int(i) for i in input().split())
print(len(str(eval('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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,496
|
s830726108
|
p00002
|
u567306474
|
1557593884
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 142
|
while True:
try:
s = [int(x) for x in input().split()]
print(len(str(s[0]+s[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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,497
|
s172826771
|
p00002
|
u904226154
|
1557210417
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 128
|
while True:
try:
x, y = map(int, input().split())
print(len(str(x + y)))
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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,498
|
s344468225
|
p00002
|
u406093358
|
1555461022
|
Python
|
Python
|
py
|
Accepted
| 10
|
4628
| 192
|
import sys
def digit(n):
now = n
cnt = 1
while now / 10 != 0:
cnt += 1
now = now / 10
return cnt
for line in sys.stdin:
a, b = map(int, line.split())
sum = a + b
print digit(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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,499
|
s313756372
|
p00002
|
u650611266
|
1555043136
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 137
|
while True:
try:
a, b = (int(i) for i in 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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,500
|
s250115743
|
p00002
|
u979795132
|
1554996184
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5612
| 341
|
def degit(num):
count = 0
while num > 0:
num //= 10
count += 1
return count
a = []
b = []
count = 0
while True:
try:
buff = input().split()
a.append(int(buff[0]))
b.append(int(buff[1]))
count += 1
except:
break
for i in range(count):
print(degit(a[i]+b[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 ≤ <var>a</var>, <var>b</var> ≤ 1,000,000</li>
<li>The number of datasets ≤ 200</li>
</ul>
<H2>Output</H2>
<p>
Print the number of digits of <var>a</var> + <var>b</var> for each data set.
</p>
<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,501
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.