Vih, your task can be solved in one step :)
Added 1 minute ago
But in general, the task is about mathematical modeling, and K.O. suggests that they are solved by building a mathematical model!
New here? I'm Roha — want a quick tour?
Vih, your task can be solved in one step :)