Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- x = float(input())
- y = float(input())
- r = math.sqrt(math.pow(x, 2) + math.pow(y, 2))
- theta = math.atan2(y, x)
- beta = (math.pi / 2) + (math.pi / 20) - theta
- while beta < 0:
- beta += 2 * math.pi
- for i in range(0, 21):
- if beta <= ((i * math.pi) / 10):
- section = i
- break
- points = 0
- if r <= 6.35:
- points = 50
- elif r <= 15.9:
- points = 25
- elif r <= 97.4:
- points = section
- elif r <= 107:
- points = section * 3
- elif r <= 160.4:
- points = section
- elif r <= 170:
- points = section * 2
- print(points)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement