Help me in solving BSCOST problem

My issue

why is my code wrong can anyone explain?

My code

# cook your dish here
for _ in range(int(input())):
    n,x,y=map(int,input().split())
    l1=list(map(int,input()))
    if all(t==0 for t in l1):
        print(0)
    elif all(p==0 for p in l1):
        print(0)
    else:
        if x>y:
            print(y)
        else:
            print(x)
            

Problem Link: Binary String Cost Practice Coding Problem