Task DescriptionDiscussion (0)
Task :: 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:
3 9.8
0 1
-1 1
199 399
output:
4.4272
4.5387
217.7646
hope this helps to understand :

Write program that calculates top speed of each rock
INPUT:
first 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
first 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
OUTPUT:
output must contain N lines.each line contains one number-top speed of falling stown(precision- 4 digits)
output 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 :


Submit Solution
Available Languages
Task info
| Name: | falling rocks |
| Time: | 0.1 sec. |
| Memory: | 4 MB |
| #Tests: | 10 |
| AddedBy: | amuts09 |
Task Ratings
| Difficulty: | 2 (20 votes) |
| Quality: | 2 (21 votes) |
Acceptance Rate
Recent Submissions
Fastest Solutions
| User | Time |
|---|---|
| cirulapiph | 0.015 s. |
| 2fast4you | 0.015 s. |
| nfs420 | 0.03 s. |
| xgrizxr4ever | 0.03 s. |
| irfan3 | 0.03 s. |
| miyabi_insaf | 0.03 s. |
| ja_bre | 0.03 s. |
| dejandenib | 0.036 s. |
| DuXSerbia | 0.04 s. |
| miomir | 0.04 s. |
Solved By
Home
Training
Competitions
Forum
FAQ