cf/mirror

Longest Saw

CF
1170H3s256 MB⌨ stdin/stdout

Examples

Sample 1of 1
Input
3
10
10 9 8 7 6 5 4 3 2 1
7
1 2 2 2 3 2 2
3
100 100 100
Output
10
1 6 2 7 3 8 4 9 5 10
4
2 1 3 2
1
100
1170H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)