You are viewing a single comment's thread. Return to all comments →
this work so good and fast!!!
import itertools N =int(input()) cadena =input().split() k=int(input()) print(len(list(itertools.filterfalse(lambda a: 'a' not in a,itertools.combinations(cadena, k))))/(len (list(itertools.combinations(cadena, k)))))
Seems like cookies are disabled on this browser, please enable them to open this website
Iterables and Iterators
You are viewing a single comment's thread. Return to all comments →
this work so good and fast!!!