A stone is dropped into a well. t seconds later, a splash is heard. The acceleration due to gravity is g metres per second per second, and the speed of sound is c metres per second. Calculate the depth of the well and the downwards velocity with which the stone hits the water.
Line 1: The value of g (0 < g ≤ 1000)
Line 2: The value of c (0 < c ≤ 1000)
Line 3: The value of t (0 < t ≤ 1000)
Line 1: The depth of the well in metres.
Line 2: The speed of the stone as it hits the water, in metres per second.
9.80 334 3.41
Your answers must have a relative or absolute error of less than 0.01.
The following equations may be useful:
Here represent time, displacement, velocity, initial velocity, final velocity, and acceleration, respectively.
Point Value: 3
Time Limit: 2.00s
Memory Limit: 16M
Added: Jan 16, 2009
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3
2. Our sincerest apologies. This problem was effectively impossible for a while, due to an error on our end. I have resolved this error, and I manually rejudged several affected submissions (at least one from each user who posted since the mistake); the number of accepted users has increased from 49 to 63.
Please resubmit if I missed you or you believe you may have been affected.
it repeats twice!
how fast you go is change in displacement, measured in [metres] per second. (velocity.)
how fast you're increasing how fast you go is change in velocity, measured in [metres per second] per second. (acceleration.)
Edit: I was wrong. Your code was right, and the judge was wrong. I apologise.
No need for physics here, I just BF'ed.
Digital technology's so great (compared to analog) as you can just set an arbitrary precision depending on how precise the situation needs (with the equivalent time costs, of course).
Edit: But, according to the analysis, it's not necessary. So I don't actually know what's going on.