Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for t in range(int(input())):
- n, m = map(int,input().split())
- above_average_dictionary = {}
- for i in range(m):
- marks = list(map(int,input().split()))
- average = sum(marks)//n
- for i in range(n):
- if marks[i] > average:
- above_average_dictionary[i] = 1
- print(len(above_average_dictionary))
Add Comment
Please, Sign In to add comment