Too Many Segments (hard version)
1249D21800· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
7 211 119 117 88 97 89 117 9
Output
34 6 7
Sample 2of 3
Input
5 129 3030 3029 2928 3030 30
Output
31 4 5
Sample 3of 3
Input
6 12 33 32 32 22 32 3
Output
41 3 5 6
58%
1249D2.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)