Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [-3,-2,1,0,8,7,1]
- M = 3
- a =[7,1,11,8,4,10]
- M=8
- arr= []
- for ele in a:
- arr.append((ele)%M)
- from collections import Counter
- dic = Counter(arr)
- print(max(dic.values()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement