Advertisement
Uwwan

#21481

Mar 20th, 2022
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. #21481
  2.  
  3. f = open('file1.txt')
  4. n = int(f.readline())
  5. minimal = float('inf')
  6. for i in range(n):
  7.     x = int(f.readline())
  8.     if x < minimal:
  9.         minimal = x
  10. print(minimal)
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement