Consecutive Subsequence
977F1700· expert2s256 MB⌨ stdin/stdout
Examples
Sample 1of 4
Input
73 3 4 7 5 6 8
Output
42 3 5 6
Sample 2of 4
Input
61 3 5 2 4 6
Output
21 4
Sample 3of 4
Input
410 9 8 7
Output
11
Sample 4of 4
Input
96 7 8 3 4 5 9 10 11
Output
61 2 3 7 8 9
58%
977F.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)