Skip to content

Instantly share code, notes, and snippets.

/dec.py Secret

Created January 1, 2018 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/b9672c4d91614501b9cd8fb44164afd7 to your computer and use it in GitHub Desktop.
Save anonymous/b9672c4d91614501b9cd8fb44164afd7 to your computer and use it in GitHub Desktop.
from decimal import*;exec"N,k,T=input(),[0]*3,0;exec'L=map(int,raw_input().split());T+=Decimal(sum(map(lambda(a,b):(a-b)**2,zip(k,L)))).sqrt();k=L;'*4;print'YNEOS'[T>N::2];"*input()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment