Quadratic equation

Xem dạng PDF

Gửi bài giải

Điểm: 400,00 (OI)
Giới hạn thời gian: 0.5s
Giới hạn bộ nhớ: 256M
Input: stdin
Output: stdout

Dạng bài
Ngôn ngữ cho phép
C, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch

Given 3 integers a, b, c (a, b, c109). Find the solutions of the equation ax2 + bx + c.

Input

  • The only line contain 3 integers a, b, c

Output

  • The solution of the equation(take 5 digits after decimal point), if there isn't any solution then print: NO SOLUTION

Example

Input

1 -5 4

Output

4.00000 1.00000

Bình luận

Hãy đọc nội quy trước khi bình luận.


Không có bình luận tại thời điểm này.