HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Beginners > problem:


068. 50581 - The roots of a quadratic equation

Guest
• Discussion of problem (1)

Volume problems

• 034. 50502 - Welcome Andi - 1
• 042. 50798 - Passing the course
• 045. 50391 - Cinema Tickets
• 048. 50403 - Number of Chairs
• 052. 50503 - Welcome Andi - 2
• 053. 50501 - The Highest Average
• 062. 50402 - Hello World!
• 063. 50547 - Close Pair
• 068. 50581 - The roots of a qua...
• 100. 50532 - Close City
• 120. 50511 - Class Average
• 130. 50416 - Placing Dominoes on ...
• 140. 50417 - Fun Fair
• 150. 50500 - Find Student
• 260. 50460 - Median of 3 Numbers
• 50292 - Average of 4 Marks
• 001. 51153 - A+B.

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