def exact_match(p,l):
    """
    Computes per-response accuracy between predictions (p) and ground-truth responses (l)
    """
    c=0
    for i1,i in enumerate(l):
        if p[i1]==l[i1]:
            c+=1
    
    return c/len(l)