Guest User

Untitled

a guest
Feb 18th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. from math import sqrt;first=[]
  2. for z, x in enumerate(map(lambda x: x/1000.000,range(-1000,1000))):
  3.     i=(int(round(z/100.0)),int(round((sqrt(abs(x))-sqrt(1-x**2))*10)))
  4.     # i=map(lambda i: i/2,i)
  5.     if i not in first:first.append(i)
  6. for z, x in enumerate(map(lambda x: x/1000.000,range(-1000,1000))):
  7.     i=(int(round(z/100.0)),int(round((sqrt(abs(x))+sqrt(1-x**2))*10)))
  8.     # i=map(lambda i: i/2,i)
  9.     if i not in first:first.append(i)
  10. array=[["-" for item in xrange(101)]for item in xrange(401)]
  11. for item in first:array[item[1]][item[0]]="#"
  12. array=array[200:]+array[:200]
  13. for item in array[::-1]:
  14.     if "#" in item:
  15.         print ''.join(item[:23])
Add Comment
Please, Sign In to add comment