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

Разделы > Арифметика > задача:


50581 - Rrenjet e Ekuacionit Kuadratik

Гость
• Обсуждение задачи (1)

Задачи раздела

• 51028 - Isosceles Triangles
• 51031 - Convert from Hex to Dec
• 51030 - Number of Right Triangles
• 50553 - I pjestueshem me 2013
• 50554 - Fuqia e n-t e m (2)
• 50565 - Numra binare
• 50574 - Numrat Trekendesh
• 50578 - Numrat Prim Mersenne
• 50581 - Rrenjet e Ekuacionit Ku...
• 50595 - Shuma e numrave
• 50599 - Shuma e katroreve te difer...
• 50609 - Деление длинного числа н...
• Albanian Airlines
• 50243 - Sum of digits
• 50241 - Greatest common divisor
• 50240 - The numbers that are divisi...
• 50242 - Numbers whose sum of the...

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

The roots of a quadratic equation

Shqip

Question: In elementary algebra, quadratic expressions are represented in the form


Then, its discriminant is calculated using the following formula

According to the value of discriminant, there are three cases:

  1. If the discriminant is zero, then, there is one real root.
  2. If the discriminant is positive, then, there are two distinct real roots.
  3. If the discriminant is negative, then, there are no real roots.
Write a program that gets three integers and then, calculates and shows the roots.

Input specification
You will be given three integers which are between -1000 and 1000.

Output specification

  • If there is no real root show the message "No real root".
  • If there is one real root, show it with two digits precision.
  • If there are two roots, show them with 2 digits precision in the order given above.

 Sample Input I     Sample Input II   
 1 2 1
 2 3 4
 Sample Output I     Sample Output II   
 -1
 No real root


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

www.contester.ru