Four Players Score Combination: The program must accept the score of N players in a cricket match. The program must print the number of combinations with exactly 4 players and total runs scored by the 4 players is greater than or equal to 100 as the output.
4 <= N <= 250
The first line contains N.
The second line contains N integers separated by space.
The first line contains the number of combinations as mentioned above.
Example Input/Output 1:
20 50 20 10 30 25
Example input/output 2:
32 11 40 60 26 23 66 43
from itertools import combinations as c n=int(input()) l=list(map(int,input().split()));k=0 for i in list(c(l,4)): if sum(i)>=100:k+=1 print(k)