HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50581 - The roots of a quadratic equation

Guest
• Discussion of problem (1)

Section problems

• 50559 - Prime Factors of a Number
• 50565 - Binary numbers
• 50568 - Body Mass Index Calculator
• 50571 - Armstrong Numbers - 2
• 50572 - Palindromic Numbers
• 50574 - Triangular Numbers
• 50578 - Mersenne prime
• 50579 - Pentagonal Numbers
• 50581 - The roots of a quadratic...
• 50582 - Number of digits
• 50583 - Max of 3 numbers
• 50584 - Total invoice amount
• 50585 - Inner Product
• 50587 - Modular Conversion
• 50595 - Sum of the numbers
• 50599 - Sum of Squared Error (SSE...
• 50609 - Long division

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 Ibrahim Mesecan.

Rrenjet e Ekuacionit Kuadratik

English

Pyetja: Ne algjeber, ekuacioni kuadratik ose barazimi i shkalles se dyte mund te shprehet ne formen


Me pas, dallori (ose diskriminanti) mund te gjendet me formulen

Ne baze te vleres se dallorit kemi 3 raste te ndryshme:

  1. Nese dallori eshte zero, atehere kemi vetem nje rrenje reale
  2. Nese dallori eshte pozitiv, atehere kemi dy rrenje reale
  3. 3. Nese dallori eshte negative, ateher nuk kemi rrenje reale.
Shkruaj nje program qe merr tre numra te plote, dhe me pas llogarit dhe tregon rrenjet.

Specifikimi i te dhenave:
Ju do te merrni tre numra te plote qe jane ndermjet -1000 dhe 1000.

Specifimi i rezultatit:

  • Nese nuk ka rrenje reale, tregoni mesazhin "No real root".
  • Nese ka nje rrenje reale, tregojeni ate me nje precizion me 2 shifra.
  • Nese ka dy rrenje reale, tregojini ato me nje precizion me 2 shifra sipas rradhes se dhene me siper.

Shembulli 1 i te Dhenave Shembulli 2 i te Dhenave
1 2 1
2 3 4
Rezultati 1 Rezultati 2
-1
No real root


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

www.contester.ru