Help me in solving COPS problem

My issue

why 3rd case is getting 8 as answer

My code

# cook your dish here
t=int(input())
for i in range(t):
    M,x,y=map(int,input().split())
    A=list(map(int,input().split()))
    speed=x*y
    
    safe=[]
    for p in range(1,101):
        safe.append(0)
    for j in range(M):
        for k in range(max(0,(A[j]-speed)),min(100,(A[j]+speed)+1)):
            safe[k]=1
    
    print(safe.count(0))
    
        
            
    
        
        
        

Learning course: Arrays using Python
Problem Link: Cops and the Thief Devu Practice Problem in - CodeChef