cf/mirror

Balanced Stone Heaps

CF
1623C1600· expert1s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
4
4
1 2 10 100
4
100 100 100 1
5
5 1 1 1 8
6
1 2 3 4 5 6
Output
7
1
1
3
1623C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)