#P12306. [ICPC 2022 WF] Doing the Container Shuffle

[ICPC 2022 WF] Doing the Container Shuffle

5
4 2 5 3 1

7.000

6
1 2 3 4 5 6

13.500