Implement a function named minimize_smoke that calculates the minimum amount of smoke emitted by different combinations of buses and cars used to transport a given number of passengers.
An integer N (1 ≤ N ≤ 10^6) representing the number of passengers.
An integer X (1 ≤ X ≤ 10^5) representing the smoke emitted by one bus.
An integer Y (1 ≤ Y ≤ 10^5) representing the smoke emitted by one car.
Outputs:
The function should return an integer representing the minimum smoke emitted.
Functionality:
The function should evaluate three scenarios:
All N passengers are transported using cars, with each car accommodating 4 passengers. The total smoke emitted in this case is calculated as ceil(N / 4) * Y.
A combination of buses (each accommodating 100 passengers) and cars for the remaining passengers. The total smoke in this scenario is calculated as N // 100 * X + ceil(N % 100 / 4) * Y.
All N passengers are transported using buses, resulting in a smoke emission of ceil(N / 100) * X.
The function should return the minimum smoke emission from the three calculated values.
Implementation:
Write your solution in a file named /app/solution.py. Ensure that the code is clean, well-commented, and follows best practices for readability and maintainability.