Skip to content

AmmarAli12369001/Pokemon_Evolution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pokémon Evolution You have recently caught N Pokémon and you also have M Pokémon candy bars. You can evolve any of your Pokémon by paying X candy bars. Alternatively, you can sell any of your Pokémon for a price of Y candy bars. You cannot sell an evolved Pokémon. Compute the maximum number of Pokémon you can evolve.

Standard input The first line contains 4 integers N M X Y.

Standard output The output should contain a single integer representing the maximum number of Pokémon you can evolve.

Releases

No releases published

Packages

No packages published

Languages