No Expectations!

You have a jug and nnn mugs. The jug’s capacity is ccc liters and the ithi^{th}ith mug’s capacity is aia_iai​ liters. Initially, the jug is filled with water.


This is a companion discussion topic for the original entry at https://toph.co/p/no-expectations