summaryrefslogtreecommitdiff
path: root/progs/a834.py
blob: 3948f46fa464946ca5b506c1471e6810146fa154 (plain)
1
2
3
4
5
def find_remainder(arr, lens, n): 
    mul = 1
    for i in range(lens):  
        mul = (mul * (arr[i] % n)) % n 
    return mul % n