ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > CEN111 Homeworks 2013-2015 > задача:


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

CEN111 Homeworks 2013-2015

Старт: 10.янв.2015 в 10:00:00
Финиш: 10.янв.2015 в 15:00:00
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (5)

Задачи турнира

• 50389 - Reverse an Array
• 50392 - How much space
• 50378 - Sum of the given digits
• 13-Fall2-10. 50379 - a^b modulus k
• 13-Fall2-20. 50399 - Mobile Base Sta...
• 13-Fall2-40. 50401 - Sum of Odd N...
• 13-Fall2-50. 50400 - nth Row rth El...
• 14-Fall1-10. 50532 - Close City
• 14-Fall1-20. 50480 - What quad...
• 14-Fall1-30. 50500 - Find Student
• 14-Fall1-40. 50511 - Class Average
• 14-Fall1-50. 50481 - Car Parking
• 14-Fall1-60. 50482 - Bank Charges
• 14-Fall2-10. 50510 - What floor are ...
• 14-Fall2-20. 50504 - School contest
• 14-Fall2-30. 50523 - Total Tax to Pay
• 14-Fall2-40. 50514 - Bookkeeping

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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