Skip to content

Commit

Permalink
Solve Fire Flowers in python
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Nov 11, 2024
1 parent 71a7e82 commit d46b96f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions solutions/beecrowd/1039/1039.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import math
import sys

for line in sys.stdin:
r1, x1, y1, r2, x2, y2 = map(float, line.split())
distance = math.sqrt((x1 - x2) ** 2 + (y1 - y2) ** 2)

if r1 >= distance + r2:
print('RICO')
else:
print('MORTO')

0 comments on commit d46b96f

Please sign in to comment.