#2120. C++ 10级 食堂排队问题

C++ 10级 食堂排队问题

Samples

5
13 10 5 8 9
5

Limitation

1s, 1024KiB for each test case.