Skip to content

Commit

Permalink
Numpy!
Browse files Browse the repository at this point in the history
  • Loading branch information
snehalmastud authored Feb 23, 2020
1 parent 8aced0a commit 0ce5949
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Numpy/Min and Max/Solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import numpy

N, M = map(int, input().split())
A = numpy.array([input().split() for _ in range(N)], int)
print(numpy.max(numpy.min(A, axis=1), axis=0))

0 comments on commit 0ce5949

Please sign in to comment.