Help me in solving SAD problem

My issue

why numpy not working it is throwing a module not found error

My code

import numpy as np
r,c = map(int,input().split())
a = []
for i in range(r):
    a.append(list(map(int,input().split())))
for i in range(r):
    for j in range(c):
        if a[i][j] == np.min(a[i,0:c]) == np.max(a[0:r,j]):
            print(a[i][j])
            break;

Problem Link: SAD Problem - CodeChef

@yash559
Plzz refer this solution for better understanding for the logic and implementation.

# cook your dish here

row, col = map(int, input().split())
ar_row, ar_col = [], [] 
for i in range(row):
    arr = list(map(int, input().split()))
    ar_row.append(arr)
for i in range(col):
    temp = []
    for j in range(row):
        temp.append(ar_row[j][i])
    ar_col.append(temp)
a, b = [], []
ans = 0
flag= False
for i in range(row):
    row_min = min(ar_row[i])
    a.append(row_min)
for i in range(col):
    col_max = max(ar_col[i])
    b.append(col_max)
for i in a:
    if i in b:
        flag = True
        ans = i
        break
print(ans if(flag) else "GUESS")