Все задачи на 5.10.17 13:00
This commit is contained in:
14
uts/uts_2017_sum_py/2/ads.py
Normal file
14
uts/uts_2017_sum_py/2/ads.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import sys
|
||||
|
||||
sys.stdin = open('input.txt', 'r')
|
||||
#sys.stdout = open('output.txt', 'w')
|
||||
a = []
|
||||
try:
|
||||
while True:
|
||||
a.append(int(input()))
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
a.sort()
|
||||
print(a[0])
|
||||
print(a[len(a)-1])
|
||||
Reference in New Issue
Block a user