Hash code pizza problem

In hashcode practice round, the pizza problem >>>> What if we have more pizzas than the total possible requirement of all the teams? In that case, can I deliver more than one pizza to a team?

In two of the test cases total requirement that is
2*(number of 2 member teams)+3*(number of 3 member teams)+4*(number of 4 member teams)
is less than number of pizzas, it means after giving pizzas to each team, we have some left pizzas, and the solution is only accepted if I deliver all the pizzas.
I made the solution but this is the only problem I am facing.
Any help/advice is appreciated.