Beginner Beginners Problems > Ad-hoc

A car manufacturing company is designing some new breaking system for their new model. For this, they need a small piece of code that will calculate the deceleration rate of the car. This will be added in their simulation software to simulate the new model's behaviour. Make sure you write the code properly to avoid a situation in the testing lab like in the below picture: ![enter image description here][1] You will be given the initial velocity of the car and the time over which the car is supposed to completely halt. You have to calculate the deceleration of the car. Input: ------ Input starts with an integer **T (1≤ 50)**, denoting the number of test cases. Each case contains two fraction number **V(20.0 ≤ V ≤ 1000.0)** denoting the initial velocity (m/s) of the car and T(2.0 ≤ T ≤ 200.0) denoting the number of seconds (s) that the car takes to stop completely. Output: ------- For each case of input, output one number in a line that denotes the deceleration of the car. Remember, it should always be a negative value. Print the value upto 2 decimal places. Sample Input ------------ 2 100 5 20 4 Sample Output ------------- -20.00 -5.00 [1]: https://s3-ap-southeast-1.amazonaws.com/devskillimagestorage/questionimages/74bc4ee0-3883-caff-ee78-08d409d7c3e3_6894c98f0ea843dfab89951a9337f93e_W260xH260.png

MD. Jalal Uddin

Language |
Time Limit (seconds) |

C | 1.00 |

C++ | 1.00 |

C++14 | 1.00 |

C# | 2.00 |

Go | 2.00 |

Java | 2.00 |

JavaScript | 2.00 |

Objective-C | 2.00 |

Perl | 2.00 |

PHP | 2.00 |

Python | 2.00 |

Python3 | 2.00 |

Ruby | 2.00 |

VB.Net | 2.00 |

Solve/Submission

# | User | Language | Timing |
---|---|---|---|

01 | ShahiPapon | Cpp14 | 0.00s |

02 | asfak | Cpp14 | 0.00s |

03 | sukanta | Cpp14 | 0.00s |

04 | jualahmed | Cpp14 | 0.00s |

05 | ih_hira | Cpp14 | 0.00s |

06 | saprince093 | Cpp14 | 0.00s |

07 | JubayerSohel | Cpp14 | 0.00s |

08 | MarufAhmed | Cpp14 | 0.00s |

09 | AlaminJust | Cpp14 | 0.00s |

10 | leenaiitju | Cpp14 | 0.00s |

11 | Rahmatullah | Cpp14 | 0.00s |

12 | The_Viper | Cpp14 | 0.00s |

13 | Mehedi07 | Cpp14 | 0.00s |

14 | Ansarul_14 | Cpp14 | 0.00s |

15 | Ashish972 | Cpp14 | 0.00s |

16 | ash12 | Cpp14 | 0.00s |

17 | inam | Cpp14 | 0.00s |

18 | jayed_al_hasan | Cpp14 | 0.00s |

19 | Avijeet | Cpp14 | 0.00s |

20 | iftekher2283 | Cpp14 | 0.00s |

21 | terminator_c | Cpp14 | 0.00s |

22 | gulzar | Cpp14 | 0.00s |

23 | naim_ju | Cpp14 | 0.00s |

24 | sadia2427 | Cpp14 | 0.00s |

25 | rezaul_karim | Cpp14 | 0.00s |

26 | Nazmul0092 | Cpp14 | 0.00s |

27 | Sheiblu | Cpp14 | 0.00s |

28 | HM39 | Cpp14 | 0.00s |

29 | Rakib05 | Cpp14 | 0.00s |

30 | gsshanto | Cpp14 | 0.00s |

31 | Core_i14 | Cpp14 | 0.00s |

32 | hidden139 | Cpp14 | 0.00s |

33 | hmtanbir | Cpp14 | 0.00s |

34 | smriad | Cpp14 | 0.00s |

35 | SakibAlamin | Cpp14 | 0.00s |

36 | Maximize_16 | Cpp14 | 0.00s |

37 | Koushik54 | Cpp14 | 0.00s |

38 | ammasum | Cpp14 | 0.00s |

39 | mhfarabi09 | Cpp14 | 0.00s |

40 | Shahadet | Cpp14 | 0.00s |

41 | atqrhmn | Cpp14 | 0.00s |

42 | soumitro_cse1604114 | Cpp14 | 0.00s |

43 | lolcoder | Cpp14 | 0.00s |

44 | Tajir | Cpp14 | 0.00s |

45 | Nabila_ | Cpp14 | 0.00s |

46 | binsahib | Cpp14 | 0.00s |

47 | 1604110 | Cpp14 | 0.00s |

48 | 1604107 | Cpp14 | 0.00s |

49 | Anika_Bushra | Cpp14 | 0.00s |

50 | upol_vai | Cpp14 | 0.00s |

Copyright © 2015-2016 Dev Skill.

Feedback
#### Your feedback is our precious!

## Thank you for providing feedback! Our developers will be happy :)

## Sorry there was a problem when submitting the feedback. Please try again. :(