#BS0000027. Giải phương trình (Solve It)
Giải phương trình (Solve It)
Solve It
Source: UVa
Version: Phuoc Hung OJ Extended
Problem Statement
Given integers , solve on :
If no root exists, print No solution; otherwise print the root to four decimal places.
Input
The only line contains .
Output
Print the root to four decimal places or No solution.
Subtasks
- Subtask 1 — 20%: .
- Subtask 2 — 30%: , .
- Subtask 3 — 50%: , ; is an integer.
Examples
Input
0 0 0 0 -2 1
Output
0.7071
Explanation
The equation becomes , whose root in is approximately .