DCP-196: Break Simulator Back to All Problems

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


Problem Setter:

MD. Jalal Uddin

Please login to submit solution to this problem.

Problem Limits

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

Problem Stats

659/1064

Solve/Submission

Ranking

# User Language Timing
01 ash12 Cpp14 0.00s
02 ih_hira Cpp14 0.00s
03 iftekher2283 Cpp14 0.00s
04 Shahadet Cpp14 0.00s
05 Core_i14 Cpp14 0.00s
06 Nazmul_WUB Cpp14 0.00s
07 sherina Cpp 0.00s
08 atqrhmn Cpp14 0.00s
09 joy25896 Cpp14 0.00s
10 The_Viper Cpp14 0.00s
11 Sheiblu Cpp14 0.00s
12 linkon Cpp 0.00s
13 rezaul_karim Cpp14 0.00s
14 ShahiPapon Cpp14 0.00s
15 Reayz Cpp 0.00s
16 virus C 0.00s
17 junayedmahmud Cpp14 0.00s
18 Tanvirh Cpp 0.00s
19 feodorv Cpp14 0.00s
20 AlaminJust Cpp14 0.00s
21 sumonjust50 Cpp14 0.00s
22 Ansarul_14 Cpp14 0.00s
23 neel71 C 0.00s
24 Md_Salauddin Cpp 0.00s
25 leenaiitju Cpp14 0.00s
26 gulzar Cpp14 0.00s
27 JubayerSohel Cpp14 0.00s
28 Mehedi07 Cpp14 0.00s
29 Ruhul1975 Cpp 0.00s
30 jualahmed Cpp14 0.00s
31 nazia_016 Cpp 0.00s
32 asfak Cpp14 0.00s
33 sukanta Cpp14 0.00s
34 return_SS Cpp 0.00s
35 inam Cpp14 0.00s
36 Rahmatullah Cpp14 0.00s
37 MarufAhmed Cpp14 0.00s
38 saprince093 Cpp14 0.00s
39 Rakib05 Cpp14 0.00s
40 exceptional_prapti Cpp 0.00s
41 terminator_c Cpp14 0.00s
42 Avijeet Cpp14 0.00s
43 Ashish972 Cpp14 0.00s
44 jayed_al_hasan Cpp14 0.00s
45 Maximize_16 Cpp14 0.00s
46 ammasum Cpp14 0.00s
47 naim_ju Cpp14 0.00s
48 monir769 Cpp14 0.00s
49 sadia2427 Cpp14 0.00s
50 Khayrul_34 Cpp 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support