Skip to content

Commit 8912934

Browse files
authored
Difficulty: Easy
1 parent b97dd35 commit 8912934

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Statistics/statistics.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
'''
2+
https://open.kattis.com/problems/statistics
3+
'''
4+
5+
import sys
6+
7+
case = 1
8+
9+
for line in sys.stdin.readlines():
10+
a = list(map(int,line.split()[1:]))
11+
minimum = min(a)
12+
maximum = max(a)
13+
diff = maximum - minimum
14+
print("Case {}: {} {} {}".format(case,minimum,maximum,diff))
15+
case+=1

0 commit comments

Comments
 (0)