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
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
s966663130
|
p00001
|
u567306474
|
1557593215
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 115
|
h = [0] * 10
for i in range(10):
h[i] = int(input())
h.sort()
h.reverse()
print(h[0])
print(h[1])
print(h[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,902
|
s890807407
|
p00001
|
u904226154
|
1557209766
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 135
|
hills = []
for i in range(10):
hills.append(int(input()))
hills.sort(reverse=True)
print(hills[0])
print(hills[1])
print(hills[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,903
|
s925836630
|
p00001
|
u831725332
|
1555430799
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 185
|
N_DATA = 10
input_data = [int(input()) for i in range(N_DATA)]
sorted_data = sorted(input_data, reverse = True)
N_PRINT_DATA = 3
[print(sorted_data[i]) for i in range(N_PRINT_DATA)]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,904
|
s411910874
|
p00001
|
u406093358
|
1555399424
|
Python
|
Python
|
py
|
Accepted
| 10
|
4628
| 148
|
mountain = []
for i in range(0, 10):
mountain.append(int(raw_input()))
mountain.sort()
mountain.reverse()
for i in range(0, 3):
print mountain[i]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,905
|
s866713111
|
p00001
|
u650611266
|
1554971328
|
Python
|
Python
|
py
|
Accepted
| 10
|
4640
| 177
|
a=[]
for i in range(10):
a.append(int(input()))
for i in range(3):
c = 0
for sample in a:
if c < sample:
c = sample
print(c)
a.remove(c)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,906
|
s119273718
|
p00001
|
u979795132
|
1554904155
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 301
|
mountain = []
for i in range(10):
mountain.append(int(input()))
for i in range(3):
for j in range(i,10):
if mountain[i] < mountain[j]:
buff_mt = mountain[i]
mountain[i] = mountain[j]
mountain[j] = buff_mt
for i in range(3):
print(mountain[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,907
|
s784107956
|
p00001
|
u407689197
|
1554559276
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 204
|
from sys import argv, stdin, stderr, stdout
heights = []
for i in range(0, 10):
heights.append(int(stdin.readline()))
heights.sort(reverse=True)
for i in range(0, 3):
stdout.write("%d\n" % heights[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,908
|
s762720045
|
p00001
|
u647694976
|
1554518164
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 116
|
mount=[]
for i in range(10):
mount.append(int(input()))
mount.sort()
for j in range(1,4):
print(mount[-j])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,909
|
s422472072
|
p00001
|
u761923615
|
1554423464
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 225
|
top=0
sec=0
thi=0
for num in range(10):
input_num=input()
x=int(input_num)
if x>top:
thi=sec
sec=top
top=x
elif x<=top and x>sec:
thi=sec
sec=x
elif x<=sec and x>thi:
thi=x
print(top)
print(sec)
print(thi)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,910
|
s824998428
|
p00001
|
u763386533
|
1553795930
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 89
|
import sys
h=[int(i) for i in sys.stdin]
h.sort()
print(h[-1])
print(h[-2])
print(h[-3])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,911
|
s318254750
|
p00001
|
u345188151
|
1553437799
|
Python
|
Python
|
py
|
Accepted
| 10
|
4648
| 299
|
i = 0
arr = list()
for i in range(10):
arr.append(int(raw_input()))
fst = sec = thr = -1
for i in range(10):
if fst < arr[i]:
thr = sec
sec = fst
fst = arr[i]
elif sec < arr[i]:
thr = sec
sec = arr[i]
elif thr < arr[i]:
thr = arr[i]
print fst
print sec
print thr
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,912
|
s525461306
|
p00001
|
u448894091
|
1553297785
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 99
|
data = [int(input()) for i in range(10)]
data.sort()
for j in range(9, 6, -1):
print(data[j])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,913
|
s008962517
|
p00001
|
u033958021
|
1553177926
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 150
|
# coding: utf-8
j = [0,0,0,0,0,0,0,0,0,0]
for i in range(0,10):
j[i] = int(input())
j.sort(reverse=True)
for i in range(0,3):
print(j[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,914
|
s293099680
|
p00001
|
u164933847
|
1552537736
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 113
|
mnt=[]
for i in range(10):
mnt.append(int(input()))
mnt.sort()
print(f'{mnt[9]}\n{mnt[8]}\n{mnt[7]}')
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,915
|
s129682499
|
p00001
|
u011810163
|
1552316381
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 113
|
Lheight = [int(input()) for i in range(10)]
Lheight.sort(reverse=True)
for j in range(3):
print(Lheight[j])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,916
|
s102715109
|
p00001
|
u625806423
|
1551703344
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 735
|
mountains = [0 for i in range(10)]
for i in range(10):
mountains[i] = int(input())
highest1 = mountains[0]
if highest1 < mountains[1]:
highest2 = highest1
highest1 = mountains[1]
else:
highest2 = mountains[1]
if highest1 < mountains[2]:
highest2, highest3 = highest1, highest2
highest1 = mountains[2]
elif highest2 < mountains[2]:
highest3 = highest2
highest2 = mountains[2]
else:
highest3 = mountains[2]
for i in range(3,10):
if highest1 < mountains[i]:
highest1, highest2, highest3 = mountains[i], highest1, highest2
elif highest2 < mountains[i]:
highest2, highest3 = mountains[i], highest2
elif highest3 < mountains[i]:
highest3 = mountains[i]
print(highest1)
print(highest2)
print(highest3)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,917
|
s175001127
|
p00001
|
u811314383
|
1550812627
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 100
|
mt = [int(input()) for i in range(10)]
mt.sort()
mt.reverse()
for i in range(3):
print(mt[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,918
|
s007118360
|
p00001
|
u990228206
|
1550811274
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 119
|
high=[0]*10
for i in range(10):
high[i]=int(input())
high.sort(reverse=True)
for i in range(3):
print(high[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,919
|
s939426150
|
p00001
|
u314832372
|
1550742350
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 296
|
list1 = []
for i in range(1, 11):
list1.append(input())
for x in range(1, 11):
for y in range(0, 9):
if int(list1[y]) < int(list1[y+1]):
temp = list1[y]
list1[y] = list1[y+1]
list1[y+1] = temp
print(list1[0])
print(list1[1])
print(list1[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,920
|
s583094160
|
p00001
|
u314832372
|
1550737512
|
Python
|
Python
|
py
|
Accepted
| 0
|
4656
| 287
|
list1 = []
for i in range(1, 11):
list1.append(input())
for x in range(1, 11):
for y in range(0, 9):
if list1[y] < list1[y+1]:
temp = list1[y]
list1[y] = list1[y+1]
list1[y+1] = temp
print(list1[0])
print(list1[1])
print(list1[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,921
|
s459148621
|
p00001
|
u195186080
|
1550656238
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 144
|
input_arr = []
for i in range(10):
input_arr.append(int(input()))
input_arr.sort(reverse=True)
for i in range(3):
print(input_arr[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,922
|
s833190530
|
p00001
|
u733798831
|
1550488961
|
Python
|
Python3
|
py
|
Accepted
| 30
|
5592
| 87
|
h=[int(input()) for i in range(10)]
h.sort(reverse=True)
for i in h[:3]:
print(i)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,923
|
s155757657
|
p00001
|
u752764084
|
1547820711
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 93
|
H = sorted([int(input()) for i in range(10)], reverse=True)
for i in range(3):
print(H[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,924
|
s520941384
|
p00001
|
u788553535
|
1547306070
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 111
|
x = []
for i in range(10):
x.append(int(input()))
x.sort()
for i in reversed(range(7,10)):
print(x[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,925
|
s716635728
|
p00001
|
u412294315
|
1547046652
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 98
|
N=10
a=[]
for i in range(N):
a.append(int(input()))
a.sort()
for i in range(3):
print(a.pop())
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,926
|
s676487976
|
p00001
|
u689047545
|
1547010030
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 183
|
if __name__ == '__main__':
lst = []
for i in range(10):
n = int(input())
lst.append(n)
lst.sort(reverse=True)
for i in range(3):
print(lst[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,927
|
s725970033
|
p00001
|
u254455259
|
1546780328
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 124
|
list=[]
for i in range(10):
list.append(int(input()))
list.sort()
list.reverse()
for i in range(3):
print(list[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,928
|
s964844694
|
p00001
|
u000163577
|
1544796963
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 128
|
a = []
for i in range(10):
list = [int(input())]
a += list
srt = sorted(a)
x = srt[:6:-1]
for k in x:
print(k)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,929
|
s568222350
|
p00001
|
u600395583
|
1543129761
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 121
|
l = [input() for i in range(10)]
m = list(map(int,l))
lst = sorted(m,reverse=True)
for i in range(3):
print(lst[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,930
|
s388350072
|
p00001
|
u606639970
|
1542883514
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 337
|
a = int(input() )
b = int(input() )
c = int(input() )
if b > a:
tmp = a
a = b
b = tmp
if c > b:
tmp = c
c = b
b = tmp
if b > a:
tmp = b
b = a
a = tmp
for x in range(7):
d = int(input() )
if d > a:
c = b
b = a
a = d
elif d > b:
c = b
b = d
elif d > c:
c = d
print(a)
print(b)
print(c)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,931
|
s005002657
|
p00001
|
u149192190
|
1542619191
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 207
|
mountain_height = []
for i in range(10):
new_data = int(input())
mountain_height.append(new_data)
mountain_height.sort()
mountain_height.reverse()
for i in range(3):
print(mountain_height[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,932
|
s612969068
|
p00001
|
u573115711
|
1542539143
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 137
|
heights = []
for _ in range(10):
heights.append(int(input()))
heights.sort()
print(heights[-1])
print(heights[-2])
print(heights[-3])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,933
|
s108714411
|
p00001
|
u221424603
|
1542038658
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 133
|
hills=[]
for i in range(10):
hills.append(int(input()))
for i in range(3):
print(max(hills))
hills.remove(max(hills))
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,934
|
s625790695
|
p00001
|
u067299340
|
1542008508
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 87
|
for h in sorted([int(input()) for n in range(10)], reverse = True)[0:3]:
print(h)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,935
|
s387375702
|
p00001
|
u717526540
|
1541574738
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 110
|
l = []
for _ in range(10):
l.append(int(input()))
l.sort(reverse=True)
for ll in l[:3]:
print(ll)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,936
|
s642549550
|
p00001
|
u646013385
|
1539752422
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 102
|
m = []
for i in range(10):
m.append(int(input()))
m.sort()
print(m[-1])
print(m[-2])
print(m[-3])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,937
|
s252193366
|
p00001
|
u317583692
|
1539520080
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 104
|
High = [int(input()) for i in range(10)]
High.sort(reverse=True)
for i in range(3):
print(High[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,938
|
s835392775
|
p00001
|
u373127758
|
1539135166
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 104
|
import sys
l = [int(i) for i in sys.stdin]
l.sort(reverse=True)
for i in range(0, 3):
print(l[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,939
|
s740501364
|
p00001
|
u657361950
|
1539044553
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 199
|
a=[(1<<29)*-1]*3
for i in range(10):
h = int(input())
if h > a[0]:
a[2]=a[1]
a[1]=a[0]
a[0]=h
elif h > a[1]:
a[2]=a[1]
a[1]=h
elif h > a[2]:
a[2]=h
for i in range(3):
print(a[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,940
|
s485780092
|
p00001
|
u765217302
|
1537850560
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 146
|
mountains = [int(input())for i in range(10)]
mountains.sort(reverse=True)
print('{0}\n{1}\n{2}'.format(mountains[0], mountains[1], mountains[2]))
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,941
|
s745783880
|
p00001
|
u595086615
|
1537354716
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 126
|
hills = [int(input()) for _ in range(10)]
hills.sort(reverse=True)
top_3_hills = hills[:3]
for i in top_3_hills:
print(i)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,942
|
s496336131
|
p00001
|
u219940997
|
1537188842
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5608
| 118
|
mountain = sorted([int(input()) for _ in range(10)], reverse=True)
ans = mountain[:3]
print('\n'.join(map(str, ans)))
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,943
|
s847601902
|
p00001
|
u007749073
|
1537141100
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 101
|
height = [int(input()) for _ in range(10)]
for x in sorted(height, reverse = True)[:3]:
print(x)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,944
|
s449193857
|
p00001
|
u788547157
|
1536973098
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 106
|
a = list(map(int,[input() for i in range(10)]))
a.sort()
a.reverse()
for i in range(0,3):
print(a[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,945
|
s940779310
|
p00001
|
u186297440
|
1536160718
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 333
|
first = 0
second = 0
third = 0
for i in range(10):
height = int(input())
if first <= height:
third = second
second = first
first = height
elif second <= height:
third = second
second = height
elif third <= height:
third = height
print(first)
print(second)
print(third)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,946
|
s332666388
|
p00001
|
u080014366
|
1535179917
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 225
|
Mountains=[]
for x in range(10):
Mountains.append(int(input()))
for y in range(3):
Top_idx=0
for i in range (1,10-y):
if Mountains[Top_idx] < Mountains[i]:
Top_idx=i
print(Mountains[Top_idx])
Mountains.pop(Top_idx)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,947
|
s766937688
|
p00001
|
u634668646
|
1533979418
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 146
|
heights=[]
for i in range(10):
n = int(input())
heights.append(n)
heights.sort()
print(heights[-1])
print(heights[-2])
print(heights[-3])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,948
|
s206480845
|
p00001
|
u319725914
|
1533883524
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 90
|
a = [int(input()) for i in range(10)]
a.sort()
for i in range(1,4):
print("%d"%a[-i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,949
|
s439625289
|
p00001
|
u248155947
|
1533629030
|
Python
|
Python
|
py
|
Accepted
| 10
|
4628
| 143
|
list=[]
for i in range(0,10):
n = int(raw_input())
list.append(n)
list.sort(reverse=True)
for i in range(0,3):
print list[i]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,950
|
s459138091
|
p00001
|
u938878704
|
1533102969
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 113
|
h = [int(input()) for x in range(10)]
h_s = sorted(h, reverse = True)
print(h_s[0])
print(h_s[1])
print(h_s[2])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,951
|
s156658354
|
p00001
|
u252700163
|
1532608826
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5604
| 100
|
xs = [int(input()) for i in range(10)]
xs = list(reversed(sorted(xs)))[:3]
[print(x) for x in xs ]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,952
|
s379952475
|
p00001
|
u889593139
|
1532422195
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 80
|
print('\n'.join(sorted([input()for _ in range(10)],key=int,reverse=True)[:3]))
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,953
|
s661849251
|
p00001
|
u228004116
|
1530773743
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 136
|
a = []
for i in range(10):
a.append(int(input()))
#print(a)
ad = sorted(a, reverse=True)
for i in ad[:3]:
print("{}".format(i))
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,954
|
s916094638
|
p00001
|
u454636644
|
1524737345
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5600
| 153
|
h_list = []
for i in range(10):
h = int(input())
h_list.append(h)
h_list = sorted(h_list, reverse=True)
for i in range(3):
print(h_list[i])
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,955
|
s650257367
|
p00001
|
u853158149
|
1521903460
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 90
|
s = [int(input()) for i in range(10)]
s.sort(reverse = True)
for i in s[:3]:
print(i)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,956
|
s103201498
|
p00001
|
u214781794
|
1478011814
|
Python
|
Python3
|
py
|
Accepted
| 50
|
7644
| 169
|
height_list = []
for i in range(0, 10):
height_list.append(int(input()))
height_list.sort()
height_list.reverse()
for height in height_list[:3]:
print(height)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,957
|
s232952095
|
p00001
|
u079141094
|
1467208401
|
Python
|
Python3
|
py
|
Accepted
| 50
|
7660
| 205
|
n = 10
f,s,t = -1,-2,-3
for _ in range(n):
inp = int(input())
if inp > f:
f,s,t = inp,f,s
elif inp > s:
s,t = inp,s
elif inp > t:
t = inp
print(f)
print(s)
print(t)
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,958
|
s192972032
|
p00001
|
u288689445
|
1429156042
|
Python
|
Python
|
py
|
Accepted
| 20
|
4336
| 148
|
# -*- coding: utf-8 -*-
import sys
import math
n=[]
for i in range(0,10):
n.append(input())
n.sort()
n=n[::-1]
for i in range(0,3):
print n[i]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,959
|
s810813252
|
p00001
|
u717727327
|
1419095667
|
Python
|
Python
|
py
|
Accepted
| 20
|
4192
| 103
|
dat = [int(raw_input()) for _ in range(10)]
dat.sort(reverse=True)
for i in range(3):
print dat[i]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,960
|
s453955933
|
p00001
|
u197615660
|
1369984769
|
Python
|
Python
|
py
|
Accepted
| 10
|
4216
| 168
|
height = []
for apple in range(10):
mountain = input()
height.insert(-1, mountain)
height.sort()
height.reverse()
print height[0]
print height[1]
print height[2]
|
p00001
|
<H1>List of Top 3 Hills</H1>
<p>
There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.
</p>
<p>
Write a program which prints heights of the top three mountains in descending order.
</p>
<H2>Input</H2>
<pre>
Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10
</pre>
<h2>Constraints</h2>
<p>
0 ≤ height of mountain (integer) ≤ 10,000
</p>
<H2>Output</H2>
<pre>
Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain
</pre>
<H2>Sample Input 1</H2>
<pre>
1819
2003
876
2840
1723
1673
3776
2848
1592
922
</pre>
<H2>Output for the Sample Input 1</H2>
<pre>
3776
2848
2840
</pre>
<H2>Sample Input 2</H2>
<pre>
100
200
300
400
500
600
700
800
900
900
</pre>
<H2>Output for the Sample Input 2</H2>
<pre>
900
900
800
</pre>
|
1819
2003
876
2840
1723
1673
3776
2848
1592
922
|
3776
2848
2840
| 1,961
|
s003454110
|
p00002
|
u539753516
|
1531568237
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 84
|
while True:
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
| 1,962
|
s611080249
|
p00002
|
u525366883
|
1535371608
|
Python
|
Python
|
py
|
Accepted
| 10
|
4620
| 97
|
try:
while True:
print len(str(sum(map(int, raw_input().split()))))
except:
pass
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,963
|
s296313644
|
p00002
|
u923573620
|
1535529850
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 93
|
while True:
try:
a,b = map(int,input().split(" "))
print(len(str(a+b)))
except: break
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,964
|
s038607024
|
p00002
|
u923573620
|
1535530093
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 108
|
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
| 1,965
|
s807722522
|
p00002
|
u923573620
|
1535597225
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 107
|
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
| 1,966
|
s391618214
|
p00002
|
u179046735
|
1555656960
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 122
|
while True:
try:
a,b=[int(i) for i in input().split()]
print(len(str(a+b)))
except:
break
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,967
|
s811134390
|
p00002
|
u831725332
|
1555764341
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 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
| 1,968
|
s051608418
|
p00002
|
u563307622
|
1556438215
|
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
| 1,969
|
s927357381
|
p00002
|
u936370024
|
1556805931
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 115
|
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
| 1,970
|
s716305968
|
p00002
|
u990459103
|
1558936229
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5596
| 166
|
while 1:
try:
a,b = input().split()
a = int(a)
b = int(b)
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
| 1,971
|
s700614061
|
p00002
|
u477023447
|
1558936872
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 172
|
while 1:
try:
sum = input()
sum_list = sum.split()
print(len(str(int(sum_list[0]) + int(sum_list[1]))))
except EOFError:
break
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,972
|
s451115619
|
p00002
|
u051394180
|
1558955632
|
Python
|
Python
|
py
|
Accepted
| 10
|
4632
| 292
|
def calculate_digit_num(num):
z = num / 10
if z == 0:
return 1
else:
return 1 + calculate_digit_num(z)
while True:
try:
num_list = [int(num) for num in raw_input().split(' ')]
print calculate_digit_num(sum(num_list))
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
| 1,973
|
s146804308
|
p00002
|
u850181309
|
1559009783
|
Python
|
Python
|
py
|
Accepted
| 10
|
4632
| 126
|
# -*- coding: utf-8 -*-
import sys
for s in sys.stdin:
print len(str(int(s.rstrip().split()[0])+int(s.rstrip().split()[1])))
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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
| 1,974
|
s553598962
|
p00002
|
u814278309
|
1559141595
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5588
| 97
|
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
| 1,975
|
s395955333
|
p00002
|
u889593139
|
1559190130
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5584
| 109
|
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
| 1,976
|
s810966501
|
p00002
|
u247705495
|
1559443403
|
Python
|
Python3
|
py
|
Accepted
| 20
|
5592
| 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
| 1,977
|
s537331495
|
p00002
|
u063179562
|
1406637342
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 93
|
try:
while True:
print(len(str(sum(map(int, input().split())))))
except:
pass
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,978
|
s374124427
|
p00002
|
u450407555
|
1409272410
|
Python
|
Python
|
py
|
Accepted
| 10
|
4180
| 82
|
import sys
for i in sys.stdin:
a, b = map(int, i.split())
print len(str(a+b))
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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
| 1,979
|
s361032758
|
p00002
|
u696166817
|
1409300383
|
Python
|
Python
|
py
|
Accepted
| 10
|
4196
| 166
|
import sys
#list = sys.stdin.readlines()
#i=0
list = []
for line in sys.stdin.readlines():
list = line.split(" ")
print str(len(str(int(list[0]) + int(list[1]))))
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,980
|
s823447365
|
p00002
|
u579833671
|
1410763700
|
Python
|
Python
|
py
|
Accepted
| 20
|
4184
| 150
|
while(True):
try:
a = map(int, raw_input().split())
b = str(a[0] + a[1])
print(len(b))
except Exception:
break
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,981
|
s172779060
|
p00002
|
u703446356
|
1410891234
|
Python
|
Python
|
py
|
Accepted
| 10
|
4196
| 167
|
while True:
try:
[a, b] = map(int, raw_input().split())
sum = a + b
count = 0
while sum:
count += 1
sum /= 10
print count
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
| 1,982
|
s615612002
|
p00002
|
u615353970
|
1411272265
|
Python
|
Python
|
py
|
Accepted
| 20
|
4180
| 69
|
import sys
for s in sys.stdin:print len(str(sum(map(int,s.split()))))
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,983
|
s207857033
|
p00002
|
u855866586
|
1411306490
|
Python
|
Python
|
py
|
Accepted
| 10
|
4204
| 235
|
def digits(x):
i=0
while (x>0):
x/=10
i+=1
return i
while True:
try:
line=raw_input()
(a,b)=line.split()
(a,b)=map(int,(a,b))
print digits(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
| 1,984
|
s830063558
|
p00002
|
u558004042
|
1411839760
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 288
|
#!/usr/bin/env python3
#coding: utf-8
# Volume0 - 0002 (http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0002)
while 1:
try:
i = input()
l = i.split(" ")
s = int(l[0]) + int(l[1])
ans = len(str(s))
print(ans)
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
| 1,985
|
s441612707
|
p00002
|
u907094926
|
1413638658
|
Python
|
Python
|
py
|
Accepted
| 10
|
4204
| 300
|
while True:
try:
a = map(int,raw_input().split(' '))
s = a[0] + a[1]
c = 0
while s > 0:
s = s / 10
c = c + 1
if s <= 0:
print c
break
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
| 1,986
|
s340147293
|
p00002
|
u607831289
|
1416019257
|
Python
|
Python
|
py
|
Accepted
| 20
|
4376
| 99
|
import sys, math
for line in sys.stdin:
print int(math.log10(sum(map(int, line.split())))) + 1
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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
| 1,987
|
s156021286
|
p00002
|
u506132575
|
1416065885
|
Python
|
Python
|
py
|
Accepted
| 10
|
4204
| 127
|
#!/usr/bin/python
#-coding:utf8-
import sys
for s in sys.stdin:
data = map(int,s.split())
print len(str(data[0]+data[1]))
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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
| 1,988
|
s935762711
|
p00002
|
u310737167
|
1416676346
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6812
| 120
|
import math
while 1:
try:
print(int(math.log10(sum(map(int, input().split())))+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
| 1,989
|
s556890082
|
p00002
|
u379499530
|
1418051253
|
Python
|
Python
|
py
|
Accepted
| 10
|
4180
| 88
|
import sys
for i in sys.stdin:
a, b = map(int, i.split())
print len(str(a + b))
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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
| 1,990
|
s814320336
|
p00002
|
u578674365
|
1418620774
|
Python
|
Python
|
py
|
Accepted
| 20
|
4380
| 125
|
import sys
import math
for x in sys.stdin.readlines():
a, b = map(int, x.strip().split())
print int(math.log10(a + b)) + 1
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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
| 1,991
|
s932598627
|
p00002
|
u672822075
|
1418961828
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 122
|
while 1:
try:
i = list(map(int, input().split()))
print(len(str(i[0]+i[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
| 1,992
|
s321942248
|
p00002
|
u631118941
|
1419332476
|
Python
|
Python
|
py
|
Accepted
| 20
|
4200
| 205
|
def counts(num):
countlist.append(len(str(num[0] + num[1])))
countlist = []
flag = True
while flag :
try:
counts(map(int, raw_input().split()))
except:
flag = False
for x in countlist:
print x
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,993
|
s985758471
|
p00002
|
u422939201
|
1419340697
|
Python
|
Python
|
py
|
Accepted
| 10
|
4404
| 132
|
# -*- coding:utf8 -*-
import sys
import math
for s in sys.stdin:
a,b = map(int, s.split(' '))
print int(math.log10(a+b)) + 1
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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
| 1,994
|
s688791641
|
p00002
|
u422939201
|
1419343489
|
Python
|
Python
|
py
|
Accepted
| 10
|
4184
| 134
|
#condig: UTF-8
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
| 1,995
|
s338904429
|
p00002
|
u846356981
|
1419470104
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 141
|
import sys
for line in sys.stdin:
l = line.replace('\n', '')
a, b = l.split()
a = int(a)
b = int(b)
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
| 1,996
|
s436348535
|
p00002
|
u342537066
|
1420699593
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 112
|
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
| 1,997
|
s102221185
|
p00002
|
u989992553
|
1420877578
|
Python
|
Python
|
py
|
Accepted
| 10
|
4188
| 126
|
while True:
try:
a,b = map(int,raw_input().split())
print len(str(a+b))
except EOFError:
break
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input 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
| 1,998
|
s312226647
|
p00002
|
u316268279
|
1421114319
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6720
| 138
|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
for line in sys.stdin:
a,b = map(int,line.split())
print(len(str(a+b)))
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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
| 1,999
|
s891969437
|
p00002
|
u336443042
|
1421680419
|
Python
|
Python
|
py
|
Accepted
| 20
|
4180
| 110
|
import sys
for line in sys.stdin.readlines():
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,000
|
s470703899
|
p00002
|
u567380442
|
1422529952
|
Python
|
Python3
|
py
|
Accepted
| 30
|
6724
| 207
|
import sys
def log10(num):
log = 0
while num > 0:
log += 1
num //= 10
return log
for line in sys.stdin:
a, b = map(int, line.split())
print(log10(a + b) if a + b else 1)
|
p00002
|
<H1>Digit Number</H1>
<p>
Write a program which computes the digit number of sum of two integers <var>a</var> and <var>b</var>.
</p>
<H2>Input</H2>
<p>
There are several test cases. Each test case consists of two non-negative integers <var>a</var> and <i>b</i> which are separeted by a space in a line. The input terminates with EOF.
</p>
<h2>Constraints</h2>
<ul>
<li>0 ≤ <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,001
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.