Advertisement
Bualrond

Untitled

Oct 29th, 2018
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import math
  2.  
  3. d, r = map(int, input().split())
  4. if(d > 2 * r):
  5.     print(-1)
  6. elif(d == r):
  7.     print(6)
  8. else:
  9.     print(int(3.14159265358 / math.asin(d/2/r) + 0.0000000001))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement