cf/mirror

THU Packing Puzzle

CF
2216B1300· pupil1s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 1multi-test • hover to link
Input
5
1 1 1
2 0 0
1 1 0
0 0 1000000000
1000000000 1000000000 1000000000
Output
7
5
5
3000000000
7000000000
2216B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)