<garvit244>454_1.py
def fourSumCount( A, B, C, D):
    hashTable ={}
    
    for a in A:
        for b in B:
            if a+b in hashTable:
                hashTable[a+b] += 1
            else:
                hashTable[a+b] = 1
                
    result = 0
    for c in C:
        for d in D:
            if -(c+d) in hashTable:
                result += hashTable[-(c+d)]
    return result
def sample_funcname ( var_0 , var_1 , var_2 , var_3 ) :
    var_4 = { }
    for var_5 in var_0 :
        for var_6 in var_1 :
            if var_5 + var_6 in var_4 :
                var_4 [ var_5 + var_6 ] += 1
            else :
                var_4 [ var_5 + var_6 ] = 1
    var_9 = 0
    for var_10 in var_2 :
        for var_11 in var_3 :
            if - ( var_10 + var_11 ) in var_4 :
                var_9 += var_4 [ - ( var_10 + var_11 ) ]
    return var_9
