Implement a function that minimizes the smoke emitted based on the number of passengers (N) and the smoke produced by different vehicles: buses (X) and cars (Y). The function should calculate the minimum smoke by considering three different transportation configurations: using only cars, using a combination of buses and cars, and using only buses.
N (1 ≤ N ≤ 10^6): An integer representing the number of passengers.
X (1 ≤ X ≤ 1000): An integer representing the smoke emitted by a bus for transporting 100 passengers.
Y (1 ≤ Y ≤ 1000): An integer representing the smoke emitted by a car for transporting 4 passengers.
Output:
Returns an integer representing the minimum smoke emitted from the selected transportation configuration.
Implementation
Write the solution in a file called /app/solution.py. The implementation should correctly handle various combinations of bus and car configurations to calculate the minimum smoke emitted effectively.
Example
python
assert minimize_smoke(100, 500, 200) == 500 # Using only buses
assert minimize_smoke(103, 500, 200) == 600 # Combination of buses and cars
assert minimize_smoke(4, 500, 200) == 200 # Using only cars