HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > Lab6 - CEN/ECE/SWE > problem:


14-Fall1-20. 50480 - What quadrant is it?

Lab6 - CEN/ECE/SWE

Start: Nov.07.2023 at 12:20:01 AM
Finish: Nov.14.2023 at 11:20:01 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (5)

Contest problems

• 50879 - Passed or Failed
• 50341 - Separate Into Digits
• 50798 - Passing the course
• 50797 - Nr of Missing Guests
• 50355 - Bills of City Water Company
• 50478 - Letter Grades
• 14-Fall1-20. 50480 - What quad...
• 14-Fall1-60. 50482 - Bank Charges
• 2012-11-10. 50568 - Body Mass In...
• 3. 50391 - Cinema Tickets

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Meral Ari.

What quadrant is it?

Question:
You will be given the coordinate of a point. Find and show what quadrant the given point is in?

Input specification
Two integers: x and y where -10000 ≤ x ≤ 10000 and -10000 ≤ y ≤ 10000

Output specification
Show proper message:

  • If the point is in center (0,0), then show the message "Center"
  • If the point is over x axis, then show the message "Over X axis"
  • If the point is over y axis, then show the message "Over Y axis"
  • Otherwise, show the quadrant name.
 Sample Input I     Sample Input II   
 5 -3
 0 0
 Sample Output I     Sample Output II   
 Quadrant 4
 Center

Для отправки решений необходимо выполнить вход.

www.contester.ru