Juggling for Nerds

From programming_contest
Jump to navigation Jump to search

This problem asks how high we have to toss objects in order to juggle a certain number of them.

We trivially calculate the minimum time between catches, this allows us to calculate the cycle time for the n objects. The cycle time is air time plus the time in hand. We can compute height directly from time in air. It doesn't seem we need mass for anything