Created
December 3, 2016 11:04
-
-
Save Ffisegydd/d80fa726a05bdfbe1f61f51314a2e998 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from itertools import combinations | |
with open('data/3.txt') as f: | |
print(sum(all(sum(com)/sum(d) > 0.5 for com in combinations(d, 2)) for d in np.array([tuple(int(n) for n in l.strip().split()) for l in f]).T.reshape((1734, -1)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment