#K95232. City Fuel Range Check
City Fuel Range Check
City Fuel Range Check
Jenny needs to reach a city and wants to know if her current fuel is sufficient. Given the fuel tank capacity, fuel consumption rate, and the distance to the city, determine whether she can reach the city without refueling.
The maximum distance Jenny can travel is computed by the formula: \(M\times K\), where \(M\) is the fuel tank capacity (in liters) and \(K\) is the fuel consumption rate (in kilometers per liter). If \(M\times K\geq D\), where \(D\) is the distance to the city, then the journey is possible.
inputFormat
The first line contains an integer \(T\) denoting the number of test cases. Each of the following \(T\) lines contains three space-separated integers \(M\), \(K\) and \(D\), representing the maximum fuel tank capacity (in liters), the fuel consumption rate (in kilometers per liter), and the distance to the city (in kilometers) respectively.
outputFormat
For each test case, print a single line containing either Possible
if Jenny can reach the city without refueling, or Impossible
if she cannot.
4
10 5 45
8 6 50
15 10 140
20 4 75
Possible
Impossible
Possible
Possible
</p>