Skip to content

Instantly share code, notes, and snippets.

@williame williame/gist:f8ae068ff7e658cde28f Secret
Last active Aug 29, 2015

Embed
What would you like to do?
m=0
for i in open('s.txt'):
i,j,k=map(int,i.split(',')[:3])
if j-i==k-j or j/i==k/j or i**2==j:m+=1
print(m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.