You are viewing a single comment's thread. Return to all comments →
def divisibleSumPairs(n, k, ar): return sum(((ar[i]+ar[j])%k==0 for j in range(n) for i in range(j)))
Seems like cookies are disabled on this browser, please enable them to open this website
Divisible Sum Pairs
You are viewing a single comment's thread. Return to all comments →