Skip to content

Instantly share code, notes, and snippets.

@markokoleznik
Created December 3, 2016 21:58
Show Gist options
  • Save markokoleznik/5893e79176a484e202aa5cd15a2b3edd to your computer and use it in GitHub Desktop.
Save markokoleznik/5893e79176a484e202aa5cd15a2b3edd to your computer and use it in GitHub Desktop.
Day 3, Part 1 (Python 3)
print(len(list(filter(lambda y: y[0] + y[1] > y[2], [sorted(list(map(int, x.split()))) for x in open('problem03/input.txt', 'r').read().split('\n')]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment