16 lines
215 B
Python
16 lines
215 B
Python
import numpy as np
|
|
|
|
|
|
def avg(ls: list) -> int:
|
|
if len != 0:
|
|
return sum(ls) / len(ls)
|
|
else:
|
|
return 0
|
|
|
|
|
|
def decision(h1, h2):
|
|
if avg(h2) > 0.51:
|
|
return 1
|
|
else:
|
|
return 0
|