War between Republic and Separatist is escalating. The Separatist are on a
new offensive. They have started blocking the path between the republic
planets (represented by integers), so that these planets surrender due to the
shortage of food and supplies. The Jedi council has taken a note of the
situation and they have assigned Jedi Knight Skywalker and his Padawan
Ahsoka to save the critical planets from blockade (Those planets or system of
planets which can be accessed by only one path and may be lost if that path
is blocked by separatist).
Skywalker is preparing with the clone army to defend the critical paths. He
has assigned Ahsoka to find the critical planets. Help Ahsoka to find the
critical planets(C) in ascending order. You only need to specify those planets
which have only one path between them and they cannot be accessed by
any other alternative path if the only path is compromised.
Constraints
M <= 10000
N <= 7000
Input
Answers
Explanation:
The above Question falls from 'Motion'
Given
Initial Speed (u) = 20 m/s
Final Speed (v) = 40 m/s
Time (t) = 10 s
To Find
Distance Travelled
Formula Used
v = u + at
Solution
➱ 40 = 20 + a × 10
➱ 40 = 20 + 10a
➱ 40 - 20 = 10a
➱ 20 = 10a
➱ 10a = 20
➱ a = 20/10
➱ a = 2
Therefore, the acceleration is 2 m/s²
Now, Calculating Distance Travelled
v² - u² = 2as
➱ (40)² - (20)² = 2 × 2 × s
➱ 1600 - 400 = 4s
➱ 1200 = 4s
➱ 4s = 1200
➱ s = 1200/4
➱ 300 m
Therefore, Distance Travelled is 300m
Additional Information
SI unit of Acceleration is m/s²
SI unit of Time is s
SI unit of Speed = m/s
The Speed that the body gains at it's start is known as Initial Speed & is denoted by u.
The Speed that the body gains after it's start is said to be Final Speed & is denoted by v
Three Equations of Motion
v = u + at
v² - u² = 2as
S = ut + ½at²