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 comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I solved this problem in C++, I passed all the test cases but I could not submit my code.. Does it mean TLE or something? I couldn't see any warnings about it
Thanks. I feel the word "queue" in problem description is kind of confusing, it turns out that the order doesn't matter at all...
What is the expected result for this test case?
capacity: 5
floor 0:
floor 1: 0 0 0 6
floor 2:
floor 3:
floor 4:
floor 5: 6 6 0 0 0 6
floor 6: