Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Weak Point by TovarischZhukov
def weak_point(matrix):
gor_min = (101,0)
ver_min = (101,0)
for i, elem in enumerate(matrix):
gor = sum(elem)
ver = 0
for j, _ in enumerate(elem):
ver+= matrix[j][i]
if gor < gor_min[0]:
gor_min = (gor,i)
if ver < ver_min[0]:
ver_min = (ver,i)
return [gor_min[1], ver_min[1]]
Dec. 6, 2015