HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Geometry > problem:


50480 - What quadrant is it?

Guest
• Review clarifications (5)

Section problems

• 50422 - Area and Perimeter of diffe...
• 50473 - Counting Circles Positions
• 50327 - Parallel Lines
• 50362 - Pythagorean Numbers
• 50328 - How far away
• 50397 - The Number of Points in a ...
• 50399 - Mobile Base Station
• 50487 - Radius of Inscribed Circle
• 50480 - What quadrant is it?
• 50825 - Drawing Polygon
• 50508 - The Biggest Area
• 50854 - Area of Triangle Revised
• 50669 - Area of an Irregular Polygon
• 51034 - Area of 3 Shapes
• 50349 - Area of a Triangle
• 50348 - Area and Perimeter of a Rec...
• 50354 - Intersecting Rectangles

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