Close Tuples (hard version)
1462E21700· expert4s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
44 3 21 2 4 34 2 11 1 1 11 1 1110 4 35 6 1 3 2 9 8 1 2 4
Output
26120
58%
1462E2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
44 3 21 2 4 34 2 11 1 1 11 1 1110 4 35 6 1 3 2 9 8 1 2 4
26120