Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This solution could be for Python 2.7 where / was integer division.
I would recommend using the floor division (//) because you might not get a nice even division for every ingredient. Other than that and the other things people already pointed out, this is how I did it as well knowing that there are better and faster methods. I just don't have the experience or knowledge to use them yet.
So I don't understand why I am getting a timeout error. My code works for every case, including the BigInt cases. And it works in ~50ms. How much faster does this code have to run?