Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2.  
  3. '''
  4. Escreva a sua solução aqui
  5. Code your solution here
  6. Escriba su solución aquí
  7. '''
  8.  
  9. A , B = input().split()
  10. X = float(A)
  11. Y = float(B)
  12. if X == 0.0 and Y == 0.0 :
  13. print("Origem")
  14. elif X == 0.0 :
  15. print("Eixo Y")
  16. elif Y == 0.0 :
  17. print("Eixo X")
  18. elif X < 0.0 and Y < 0.0 :
  19. print("Q3")
  20. elif X > 0.0 and Y < 0.0 :
  21. print("Q4")
  22. elif X > 0.0 and Y > 0.0 :
  23. print("Q1")
  24. elif X < 0.0 and Y > 0.0 :
  25. print("Q2")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement