Skip to content

Commit

Permalink
Solve Coordinates of a Point in python
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Jul 29, 2024
1 parent 9836003 commit 8b57ac3
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions solutions/beecrowd/1041/1041.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import sys

for line in sys.stdin:
x, y = map(float, line.split())
if not x and not y:
print("Origem")
elif not x and y:
print("Eixo Y")
elif x and not y:
print("Eixo X")
elif x > 0.0:
if y > 0.0:
print("Q1")
else:
print("Q4")
else:
if y > 0.0:
print("Q2")
else:
print("Q3")

0 comments on commit 8b57ac3

Please sign in to comment.