AtCoder Beginner Contest 198 C - Compass Walking【Python】

https://atcoder.jp/contests/abc198/tasks/abc198_c

AtCoder ProblemsのRecommendationで Difficulty: 413、Solve Probability: 46%でした。

深く考えずに解いたのが良かったのか、あまり苦労せず通りました。
といっても原点と(X, Y)の距離がRより小さい場合について考えておらず1度WAとなりました。

import math
R, X, Y = map(int, input().split())
d = (X**2 + Y**2) ** 0.5
if d < R:
    ans = 2
else:
    ans = math.ceil(d / R)
print(ans)