Ad
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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

  • Default User Avatar

    Thanks. I feel the word "queue" in problem description is kind of confusing, it turns out that the order doesn't matter at all...

  • Default User Avatar

    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: