kingdraco

OneClick-POT

Dec 20th, 2019
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. *Draco*
  2. API found: https://id-api.spooncast.net/lives/ - ID
  3. *Secret Note: JDK - Firebase - PyRun
  4. -----------------------------------------------------
  5. handle = open("spooncast-run.sh", "r")
  6. n = int(handle.readline())
  7. a = list(map(int, handle.readline().split()))
  8. handle.close()
  9. r = 0.0
  10. z = 1
  11. s = 0
  12. for i in range(n):
  13.     r = r + a[i]
  14.     z = z * a[i]
  15.  
  16. for i in range(n):
  17.     s = s + z / a[i]
  18.  
  19. r = r + s / z
  20.  
  21. f = open('Get-Done-Draco.txt', 'w')
  22. f.write("{:.9f}".format(r))
  23. f.close()
Advertisement
Add Comment
Please, Sign In to add comment