Longest Saw
1170H3s256 MB⌨ stdin/stdout
Examples
Sample 1of 1
Input
31010 9 8 7 6 5 4 3 2 171 2 2 2 3 2 23100 100 100
Output
101 6 2 7 3 8 4 9 5 1042 1 3 21100
58%
1170H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
31010 9 8 7 6 5 4 3 2 171 2 2 2 3 2 23100 100 100
101 6 2 7 3 8 4 9 5 1042 1 3 21100