falling rocks
There are N stones free falling down.Every second speed of each rock increases by a>0.
Write program that calculates top speed of each rock
input:
output:
hope this helps to understand :
Write program that calculates top speed of each rock
Inputfirst line contains two numbers: N-integer ans a-float
folowing N lines contains two integers(for pascal limits)
first one- initial speed
and
second- initial heigth
folowing N lines contains two integers(for pascal limits)
first one- initial speed
and
second- initial heigth
Outputoutput must contain N lines.each line contains one number-top speed of falling stown(precision- 4 digits)
input:
3 9.8
0 1
-1 1
199 399
output:
4.4272
4.5387
217.7646
hope this helps to understand :
Image: fr_expl1
Image: fr_expl2
Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.