Submit | All submissions | Best solutions | Back to list |
HS10BRKD - Braking distance |
Braking distance of some vehicle at speed of 100 km/h is equal to 48 meters. Assuming that other conditions has not been changed (friction, tyres, breaking system and so on) one can estimate that the breaking distance is proportional to the square of the speed of the vehicle. Please compute the vehicle's breaking distance for a given speed X.
Input data specification
One integer 0 < X < 250.
Output data specification
One number that is equal to the car’s breaking distance in meters with one digit precision.
Example 1
Input: 50 Output: 12.0
Example 2
Input: 76 Output: 27.7
Scoring
This is a test problem and you will receive no points for solving it. However, at 18:00 on Monday, November 815, we will give out a small gift to user, drawn from among those registered contestants who have solved this problem in more programming languages (available at SPOJ) then all other registered contestants.
Note: the special contest is over now.
Added by: | kuszi |
Date: | 2010-09-02 |
Time limit: | 0.206s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM32-GCC GAWK MAWK BC C-CLANG NCSHARP CPP14 CPP14-CLANG COBOL COFFEE D-CLANG D-DMD DART ELIXIR FANTOM FORTH GOSU GRV JS-MONKEY JULIA KTLN NIM NODEJS OBJC OBJC-CLANG OCT PICO PROLOG PYPY PYPY3 PY_NBC R RACKET RUST CHICKEN SED SQLITE SWIFT UNLAMBDA VB.NET |
Resource: | High School Programming League |