This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
DSA/min.py

25 lines
313 B
Python
Raw Normal View History

2019-02-26 11:25:18 +00:00
#!/usr/bin/env python3
import sys
def minimum(a):
l = len(a)
if l == 0:
return None
m = a[0]
for i in range(1, l):
if a[i] < m:
m = a[i]
return m
if __name__ == "__main__":
A = []
for line in sys.stdin:
A.append(int(line))
print(minimum(A))