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

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


50581 - Rrenjet e Ekuacionit Kuadratik

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

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

• 50559 - Faktoret e thjeshte te numrit
• 50565 - Numra binare
• 50568 - Llogaritesi i indeksit te mas...
• 50571 - Numrat Armstrong
• 50572 - Numrat Palindrome
• 50574 - Numrat Trekendesh
• 50578 - Numrat Prim Mersenne
• 50579 - Numrat pentagonal
• 50581 - Rrenjet e Ekuacionit Ku...
• 50582 - Numri i shifrave
• 50583 - Numri ma te madhe nga 3 ...
• 50584 - Pagesa totale
• 50585 - Prodhimi i brendshem
• 50587 - Shnderrimi i numrit ne nje s...
• 50595 - Shuma e numrave
• 50599 - Shuma e katroreve te difer...
• 50609 - Деление длинного числа н...

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

Если у вас есть предложения или пожелания по работе 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