fork download
  1. from random import*
  2. q,r,o=map,raw_input,int
  3. a=q(randrange,q(o,r().split(' ')))
  4. m=q(o,r().split(' '))
  5. t=1
  6. while m!=a:print sum([(c-d)**2for c,d in zip(m,a)])**.5;m=q(o,r().split(' '));t+=1
  7. print'You won in %d'%t
Success #stdin #stdout 0.01s 11456KB
stdin
2 2
0 0
0 1
1 0
1 1
stdout
1.41421356237
1.0
1.0
You won in 4