You are viewing a single comment's thread. Return to all comments →
the same:
return list((ar[i]+ar[j])%k for i in range(n) for j in range(n) if i < j).count(0)
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 →
the same: