Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3-liner: 177 chars solution in Creative category for Similar Triangles by Phil15
i=__import__
s=lambda T:sorted((z-x)**2+(t-y)**2for(x,y),(z,t)in i('itertools').combinations(T,2))
similar_triangles=lambda*T:len(set(map(i('fractions').Fraction,*map(s,T))))==1
Jan. 26, 2020
Comments: