This commit is contained in:
		@@ -1,17 +1,10 @@
 | 
			
		||||
# Y8O353, E0HJQL
 | 
			
		||||
 | 
			
		||||
import numpy as np
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def avg(ls: list) -> int:
 | 
			
		||||
    if len(ls) != 0:
 | 
			
		||||
        return sum(ls) / len(ls)
 | 
			
		||||
    else:
 | 
			
		||||
        return 0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
def decision(h1, h2):
 | 
			
		||||
    if 1 not in h2:
 | 
			
		||||
        return 0
 | 
			
		||||
    if avg(h2) > 0.51:
 | 
			
		||||
        return 1
 | 
			
		||||
    if 1 in h2[:4]:
 | 
			
		||||
        return np.random.randint(2)
 | 
			
		||||
    else:
 | 
			
		||||
        return 0
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user