F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

Oh! My math home work

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 387    Accepted Submission(s): 128


Problem Description
Now, we have a function $f(x) = Ax^2-B \sin x, A \geq 0 , B \geq 0$, here A and B are integer. We want to know minimum x satisfy f(x) = y, and x>=0.
 

Input
The first line in the input file is an Integer $T(1 \leq T \leq 500)$.
The first line of each test case contains two integer $A, B(0 \leq A, B \leq 10^3)$.
Then a line a integer $y (-10^3 \leq y \leq 10^3)$.
 

Output
For each test case, output the minimum x. if no such x exists, output ¡°error¡±.
The answer should accurate to five decimal places.
 

Sample Input
2 1 0 5 1 1 -2
 

Sample Output
2.23607 error
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-26 04:00:42, Gzip enabled